OJS 3.3.0-8 Edit author error: "Failed Ajax request or invalid JSON returned"

Hi

I get the following error when I try to edit author in a submission or when using the quicksubmit module. I use OJS 3.3.0.8, PHP Version 7.3.18, on CentOS

“Failed Ajax request or invalid JSON returned.”

The following error from the log:


[Mon Oct 18 08:42:16.878951 2021] [php7:error] [pid 20568] [client 10.243.0.205:1033] PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in /var/www/html/journal/cache/t_compile/7db64108c3736ceeaac8d8726935be2c7e0e8a7c^06932f1259fee8e7c6747e1a2b9752b223abefd1_0.app.controllersgridusersautho.php:36\nStack trace:\n#0 /var/www/html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_616d13050081e4_78021557(Object(Smarty_Internal_Template))\n#1 /var/www/html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))\n#2 /var/www/html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))\n#3 /var/www/html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0)\n#4 /var/www/html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smart in /var/www/html/journal/cache/t_compile/7db64108c3736ceeaac8d8726935be2c7e0e8a7c^06932f1259fee8e7c6747e1a2b9752b223abefd1_0.app.controllersgridusersautho.php on line 36, referer: https://journal.se/management/importexport/plugin/QuickSubmitPlugin

The following error in the browser:

Request URL: https://journal.se/$$$call$$$/grid/users/author/author-grid/add-author?submissionId=4100&publicationId=4153&_=1634539330565
Request Method: GET
Status Code: 500 Internal Server Error
Remote Address: xxx:443
Referrer Policy: strict-origin-when-cross-origin
Connection: close
Content-Length: 148
Content-Type: text/html; charset=UTF-8
Date: Mon, 18 Oct 2021 06:42:16 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.18
Set-Cookie: OJSSID=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: OJSSID=c3ppak2l5ofh3cqsdcuqkokgje; expires=Wed, 17-Nov-2021 06:42:16 GMT; Max-Age=2592000; path=/; domain=journal.se
Strict-Transport-Security: max-age=31536000
X-Powered-By: PHP/7.3.18
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: sv-SE,sv;q=0.9,en-US;q=0.8,en;q=0.7
Cache-Control: no-cache
Connection: keep-alive
Cookie: _ga=GA1.2.293896659.1576747792; cookieconsent_status=dismiss; OJSSID=c3ppak2l5ofh3cqsdcuqkokgje; _gid=GA1.2.495926826.1634537429
Host: journal.se
Pragma: no-cache
Referer: https://journal.se/management/importexport/plugin/QuickSubmitPlugin
sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
X-Requested-With: XMLHttpRequest
submissionId: 4100
publicationId: 4153
_: 1634539330565

I have followed the instructions on

and made sure that gettext is installed
image

Can anyone please find what is wrong?

best regards
@eddoff

Do you @asmecher have any clues?

Hi all
This maybe solved, but I’m having a similar when an user try to upload a Galley (either from the quicksubmit or during normal process of the final publication).

PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in \controllers\wizard\fileUpload\FileUploadWizardHandler.inc.php:35\nStack trace:\n#0 \lib\pkp\classes\core\PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array)\n#1 \lib\pkp\classes\core\PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)\n#2 \lib\pkp\classes\core\Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request))\n#3 \lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 \index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in \controllers\wizard\fileUpload\FileUploadWizardHandler.inc.php on line 35, referer: http://localhost/netxtraosj/index.php/jcrm/management/importexport/plugin/QuickSubmitPlugin

and the same error when an user try to upload document on copyediting or publication stage:

Thanks

Hi

and

solved my problem!

i.e. I updated the authour requrements plugin!

@e-smartsolution, I don’t know if that solves your problem as well, have it a try! If not I think you better post a new thread for your issue.

@eddoff

Thank you for asking, all my plugins are updated…
Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php:35 Stack trace: #0 /www/htdocs/journal/lib/pkp/classes/core/PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array) #1 /www/htdocs/journal/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array) #2 /www/htdocs/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request)) #3 /www/htdocs/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request)) #4 /www/htdocs/journal/index.php(68): PKPApplication->execute() #5 {main} thrown in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php on line 35

The solution was a fresh installation of the new version and follow the recomendation upgrade to 3.3.0.8