Delete submission? An unexpected error has occurred. Please reload the page and try again

I am running OJS version 3.1.0.1

PHP version 5.6.31
Apache version Microsoft-IIS/8.5
Database server version 10.1.9-MariaDB

And trying to delete submissions.

But I get a message: An unexpected error has occurred. Please reload the page and try again.

In the console log I got this:

jquery.min.js:4 DELETE http://5.56.56.37/cedex/index.php/ingenieria-civil/api/v1/_submissions/404 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:1
click @ build.js:6
e @ build.js:1
t._withTask.t._withTask @ build.js:1
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at ajaxErrorCallback (build.js:1)
at Object.n [as error] (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:1
click @ build.js:6
e @ build.js:1
t._withTask.t._withTask @ build.js:1
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at pkp.min.js:317
(anonymous) @ pkp.min.js:317
setTimeout (async)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:1
click @ build.js:6
e @ build.js:1
t._withTask.t._withTask @ build.js:1
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘focus’ of undefined
at pkp.min.js:317

In the php log I got this:

[04-May-2018 01:08:19 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:22 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:22 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:22 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of CategoryGridHandler::doSpecificFetchGridActions() should be compatible with GridHandler::doSpecificFetchGridActions($args, $request, $templateMgr) in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\controllers\grid\CategoryGridHandler.inc.php on line 0
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of SelectableSubmissionFileListCategoryGridHandler::initialize() should be compatible with CategoryGridHandler::initialize($request, $args = NULL) in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\SelectableSubmissionFileListCategoryGridHandler.inc.php on line 30
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFilesCategoryGridDataProvider::loadData() should be compatible with GridDataProvider::loadData($filter = Array) in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\SubmissionFilesCategoryGridDataProvider.inc.php on line 19
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of ManageSubmissionFilesForm::initData() should be compatible with Form::initData() in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\form\ManageSubmissionFilesForm.inc.php on line 19
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of ManageSubmissionFilesForm::execute() should be compatible with Form::execute() in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\form\ManageSubmissionFilesForm.inc.php on line 19
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of ManageFinalDraftFilesForm::execute() should be compatible with ManageSubmissionFilesForm::execute($args, $request, $stageSubmissionFiles, $fileStage) in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\final\form\ManageFinalDraftFilesForm.inc.php on line 18
[04-May-2018 01:08:26 America/Los_Angeles] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\form\Form.inc.php on line 388
[04-May-2018 01:08:26 America/Los_Angeles] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\core\PKPRequest.inc.php on line 592
[04-May-2018 01:08:26 America/Los_Angeles] PHP Deprecated: Non-static method PKPRequest::isPost() should not be called statically, assuming $this from incompatible context in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\form\validation\FormValidatorPost.inc.php on line 38
[04-May-2018 01:08:26 America/Los_Angeles] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\core\PKPRequest.inc.php on line 396
[04-May-2018 01:08:26 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:27 America/Los_Angeles] PHP Strict Standards: Declaration of FileListGridHandler::initialize() should be compatible with SubmissionFilesGridHandler::initialize($request, $args = NULL) in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\controllers\grid\files\fileList\FileListGridHandler.inc.php on line 22
[04-May-2018 01:08:27 America/Los_Angeles] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in C:\inetpub\wwwroot\Newsletter\CEDEX\classes\article\SubmissionFileDAO.inc.php on line 23
[04-May-2018 01:08:27 America/Los_Angeles] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini and use the php://input stream instead. in Unknown on line 0
[04-May-2018 01:08:27 America/Los_Angeles] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0
[04-May-2018 01:08:27 America/Los_Angeles] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\session\SessionManager.inc.php on line 59
[04-May-2018 01:08:27 America/Los_Angeles] PHP Warning: Cannot modify header information - headers already sent in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\session\SessionManager.inc.php on line 225
[04-May-2018 01:08:27 America/Los_Angeles] PHP Warning: Cannot modify header information - headers already sent in C:\inetpub\wwwroot\Newsletter\CEDEX\lib\pkp\classes\session\SessionManager.inc.php on line 234

I tried the solution that we found here [OJS 3.1.0.1] unexpected error when try to delete a submission:

But it doesnt work.

I have multiple ojs site in the IIS server, and no one can delete submissions…

Thanks!

Hi @josuevalrob,

Check further up in your error log – the warnings are cosmetic, but there may be many of them. (We’re working to gradually resolve these with each release. They’re harmless.) Also make sure errors/warnings are directed to the log file, not the browser.

Regards,
Alec Smecher
Public Knowledge Project Team

But the problem: I can not delete a submission on a IIS windows server.
It looks like the only solution is to change to a linux server.

Hi @josuevalrob,

I suspect there is an error somewhere in the log corresponding to this. With that, I could help debug.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Today I’ve the same problem.
When I want to delete submission

An unexpected error has occurred. Please reload the page and try again.

In the console:

jquery.min.js:4 DELETE http://www1.up.poznan.pl/jard/index.php/test/api/v1/_submissions/1 403 (Forbidden)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:6
click @ build.js:6
e @ build.js:6
t._withTask.t._withTask @ build.js:6
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at ajaxErrorCallback (build.js:1)
at Object.n [as error] (build.js:6)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:6
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:6
click @ build.js:6
e @ build.js:6
t._withTask.t._withTask @ build.js:6
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at pkp.min.js:317
(anonymous) @ pkp.min.js:317
setTimeout (async)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:6
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
deleteSubmission @ build.js:1
n @ build.js:6
click @ build.js:6
e @ build.js:6
t._withTask.t._withTask @ build.js:6
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘focus’ of undefined
at pkp.min.js:317

OJS Version 3.1.0.0 (I tested also in 2.4.8 and 3.1.1 - everywhere the same)

OS platform Linux
PHP version 5.6.31
Apache version Apache/2.4.9 (Unix) OpenSSL/1.0.1e-fips PHP/5.6.31
Database driver mysql
Database server version 5.6.13

base_url http://www1.up.poznan.pl/jard

Can you help me?
Peter

Hi @karwas,

I suspect mod_security in your server stack (or an equivalent module) is preventing the request from getting to OJS. Check whether you’re using mod_security and see if it’s been incorrectly triggered.

Regards,
Alec Smecher
Public Knowledge Project Team