Error after login

Hello when try to log in getting a popup message “Access denied.” " Error

An unexpected error has occurred. Please reload the page and try again."
After I reload page get login form again.

I am using OJS 3.1.0.0 and PHP 7.0 (ea-php70) . Also, have cPanel mod_security. I try to disable mod_security but no help

Here is the error log:
[20-Aug-2018 09:30:14 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/ztvghcmn/public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 245
[20-Aug-2018 09:30:14 UTC] ojs2: 404 Not Found
[20-Aug-2018 09:30:14 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/ztvghcmn/public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 245
[20-Aug-2018 09:30:14 UTC] ojs2: 404 Not Found
[20-Aug-2018 09:30:19 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/ztvghcmn/public_html/pages/index/IndexHandler.inc.php on line 68
[20-Aug-2018 09:30:19 UTC] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home/ztvghcmn/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[20-Aug-2018 09:31:19 UTC] PHP Strict Standards: Non-static method PKPRequest::redirect() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/security/Validation.inc.php on line 178
[20-Aug-2018 09:31:19 UTC] PHP Strict Standards: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 735
[20-Aug-2018 09:31:24 UTC] PHP Strict Standards: Non-static method Validation::verifyPassword() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/security/Validation.inc.php on line 58
[20-Aug-2018 09:31:24 UTC] PHP Strict Standards: Non-static method PKPRequest::redirect() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/security/Validation.inc.php on line 178
[20-Aug-2018 09:31:24 UTC] PHP Strict Standards: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 735
[20-Aug-2018 09:31:34 UTC] PHP Strict Standards: Non-static method Validation::verifyPassword() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/security/Validation.inc.php on line 58
[20-Aug-2018 09:31:36 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/ztvghcmn/public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 245
[20-Aug-2018 09:31:36 UTC] ojs2: 404 Not Found
[20-Aug-2018 09:31:36 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/ztvghcmn/public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 245
[20-Aug-2018 09:31:36 UTC] ojs2: 404 Not Found
[20-Aug-2018 09:31:36 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/ztvghcmn/public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 245
[20-Aug-2018 09:31:36 UTC] ojs2: 404 Not Found
[20-Aug-2018 09:33:41 UTC] PHP Strict Standards: Non-static method PKPRequest::redirect() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/security/Validation.inc.php on line 178
[20-Aug-2018 09:33:41 UTC] PHP Strict Standards: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 735

Please if anyone has any idea?

I made an upgrade to latest version but still get an error :roll_eyes:

I have enabled error report, now have some log, please help

Deprecated : Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/ztvghcmn/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64

Deprecated : Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ztvghcmn/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263

Deprecated : Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ztvghcmn/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359

Deprecated : Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ztvghcmn/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921

Deprecated : Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ztvghcmn/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939

Warning : session_start(): Cannot send session cache limiter - headers already sent (output started at /home/ztvghcmn/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php:64) in /home/ztvghcmn/public_html/lib/pkp/classes/session/SessionManager.inc.php on line 58

Warning : Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/ztvghcmn/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

Warning : Declaration of TranslatorPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/ztvghcmn/public_html/plugins/generic/translator/TranslatorPlugin.inc.php on line 149

Deprecated : Non-static method VersionCheck::checkIfNewVersionExists() should not be called statically in /home/ztvghcmn/public_html/pages/management/SettingsHandler.inc.php on line 87

Deprecated : Non-static method VersionCheck::getLatestVersion() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/site/VersionCheck.inc.php on line 194

Deprecated : Non-static method VersionCheck::getCurrentDBVersion() should not be called statically in /home/ztvghcmn/public_html/lib/pkp/classes/site/VersionCheck.inc.php on line 197

Warning : Cannot modify header information - headers already sent by (output started at /home/ztvghcmn/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php:64) in /home/ztvghcmn/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 867

Warning : Cannot modify header information - headers already sent by (output started at /home/ztvghcmn/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php:64) in /home/ztvghcmn/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 868

Really, no one :rofl:

maybe this will help you sir, downgrade your php version, 5.6… check permission folder cache, and sub folder t_compile,t_cache etc (inside folder cache), or try on localhost first (laptop or pc)

Thank you for your time. Are cache folders need to be 0777

permission folder 755

I change it form 0777 to 755 but not working
Have an error
Strict Standards : Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/ztvghcmn/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

Warning : Cannot modify header information - headers already sent by (output started at /home/ztvghcmn/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php:386) in /home/ztvghcmn/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 99

hmm…
maybe you should try a new installation of ojs(new database,new folder), with latest version (not upgrade)
or try on your pc/laptop first ,
i suggest to use php 5.6 (i’ve never tried php 7.0), disable mod_security

Thank you. Do you know how can migrate my data from the old installation to new installation?

I have disabled Memcache in the config file and it is working

Hi all,

Note that 777 permissions are never safe to use. They’re useful for testing but please don’t continue using them in production. (See the FAQ in this forum for a description of file permissions.)

OJS sometimes generates warning messages that are cosmetic, but will interfere with AJAX requests if your PHP is configured to send warning messages to the browser. Configure your PHP to direct errors and warnings to the log file instead. This is recommended for production use of PHP anyway.

Regards,
Alec Smecher
Public Knowledge Project Team