Problem with OJS 3.1.1-2 installation on Win10 & XAMPP

Hello,
I am trying fresh install the newer version on my localhost.

I am using windows10/ XAMPP/ APACHE 2.4.34/ PHP 7.2.8/ phpMyAdmin 4.8.2.

During the installation everything goes fine, even database is populated. But after the first login as admin I can only see the OJS logo with administration link, nothing else in the page gets loaded. Image attached.
image1

Got same results with EasyPHP / IE / Firefox

error log is given below.


\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386
[Fri Aug 17 15:34:32.139157 2018] [php7:warn] [pid 2256:tid 1932] [client ::1:51634] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\xampp\htdocs\ojs\lib\pkp\pages\install\InstallHandler.inc.php on line 118
[Fri Aug 17 15:34:36.599832 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51636] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/install/install
[Fri Aug 17 15:38:18.199312 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51640] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386
[Fri Aug 17 15:38:18.231303 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51640] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\xampp\htdocs\ojs\lib\pkp\pages\install\InstallHandler.inc.php on line 118
[Fri Aug 17 15:40:10.605066 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51642] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/install/install
[Fri Aug 17 15:40:10.621041 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51642] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\xampp\htdocs\ojs\lib\pkp\pages\install\InstallHandler.inc.php on line 118, referer: http://localhost/ojs/index.php/index/install/install
[Fri Aug 17 15:40:36.294167 2018] [php7:warn] [pid 2256:tid 1932] [client ::1:51645] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/install/install
[Fri Aug 17 15:40:41.313856 2018] [php7:warn] [pid 2256:tid 1932] [client ::1:51645] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/install/install
[Fri Aug 17 15:40:45.026042 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51649] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/login
[Fri Aug 17 15:40:55.370140 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51653] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/login
[Fri Aug 17 15:40:55.805306 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51653] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/login
[Fri Aug 17 15:40:56.218768 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51653] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/login
[Fri Aug 17 15:41:06.821546 2018] [php7:warn] [pid 2256:tid 1940] [client ::1:51659] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/admin/contexts
[Fri Aug 17 15:41:11.402286 2018] [php7:warn] [pid 2256:tid 1940] [client ::1:51659] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/admin/index
[Fri Aug 17 15:41:11.742395 2018] [php7:warn] [pid 2256:tid 1916] [client ::1:51661] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\ojs\lib\pkp\plugins\generic\usageEvent\PKPUsageEventPlugin.inc.php on line 386, referer: http://localhost/ojs/index.php/index/admin/contexts

Solution please.
Robin

still no reply :sweat:

I am new to OJS, is it compatible with windows 10 and XAMPP ?

Check the javascript log, what errors do you have there?

Error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0. (Reason: CORS request did not succeed).

Solution: Allowing XAMMP full web access solved the problem.

Question: Why this font? why we need to go to “cloudflare.com”?

I think you can turn of cdn from config.inc.php (not sure if it only applies to javascript though…)

No. it didn’t work.

Funny thing is if I create one more journal, server needs to connect to “cloudflare.com” again even for localhost.

It is beyond my understanding why it needs to be done in this manner.

Thanks “ajnyga” , I was only checking errors in XAMMP, completely forgot about the seeing the browser (FF) error. Thanks for the hint.

@NateWr you probably know where that is being loaded? GDPR wise it should probably obey the enable_cdn = false setting?

Wherever fontawesome is loaded in core, it respects the enable_cdn config option. @Robin, check your config.inc.php file for the following line:

enable_cdn = On

Turn this to off:

enable_cdn = Off

This will load all required assets from local files instead of a cdn.

This loads the icons we use in the system. These icons are widely used throughout the web, so loading from a cdn means that many of our users will have the file cached locally.

However, many people prefer to run with enable_cdn off so that their traffic details are not sent to a remote server.

Disabling “cdn” solved the font problem. Thanks - ajnyga & NateWr. However it results in other errors like:

“Failed to load content css: http://localhost/ojs/plugins/generic/tinymce/styles/content.css

Thanks.

Hi @Robin,

The content.css file is not loaded from a cdn, so it will likely be a different error from the CORS error you were receiving before. Can you provide the full error message in the browser?