OJS3.1-01 - Clicking image files causes 500 Internal Server Error

Hi, after upgrading to 3.1-01 we have a problem with image files (JPEGs) in submissions - clicking them leads to a 500 Internal Server Error. Other file types seem to be OK so far. We are able to download the files using the “More Information” function, but cannot include them in files sent out for review - selecting them just causes the “working” spinning icon to appear but nothing happens.

Any ideas?

(On another note, the “reviewer being able to see the writer name” bug seems to have been resolved - many thanks for that!)

Which version of PHP you use on server? Is jpg allowed format in your server configuration?
Please post information from your php error log.

Thanks

Thanks for responding @vvucic

PHP version is 5.6.30, and jpegs are allowed in the server config.

Here is the recent error log:

[12-Jan-2018 22:55:38 Asia/Tokyo] ojs2: 404 Not Found
[12-Jan-2018 23:10:59 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 01:33:20 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 05:22:45 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 06:49:55 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 08:48:09 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 10:50:11 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 12:06:28 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 12:59:10 Asia/Tokyo] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, class ‘StageParticipantNotifyForm’ does not have a method ‘updateEntry’ in /home/site/public_html/content/lib/pkp/classes/controllers/listbuilder/ListbuilderHandler.inc.php on line 281
[13-Jan-2018 13:28:35 Asia/Tokyo] ojs2: 404 Not Found
[13-Jan-2018 16:09:15 Asia/Tokyo] PHP Fatal error: Call to a member function getId() on null in /home/site/public_html/content/lib/pkp/classes/notification/form/PKPNotificationSettingsForm.inc.php on line 103
[13-Jan-2018 16:52:08 Asia/Tokyo] PHP Fatal error: Call to a member function getId() on null in /home/site/public_html/content/lib/pkp/classes/notification/form/PKPNotificationSettingsForm.inc.php on line 103
[13-Jan-2018 16:54:15 Asia/Tokyo] PHP Fatal error: Call to a member function getId() on null in /home/site/public_html/content/lib/pkp/classes/notification/form/PKPNotificationSettingsForm.inc.php on line 103
[13-Jan-2018 17:26:36 Asia/Tokyo] PHP Fatal error: Call to a member function getId() on null in /home/site/public_html/content/lib/pkp/classes/notification/form/PKPNotificationSettingsForm.inc.php on line 103
[13-Jan-2018 22:10:09 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 07:01:19 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 07:23:29 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 08:37:04 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 14:30:38 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 15:18:02 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 16:00:39 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 17:34:31 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 17:35:38 Asia/Tokyo] PHP Warning: Smarty error: unable to read resource: “controllers/tab/authorDashboard/internalReview.tpl” in /home/site/public_html/content/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1094
[14-Jan-2018 20:13:18 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:13:18 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:13:18 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:13:18 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:14:20 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:14:20 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:14:20 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:14:20 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:21:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:21:01 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:21:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:21:01 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:25:26 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:25:26 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:25:26 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:25:26 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:25:26 Asia/Tokyo] ojs2: 404 Not Found
[14-Jan-2018 20:29:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:29:01 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:29:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:29:01 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:31:23 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/190/submission/190-19-634-2-2-20180105.xlsx): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:31:23 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:31:23 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/190/submission/review/190-19–1-4-20180105.xlsx): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:31:23 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:38:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:38:01 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:38:01 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:38:01 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:47:12 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 20:47:12 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 20:47:22 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 20:47:22 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 20:47:34 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 20:47:34 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 20:53:14 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:53:14 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 20:53:14 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 20:53:14 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 20:58:14 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/190/submission/190-19-634-2-2-20180105.xlsx does not exist or is not readable!
[14-Jan-2018 20:58:14 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 20:58:26 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/190/submission/190-19-634-2-2-20180105.xlsx does not exist or is not readable!
[14-Jan-2018 20:58:26 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:08:20 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:08:20 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:09:26 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:09:26 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:10:12 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 21:10:12 Asia/Tokyo] PHP Warning: assert(): Assertion failed in /home/site/public_html/content/lib/pkp/classes/submission/SubmissionFileDAODelegate.inc.php on line 113
[14-Jan-2018 21:10:12 Asia/Tokyo] PHP Warning: copy(/home/site/ojs-files/journals/2//articles/151/submission/review/151-24–1-4-20171209.jpg): failed to open stream: No such file or directory in /home/site/public_html/content/lib/pkp/classes/file/FileManager.inc.php on line 159
[14-Jan-2018 21:10:12 Asia/Tokyo] PHP Fatal error: Call to a member function getFileId() on null in /home/site/public_html/content/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1032
[14-Jan-2018 21:11:05 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:11:05 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:16:28 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:16:28 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:27:04 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-494-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:27:04 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:28:34 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[14-Jan-2018 21:28:34 Asia/Tokyo] ojs2: 500 Internal Server Error
[14-Jan-2018 21:29:24 Asia/Tokyo] ojs2: 404 Not Found
[15-Jan-2018 04:03:12 Asia/Tokyo] ojs2: 404 Not Found
[15-Jan-2018 07:23:36 Asia/Tokyo] ojs2: 404 Not Found
[15-Jan-2018 08:49:22 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[15-Jan-2018 08:49:22 Asia/Tokyo] ojs2: 500 Internal Server Error
[15-Jan-2018 08:49:59 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[15-Jan-2018 08:49:59 Asia/Tokyo] ojs2: 500 Internal Server Error
[15-Jan-2018 08:50:15 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable!
[15-Jan-2018 08:50:15 Asia/Tokyo] ojs2: 500 Internal Server Error
[15-Jan-2018 09:12:07 Asia/Tokyo] ojs2: 404 Not Found
[15-Jan-2018 15:25:04 Asia/Tokyo] ojs2: 404 Not Found
[15-Jan-2018 15:35:51 Asia/Tokyo] PHP Fatal error: Call to a member function getId() on null in /home/site/public_html/content/lib/pkp/classes/notification/form/PKPNotificationSettingsForm.inc.php on line 103
[15-Jan-2018 20:29:29 Asia/Tokyo] PHP Fatal error: Uncaught exception ‘Less_Exception_Parser’ with message ‘File /home/site/public_html/content/plugins/themes/bootstrap3/styles/spacelab.less not found.’ in /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php:2606
Stack trace:
#0 /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php(319): Less_Parser->Error(‘File /home/jal...') #1 /home/site/public_html/content/lib/pkp/classes/template/PKPTemplateManager.inc.php(451): Less_Parser->parseFile('/home/site/pu...') #2 /home/site/public_html/content/lib/pkp/controllers/page/PageHandler.inc.php(133): PKPTemplateManager->compileLess('bootstrapTheme-...', '/home/site/pu...', Array) #3 [internal function]: PageHandler->css(Array, Object(Request)) #4 /home/site/public_html/content/lib/pkp/classes/core/PKPRouter.inc.php(372): call_user_func(Array, Array, Object(Request)) #5 /home/site/public_html/content/lib/pkp/classes/core/PKPComponentRouter.inc.php(256): PKPRouter->_authorizeIniti in /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php on line 2606 [15-Jan-2018 20:30:12 Asia/Tokyo] FileApiHandler: File /home/site/ojs-files/journals/2//articles/151/submission/151-24-495-2-2-20171209.jpg does not exist or is not readable! [15-Jan-2018 20:30:12 Asia/Tokyo] ojs2: 500 Internal Server Error [15-Jan-2018 20:47:08 Asia/Tokyo] PHP Fatal error: Uncaught exception 'Less_Exception_Parser' with message 'File /home/site/public_html/content/plugins/themes/bootstrap3/styles/spacelab.lessnot found.' in /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php:2606 Stack trace: #0 /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php(319): Less_Parser->Error('File/home/jal…’)
#1 /home/site/public_html/content/lib/pkp/classes/template/PKPTemplateManager.inc.php(451): Less_Parser->parseFile(’/home/site/pu…’)
#2 /home/site/public_html/content/lib/pkp/controllers/page/PageHandler.inc.php(133): PKPTemplateManager->compileLess(‘bootstrapTheme-…’, ‘/home/site/pu…’, Array)
#3 [internal function]: PageHandler->css(Array, Object(Request))
#4 /home/site/public_html/content/lib/pkp/classes/core/PKPRouter.inc.php(372): call_user_func(Array, Array, Object(Request))
#5 /home/site/public_html/content/lib/pkp/classes/core/PKPComponentRouter.inc.php(256): PKPRouter->_authorizeIniti in /home/site/public_html/content/lib/pkp/lib/vendor/oyejorge/less.php/lib/Less/Parser.php on line 2606

Hello,
I think that @bozana or @asmecher can check your php error log and help you .

Did you change permissions on server in way that will prevent jpg files to be read?

Hi @marukomu,

In order to narrow down the relevant entries in the error log, I’d suggest triggering the error, then looking only at any added log entries that result. It’s hard to determine which entries are relevant with long log dumps.

Regards,
Alec Smecher
Public Knowledge Project Team