OJS 3.0 Loading Workflow too slowly

Hi,

I recently installed OJS 3.0 but when I login to change the appearence of website, there is a blank page as follows:

When I refresh the page, the page loads without problems. But when I try to visit the submission page, there says that the page is loading but although I wait a long time, the page does not load properly:

Can you help me to solve this problem?

The scripts are not loading probably because of an error. Did you check your php error logs and/or javascript console for errors?

Hi thanks,

I now checked the error logs, there are some errors like these, but I dont know what they mean:

[28-Nov-2016 09:11:29 America/Chicago] PHP Strict Standards: Declaration of SearchHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/jarfeorg/public_html/pages/search/SearchHandler.inc.php on line 19
[28-Nov-2016 09:11:29 America/Chicago] PHP Strict Standards: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/jarfeorg/public_html/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 372
[28-Nov-2016 09:11:29 America/Chicago] PHP Strict Standards: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/jarfeorg/public_html/classes/core/Request.inc.php on line 68

Hi @veli,

See e.g. this post:

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,

I checked “config.inc.php”, display_errors and deprecation_warnings were off. On the other hand In the PHP Option Page; “display_errors Off” is selected. But the problem continues. In the submission page (… workflow/index/2/1) only “Loading” appears but nothing happens.

Hi @veli,

I suspect your browser is getting PHP error messages served to it during a page subrequest. You can explore for these by installing a tool like Firebug for Firefox and looking at the responses OJS gives to the browser – I suspect you’ll see error messages in one of these.

Regards,
Alec Smecher
Public Knowledge Project Team

@veli It seems we have the similar problem right now with OJS 3.1. I wonder if you get this solved. Could you please share some tips if you have this fixed?

Thank you.

I had same problem of slow loading in admin panel…pls provide any solution

We observed something like that when running on PostgreSQL. When we switched to MySQL everything ran fast…

I had same problem of slow loading in admin panel after upgrade OJS to 3’s version. I try to contact my hosting provider but they said ‘Oke, no problem in server side’. Please help for this problem. I’ve upgraded two of my website with OJS 3, but now just ‘Loading’. Thanks.

Hi @justofeel,

Have you checked your server’s PHP error logs?

Regards,
Alec Smecher
Public Knowledge Project Team

dear @asmecher

I found error_log in server. I put it on pastebin, because it is too long. http://pastebin.com/YHzF8R9E

Can you help me, please. Thanks.

Hi @justofeel,

Is your server configured to display errors to the end user? If so, I would suggest configuring it to send errors and warnings to the log file instead. Messages being sent to the browser will interfere with subrequests. The warnings in the log are cosmetic and can otherwise be ignored.

Regards,
Alec Smecher
Public Knowledge Project Team

After my site was uploaded to the server, the site began to work very slowly. The log file contains the following errors many times:

ojs2: 404 Not Found

with the different IPs. And a lot of warnings

PHP Warning:  fsockopen(): unable to connect to pkp.sfu.ca:80 (Connection timed out) in /lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
PHP Warning:  array_flip(): Can only flip STRING and INTEGER values! in /lib/pkp/classes/core/PKPApplication.inc.php on line 702

with my IP. I can not see php.ini, I do not have access to any server settings except a files in the home directory. Can you help me to solve this problem?

Hi @crosfield,

Is your server firewalled from accessing pkp.sfu.ca? There are a few features that won’t work in that case (e.g. the plugin gallery), and depending on how your system is firewalled, OJS might delay for a while as it tries to contact the server.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher!

Yesterday, all the PHP warnings have disappeared from the log, but the ojs2 errors has remained.

[Mon Apr 02 23:04:07.510444 2018] [:error] [pid 5650] [client 66.249.75.216:37228] ojs2: 404 Not Found
[Mon Apr 02 23:11:05.882494 2018] [:error] [pid 6016] [client 178.154.200.28:64022] ojs2: 404 Not Found
[Mon Apr 02 23:14:02.519902 2018] [:error] [pid 6221] [client 178.154.200.28:56946] ojs2: 404 Not Found
[Mon Apr 02 23:15:14.235476 2018] [:error] [pid 6241] [client 217.69.134.11:45686] ojs2: 404 Not Found
[Mon Apr 02 23:16:11.221334 2018] [:error] [pid 6244] [client 178.154.200.28:43730] ojs2: 404 Not Found
[Mon Apr 02 23:18:34.631345 2018] [:error] [pid 6278] [client 141.8.142.16:55224] ojs2: 404 Not Found
[Mon Apr 02 23:36:52.362703 2018] [:error] [pid 6409] [client 178.154.200.28:55860] ojs2: 404 Not Found
[Mon Apr 02 23:38:22.321550 2018] [:error] [pid 7103] [client 178.154.200.28:36512] ojs2: 404 Not Found
[Mon Apr 02 23:38:29.874221 2018] [:error] [pid 6938] [client 178.154.200.28:37290] ojs2: 404 Not Found
[Mon Apr 02 23:42:07.071066 2018] [:error] [pid 6881] [client 178.154.200.28:61378] ojs2: 404 Not Found
[Mon Apr 02 23:47:00.454384 2018] [:error] [pid 6905] [client 217.69.134.11:56972] ojs2: 404 Not Found
[Mon Apr 02 23:48:16.584115 2018] [:error] [pid 7425] [client 66.249.75.218:62560] ojs2: 404 Not Found

and much more many times without and with referers from my backend and Google and Yandex search bots.

Could be OJS 3.1.0.1 Access and error log filling with references to old(?) citation plugin addresses you could try comparing the 404 error log timestamp to the access log entries.