[Solved] Enocunter Error 404 when upgrading from OJS 2.4.8 to 3.0.2

Hey,
I encounter error 404 when i open my site after upgrading from OJS 2.4.8 to 3.0.2.
I tried a lot of changes in the config.inc.php- nothing is happening.
Please help.
here are the error logs:
PHP error log:

[Tue Jun 13 18:22:39.394774 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: el_GR in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.395246 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: no_NO in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.395774 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: fa_IR in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.396274 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: ro_RO in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.396775 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: vi_VN in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.396775 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: ja_JP in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.397275 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Notice: Undefined index: zh_TW in C:\xampp\htdocs\mbr\lib\pkp\classes\context\Context.inc.php on line 279
[Tue Jun 13 18:22:39.426145 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Strict Standards: Declaration of PayPalPlugin::displayPaymentSettingsForm() should be compatible with PKPPaymethodPlugin::displayPaymentSettingsForm(&$params, $smarty) in C:\xampp\htdocs\mbr\plugins\paymethod\paypal\PayPalPlugin.inc.php on line 0
[Tue Jun 13 18:22:39.438147 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\plugins\ThemePlugin.inc.php on line 409
[Tue Jun 13 18:22:39.438647 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\classes\core\Request.inc.php on line 68
[Tue Jun 13 18:22:39.526424 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php on line 315
[Tue Jun 13 18:22:39.527924 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\scheduledTask\ScheduledTaskHelper.inc.php on line 114
[Tue Jun 13 18:22:39.527924 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php on line 315
[Tue Jun 13 18:22:39.528924 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\scheduledTask\ScheduledTaskHelper.inc.php on line 114
[Tue Jun 13 18:22:39.529425 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php on line 315
[Tue Jun 13 18:22:39.530427 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\scheduledTask\ScheduledTaskHelper.inc.php on line 114
[Tue Jun 13 18:22:39.530926 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php on line 315
[Tue Jun 13 18:22:39.531927 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\scheduledTask\ScheduledTaskHelper.inc.php on line 114
[Tue Jun 13 18:22:39.531927 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php on line 315
[Tue Jun 13 18:22:39.532928 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\scheduledTask\ScheduledTaskHelper.inc.php on line 114
[Tue Jun 13 18:22:39.533429 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\core\Dispatcher.inc.php on line 245
[Tue Jun 13 18:22:39.533928 2017] [:error] [pid 26236:tid 1840] [client 127.0.0.1:62210] ojs2: 404 Not Found

Stack Trace:

File: C:\xampp\htdocs\mbr\lib\pkp\classes\core\PKPPageRouter.inc.php line 203
Function: Dispatcher->handle404()

File: C:\xampp\htdocs\mbr\lib\pkp\classes\core\Dispatcher.inc.php line 134
Function: PKPPageRouter->route(Object(Request))

File: C:\xampp\htdocs\mbr\lib\pkp\classes\core\PKPApplication.inc.php line 227
Function: Dispatcher->dispatch(Object(Request))

File: C:\xampp\htdocs\mbr\index.php line 68
Function: PKPApplication->execute()

On keeping the display_error= ON

Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\mbr\lib\pkp\classes\core\Dispatcher.inc.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mbr\lib\pkp\plugins\generic\acron\PKPAcronPlugin.inc.php:315) in C:\xampp\htdocs\mbr\lib\pkp\classes\core\Dispatcher.inc.php on line 247

Hi @Akshar_Pandey,

What URL are you trying to access when you see a 404 error?

Regards,
Alec Smecher
Public Knowledge Project Team

hello @asmecher i am trying to access the index page.

Hi @Akshar_Pandey,

I suspect you may be missing some files in your OJS installation. Make sure that all the files from the .tar.gz file are present.

Regards,
Alec Smecher
Public Knowledge Project Team

hey @asmecher i just figured out that i am also unable to access any page not just the index after the OJS upgrade and i made sure that all files from OJS 3.0.2 tar.gz are there.
I am not sure what is the problem.

Hi @Akshar_Pandey,

Your system is behaving as if the page handler classes, e.g. pages/index/IndexHandler.inc.php, don’t exist. If those files do seem to exist and file permissions allow OJS to load them, is there some other server configuration that might explain it, like an URL rewriting configuration?

Regards,
Alec Smecher
Public Knowledge Project Team

Hey @asmecher I finally was able to figure out what all happened.
So when I had OJS 2.4.8 somehow the option to show my journal publically was unchecked but it was still working and as soon as I upgraded it sent out 404, So i had to first stop the redirect and then later on login into the backend and enable the journal.

Hope this helps to anyone in the future.

Thank you for the support.

Hi @Akshar_Pandey,

Ah, good spotting – yes, that’s expected behavior.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi! :grinning: can you explain me how solve this problem? Now i trying to upgrade from OJS 2.4.8 to 3.0.2 but when i access to index page OJS send me 404 error.

Thanks for help me.

Bye
Tiziano

Hi @Tiziano,

The user in this case was trying to access the homepage for a journal that was marked “disabled”. If it’s the same issue, you should be able to log in as administrator and enable the journal.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec! mmmh i don’t know if it is the same issue, because, i upgraded OJS from 2.4.6 to 3.0.2, and after update when i try access to index page OJS send me 404 Not Found. Can you help me?

Thanks!

Bye
Tiziano

Hi @Tiziano,

Did you check your PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry but after i wrote the reply i have fix it. :smiley: in my case i have reset my password and then i was able login into my dashboard for enable the journal. Thanks for support anyway!

Bye
Tiziano