Problem submiting article as author in OJS 3.1.0-1


#1

Hi,

I have a problem with submission form used by authors. After clicking on “New submission” button, form with 5 steps shows up. I click all checkboxes on first step and press “Save and continue”. Then “Upload submission file” form window pops up. I select “Article component”, upload file and click "Continue’. On “Review Details” tab i click “Continue” and then nothing happens. It doesn’t switch to third step named “3. Confirm”. However if i close the popup window and refresh the page i can see that file has been uploaded and i can continue with other steps. Is this a bug? Anyone else having this? Thx.

Regards,

Nino


#2

Hi @orcalator,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team


#3

Hi @asmecher,

I already checked it and there is nothing regarding this in error.log :frowning: This is not a fresh install but upgrade from 2.4.8. if that helps. Btw. i noticed form URL’s look like this:

https://someserver.com/ojs/index.php/test/$$$call$$$/wizard/file-upload/file-upload-wizard/finish-file-submission?submissionId=6717&stageId=1&reviewRoundId=&fileStage=2

Is this normal with that “$$$call$$$” part in URL?

Regards,

Nino


#4

Hi @orcalator,

Hmm, something should definitely be logged – can you post the newest contents of the log file here, just in case?

The $$$call$$$ is supposed to appear there.

Regards,
Alec Smecher
Public Knowledge Project Team


#5

This is from access.log. I clicked new submission and did all the steps above till the final “Continue” on “Review Details” when nothing happend.

1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “POST /ojs/index.php/test/submission/saveStep/1 HTTP/1.1” 200 166 “https://site.com/ojs/index.php/test/submission/wizard” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “POST /ojs/index.php/test/notification/fetchNotification HTTP/1.1” 200 58 “https://site.com/ojs/index.php/test/submission/wizard” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/index.php/test/submission/wizard/2?submissionId=6720 HTTP/1.1” 200 2711 “https://site.com/ojs/index.php/test/submission/wizard” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/public/journals/43/pageHeaderLogoImage_en_US.png HTTP/1.1” 304 - “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/index.php/test/$$$call$$$/page/page/css HTTP/1.1” 200 23787 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/index.php/test/submission/step/2?submissionId=6720&=1522858925679 HTTP/1.1" 200 789 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] "GET /ojs/index.php/test/$$$call$$$/page/page/user-nav-backend?
=1522858925678 HTTP/1.1” 200 1916 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/index.php/test/$$$call$$$/page/page/tasks?=1522858925680 HTTP/1.1" 200 531 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “POST /ojs/index.php/test/notification/fetchNotification HTTP/1.1” 200 58 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] "GET /ojs/index.php/test/$$$call$$$/grid/notifications/task-notifications-grid/fetch-grid?
=1522858925682 HTTP/1.1” 200 1202 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:05 +0200] “GET /ojs/index.php/test/$$$call$$$/grid/files/submission/submission-wizard-files-grid/fetch-grid?submissionId=6720&=1522858925681 HTTP/1.1" 200 1529 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:06 +0200] "GET /ojs/index.php/test/$$$call$$$/wizard/file-upload/file-upload-wizard/start-wizard?fileStage=2&reviewRoundId=&submissionId=6720&stageId=1&uploaderRoles=16-17-4097-65536&uploaderGroupIds=99&
=1522858925683 HTTP/1.1” 200 698 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:06 +0200] “GET /ojs/index.php/test/$$$call$$$/wizard/file-upload/file-upload-wizard/display-file-upload-form?submissionId=6720&stageId=1&uploaderRoles=16-17-4097-65536&uploaderGroupIds=99&fileStage=2&revisionOnly=&reviewRoundId=&revisedFileId=&assocType=&assocId=&dependentFilesOnly=&=1522858925684 HTTP/1.1" 200 1315 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:16 +0200] “POST /ojs/index.php/test/$$$call$$$/wizard/file-upload/file-upload-wizard/upload-file?submissionId=6720&stageId=1&fileStage=2&reviewRoundId=&assocType=&assocId= HTTP/1.1” 200 174 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:18 +0200] "GET /ojs/index.php/test/$$$call$$$/wizard/file-upload/file-upload-wizard/edit-metadata?submissionId=6720&stageId=1&reviewRoundId=&fileStage=2&fileId=21033&
=1522858925685 HTTP/1.1” 200 850 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -
1.1.1.1 - - [04/Apr/2018:18:22:19 +0200] “POST /ojs/index.php/test/$$$call$$$/api/file/manage-file-api/save-metadata?submissionId=6720&stageId=1&reviewRoundId=&fileStage=2&fileId=21033 HTTP/1.1” 200 101 “https://site.com/ojs/index.php/test/submission/wizard/2?submissionId=6720” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299” -

