I’m getting a blank screen on going to the default page. Enabling errors on the page gives me this:
Deprecated: Non-static method PKPApplication::defineExposedConstant() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 545
Deprecated: Non-static method PKPApplication::getExposedConstants() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 513
Fatal error: Cannot use ‘String’ as class name as it is reserved in /var/www/html/ojs/lib/pkp/classes/core/String.inc.php on line 57
I suspect you’re using PHP7, which introduced a new String class which clashes with our own. For the moment, I would suggest using an older PHP. We’ll be adapting OJS around the PHP7 changes once it hits a reasonable fraction of web hosts (soon, but not yet).
Regards,
Alec Smecher
Public Knowledge Project Team
Mmmm something happed similar to me… i change to a php 5.6 but my error msn seems bigger now.
Strict Standards: Non-static method PKPApplication::defineExposedConstant() should not be called statically in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 545
Strict Standards: Non-static method PKPApplication::getExposedConstants() should not be called statically in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 513
Deprecated: Non-static method PhpQuickProfiler::getMicroTime() should not be called statically, assuming $this from incompatible context in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/PKPProfiler.inc.php on line 28
Deprecated: Non-static method Console::init() should not be called statically, assuming $this from incompatible context in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/lib/pqp/classes/PhpQuickProfiler.php on line 25
Deprecated: Non-static method Console::logMemory() should not be called statically, assuming $this from incompatible context in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 60
Deprecated: Non-static method Console::logSpeed() should not be called statically, assuming $this from incompatible context in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 61
Deprecated: Non-static method PhpQuickProfiler::getMicroTime() should not be called statically, assuming $this from incompatible context in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/lib/pqp/classes/Console.php on line 80
Strict Standards: Non-static method Core::getBaseDir() should not be called statically in /var/www/vhost/revistaaquatic.com/home/html/ojs/lib/pkp/classes/core/Core.inc.php on line 21
Hi, … done… the problem was on the configuration of my php, after change to php 5.6 hundreds of errors were showed, i switch off the display errors setup… and seems that everything work properly, as you say … seems that was just comsetic problems.
I ran into same issue when moving OJS 2.4.8 from Ubuntu php 5.6 to Ubuntu 16 php 7, error:
Deprecated: Non-static method PKPApplication::defineExposedConstant() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 545
Deprecated: Non-static method PKPApplication::getExposedConstants() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 513
Fatal error: Cannot use ‘String’ as class name as it is reserved in /var/www/html/ojs/lib/pkp/classes/core/String.inc.php on line 57
in this case you need to switch php 7 to php 5.6 here are the steps, log in as root#: