Error after installing

Capture

it’s my 1st time using OJS
i got this error Deprecated notification everytime i open my OJS using localhost

Deprecated : Non-static method PKPApplication::defineExposedConstant() should not be called statically in D:\Program Files\Xampp\htdocs\OJS2\lib\pkp\classes\core\PKPApplication.inc.php on line 545

Deprecated : Non-static method PKPApplication::getExposedConstants() should not be called statically in D:\Program Files\Xampp\htdocs\OJS2\lib\pkp\classes\core\PKPApplication.inc.php on line 513

i’m not sure about the effect and cause. but its annoying
can somebody help me solve or fix this
thank you…

Hi @Andhika_Rh,

First you are using quite old version of the OJS. Any particulr reason for that? Otherwise I would suggest to use newer 3.x version.

The warning your are seeing is because of ‘debug’ settings in the config.inc.php. Disable all the ‘debug’ settings at the end of the file and should work.

Regards, Primož

2 Likes

Thanks for the respond @primozs
i use 2.x version because my teacher told me to, beside that i’m also use 3.x version too.

and thanks for the solution it’s works fine now.

Regards, Dika