Regards,

Nino


#6

Btw. i also noticed one thing now. When i go to “My assigned” -> “View Submission” and then i click on “Edit” under “Submission Files” and try to “Save” also nothing happens… only animated circle is turning in the right bottom corner of the popup window.


#7

Hi @orcalator,

That looks like your Apache access log, not your error log. Check to see if there’s a separate error log. See also How do I find my PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team


#8

@asmecher,

Yes that’s an access log bcs. error log is empty for that period of time. There are no errors.

Regards.

Nino


#9

Hi @orcalator,

That’s odd – there are generally at least a few warnings, depending on your PHP version. What version are you using? Do you see any warnings logged?

Regards,
Alec Smecher
Public Knowledge Project Team


#10

Hi @asmecher,

It seems that error log was disabled. After enabling error log this is what i get when i click on “Continue” on “Upload submission file” form, tab “Review Details”. Btw. we use PHP Version 5.6.33-0.

PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /var/www-data/ojs/classes/article/SubmissionFil
eDAO.inc.php on line 23
PHP Strict Standards: Declaration of SubmissionFilesMetadataForm::fetch() should be compatible with Form::fetch($request, $template = NULL, $display = false) in /var/www-data/ojs/lib/pkp/controllers/
wizard/fileUpload/form/SubmissionFilesMetadataForm.inc.php on line 18
PHP Strict Standards: Declaration of SubmissionFilesMetadataForm::execute() should be compatible with Form::execute() in /var/www-data/ojs/lib/pkp/controllers/wizard/fileUpload/form/SubmissionFilesMe
tadataForm.inc.php on line 18
PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/form/Form.inc.php on line 388
PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/core/PKPRequest.inc.php on li
ne 592
PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/form/Form.inc.php on line 388
PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/core/PKPRequest.inc.php on li
ne 592
PHP Deprecated: Non-static method PKPRequest::isPost() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/form/validation/FormValidatorPost
.inc.php on line 38
PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /var/www-data/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 396

Regards,

Nino


#11

Hi @orcalator,

Those are all cosmetic warnings and won’t stop the system from operating, but they could be burying a more relevant error message. Try checking further back in the log, and look for something containing the word “Error”.

Regards,
Alec Smecher
Public Knowledge Project Team


#12

Hi, @asmecher

Nope, there are no errors. Can you give me some hints how to debug this. I already found php code that handles that form save request in /lib/pkp/controllers/api/file/PKPManageFileApiHandler.inc.php. So, that should be saveMetadata function right? On return something happens and form gets like frozen so i suppose something is wrong with return value. What should i look for? Thx.

Regards,

Nino


#13

Hi @orcalator,

Before jumping into the PHP, I’d suggest using the browser’s developer tools to inspect some of the server responses. Where you fail to get the expected response, I wonder if the server is sending invalid/malformed JSON.

Regards,
Alec Smecher
Public Knowledge Project Team


#14

@asmecher

Ok, i’ll try that first and get back with results. Thx. for help.

Regards,

Nino


#15

@asmecher,

I solved this. It was my mistake - i had some debugging code left from OJS migration in one php file that was causing the problem. Sorry for trouble and thank you for help!

Regards,

Nino