Error transferring OJS from web to localhosr

Hi! I’m trying to transfer our OJS in localhost. But I’m having this error.

Fatal error : Uncaught Error: Non-static method PKPApplication::defineExposedConstant() cannot be called statically in C:\xampp\htdocs\ejournal\lib\pkp\classes\core\ Stack trace: #0 C:\xampp\htdocs\ejournal\lib\pkp\classes\core\ define_exposed(‘REALLY_BIG_NUMB…’, 10000) #1 C:\xampp\htdocs\ejournal\lib\pkp\includes\ include_once(‘C:\xampp\htdocs…’) #2 C:\xampp\htdocs\ejournal\classes\core\ import(‘lib.pkp.classes…’) #3 C:\xampp\htdocs\ejournal\lib\pkp\includes\ include_once(‘C:\xampp\htdocs…’) #4 C:\xampp\htdocs\ejournal\lib\pkp\includes\ import(‘classes.core.Ap…’) #5 C:\xampp\htdocs\ejournal\index.php(60): require(‘C:\xampp\htdocs…’) #6 {main} thrown in C:\xampp\htdocs\ejournal\lib\pkp\classes\core\ on line 545

What seems to be the problem? Can someone help me?

Thank you.

Hi @_patrishamae

What versions of OJS are you running on your web host, and on your localhost?


Hi @jnugent

I’m using OJS ver in our web host and I’m trying to transfer the same version, same contents in the localhost.

Hi @jnugent, I think the problem is with the XAMPP version that I am using. I tried installing the latest version of OJS in the localhost and it didn’t have any errors. I will just try to downgrade the XAMPP version that I am using.

Also, can I ask another question? I’m trying to locate where to edit the About the Site page in OJS but I can’t seem to find it. Where can I find the page so that I can edit this pages: Publication Office and About the Site.

Thank you so much!

Hi @_patrishamae

All of those fields are set if you log in as a Journal Manager, choose “Setup” from the User Home menu, and look at Step 1 and Step 5 (Details, and The Look).

I suspect the reason why OJS won’t work in your XAMPP installation but OJS 3.3.0 does is due to the fact that it is running a very recent version of PHP.


Hi! I will try to install a lower version of XAMPP. But will OJS 3.3.0 work if I use a lower version? I need to try to upgrade OJS. to the latest version in localhost but I’m not that techy.

Also, for the About the Site page I can’t find it in the “Setup” page. We have three journals in our OJS. I need to edit this portion because some weird texts appeared.

Thank you @jnugent.