Submission HTTP Error

Good day,

We use OJS V3.1.0.1

We experience an HTTP Error message when Uploading a file for Submission.

When selecting a file to upload and clicking on ‘open’, directly after on the next window(attached) we see the ‘HTTP Error’ message displayed in red:
2021-03-24 10_47_23-Window

To try and fix the issue we enabled and disabled plugins focusing on the document format plugins but no luck.

Here is part of the logfile:
[Wed Mar 24 10:18:06.896973 2021] [php7:error] [pid 1744061] [client 2001:43f8:754:2010:308c:d20a:6c18:9a64:53642] PHP Fatal error: Uncaught Error: Call to a member function getFileId() on null in /var/www/html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php:1032\nStack trace:\n#0 /var/www/html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php(314): PKPSubmissionFileDAO->_castToDatabase()\n#1 /var/www/html/lib/pkp/classes/file/SubmissionFileManager.inc.php(270): PKPSubmissionFileDAO->insertObject()\n#2 /var/www/html/lib/pkp/classes/file/SubmissionFileManager.inc.php(58): SubmissionFileManager->_handleUpload()\n#3 /var/www/html/lib/pkp/controllers/wizard/fileUpload/form/SubmissionFilesUploadForm.inc.php(266): SubmissionFileManager->uploadSubmissionFile()\n#4 /var/www/html/lib/pkp/controllers/wizard/fileUpload/PKPFileUploadWizardHandler.inc.php(288): SubmissionFilesUploadForm->execute()\n#5 /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php(372): PKPFileUploadWizardHandler->uploadFile()\n#6 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.inc.php(256): PKPRouter->_authorizeInitializeAndCallRequest()\n#7 /var/www/html/lib/pkp/cla in /var/www/html/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032, referer: http://journal.ru.ac.za/index.php/toposcope/submission/wizard/2?submissionId=2358

This is also part of the log:
[Wed Mar 24 10:18:18.262822 2021] [php7:error] [pid 1743982] [client 146.231.128.30:49452] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/plugins/generic/webFeed/W
ebFeedBlockPlugin.inc.php:99\nStack trace:\n#0 /var/www/html/lib/pkp/classes/plugins/BlockPlugin.inc.php(177): WebFeedBlockPlugin->getContents()\n#1 /var/www/html/lib/pkp/classes/plugins/HookRegistry.inc.php(1
07): BlockPlugin->callback()\n#2 /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1141): HookRegistry::call()\n#3 /var/www/html/cache/t_compile/ade49584b259a94052943f98dbc0b6eb603691ca^%%40^40
8^4081C66E%%footer.tpl.php(9): PKPTemplateManager->smartyCallHook()\n#4 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/html/c…’)\n#5 /var/www/html/lib/pkp/class
es/template/PKPTemplateManager.inc.php(416): Smarty->smarty_include()\n#6 /var/www/html/cache/t_compile/65bfc3e024c2e9104f46e23b73376a9455e3df0e^%%41^413^413796DB%%indexSite.tpl.php(99): PKPTemplateManager->
smarty_include()\n#7 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1257): in /var/www/html/plugins/generic/webFeed/WebFeedBlockPlugin.inc.php on line 99
[Wed Mar 24 10:18:18.306082 2021] [php7:error] [pid 1744014] [client 2001:43f8:750:1000:250:56ff:fe8d:74ce:36648] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/pl
ugins/generic/webFeed/WebFeedBlockPlugin.inc.php:99\nStack trace:\n#0 /var/www/html/lib/pkp/classes/plugins/BlockPlugin.inc.php(177): WebFeedBlockPlugin->getContents()\n#1 /var/www/html/lib/pkp/classes/plugins
/HookRegistry.inc.php(107): BlockPlugin->callback()\n#2 /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1141): HookRegistry::call()\n#3 /var/www/html/cache/t_compile/ade49584b259a94052943f98d
bc0b6eb603691ca^%%40^408^4081C66E%%footer.tpl.php(9): PKPTemplateManager->smartyCallHook()\n#4 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/html/c…’)\n#5 /var
/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php(416): Smarty->_smarty_include()\n#6 /var/www/html/cache/t_compile/65bfc3e024c2e9104f46e23b73376a9455e3df0e^%%41^413^413796DB%%indexSite.tpl.php(99)
: PKPTemplateManager->_smarty_include()\n#7 /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1257): in /var/www/html/plugins/generic/webFeed/WebFeedBlockPlugin.inc.php on line 99
[Wed Mar 24 10:18:38.295627 2021] [php7:warn] [pid 1744014] [client 54.36.148.131:20170] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (thi
s will throw an Error in a future version of PHP) in /var/www/html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 98
[Wed Mar 24 10:18:38.295648 2021] [php7:warn] [pid 1744014] [client 54.36.148.131:20170] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (thi
s will throw an Error in a future version of PHP) in /var/www/html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 101

Did you find solution? i have the same problem

Hi @Jaco,

The most common cause of the HTTP Error message is that the file permissions in your files directory (files_dir in config.inc.php) are not set in a way that allows OJS to upload files there. The details of what permissions are required will depend on your server setup. See docs/README.md for more details.

Regards,
Alec Smecher
Public Knowledge Project Team

I found my problem’s solution. ı opened fileinfo in php select menu. Then works.

1 Like