Error 500 when click pdf Button
Previously OJS was running well. but currently there is a problem when clicking the pdf button. error 500 is obtained.
I’ve tried and it doesn’t work. Please help.
I am using PHP Version 7.3 and ojs version 3.3.0.14
https://geloraciptanusantara.org/jurnal/index.php/jpkmc
Hi @Dedi_Candro_Parulian,
For 500
errors it is best to check your PHP error log? Are you able to do that and report back on errors found there?
-Roger
PKP Team
I had the exact same problem after an upgrade from OJS 3.3 to 3.4. I solved it fixing permissions on the files folder (chown -R)
The following is the error log that we got. From the error log, we have changed the PHP version to PHP 7.3. But there are still errors and errors when clicking the PDF button are not recorded in the error log. Please help me
Hi @Dedi_Candro_Parulian,
This post from another user reports the same issue: Error after upgrade to OJS 3.3 - #4 by Developer_IMAVI
They resolved the issue by removing the .htaccess
file - do you have one of those present? You may want to check with your systems administrator to ensure that it isn’t being actively used though.
-Roger
PKP Team
We already change .htaccess to .htaccess_old and refresh page but still error when click pdf button
Hi @Dedi_Candro_Parulian,
Thanks. I’m not sure what more to suggest at this point - I will see if another of our team members can have a look at this when they have an opportunity.
-Roger
PKP Team
Hi, your error log indicates "Server host www…org not allowed! - maybe your 500 HTTP Status is connected to that.
Did you configure the allowed_hosts variable in config.inc.php correctly? See also Server host www.domain.com not allowed!
1 Like
in the last line of the log you can see that there is an error relating to the php version, which must be at least 7.3, but at least at the date of the log, it appears to be 7.2. In any case, versions 7.2 and 7.3 have already reached the End of Life some time ago, if possible you should move to 8.1. If you use Ubuntu 22.04 use 7.4, at least there are backports of the security patches (at least the most serious flaws)
1 Like
I tried to update the version from 3.3.0.14 to 3.4.0.5. When I checked the Administration / System Information menu, I didn’t find a link to update, and some menus displayed strange displays like the one below. Please help
OJS does not have a GUI update tool, like wordpress for example. The update instructions are at this link:
https://docs.pkp.sfu.ca/dev/upgrade-guide/en/
I personally think it would be better to update to the latest LTS version available, which is currently 3.3.0-19.
The characters in curly brackets are missing translations key. In case the language of the magazine is not English I suggest you to use the plugin “Default translation” in the plugin gallery, that make OJS fall back on English when elements of the software translation are missing.
Hi all,
Just one quick correction to what @Nick_Straw wrote – the {{ variable.name }}
code is not an untranslated locale key, it’s a VueJS variable that wasn’t replaced because there was a Javascript error. Untranslated locale keys would look like ##some.locale.key##
.
But as Nick wrote, you need to follow the upgrade instructions to run a database update. Make sure you take a complete backup first!
Regards,
Alec Smecher
Public Knowledge Project Team
1 Like