Slow sluggish working of OJS

I installed OJS 3 a couple of days ago, and its taking each command a minute or more to respond. I am stuck completely at the first part of the create journal, where nothing seems to be happening after I click on the save button. Could someone help please? I am absolutely new to this, and don’t really have a background. Just been reading as I go along, but I’m not being able to make this sluggishness go away.

Hi @ishitamehta

There are some suggestions over on this thread. Unfortunately performance debugging can be a technical subject, so there may be some learning curve involved in figuring this out.

Regards,
Alec Smecher
Public Knowledge Project Team

Yes, I am aware of that.
I tried xampp and wamp both of which presented their own issues, so I
finally opted to do it the hard way and install all the components
separately, which I was successful in doing. So I now have PHP 7.1.5,
Apache 2.4, MySQL 5.6.37. I ran the installer for OJS, and that went
smooth, but now when I try to create new journal, give it a path and click
save, nothing happens. It just goes on forever. I encountered the same
issue with xampp and I closed the window, but the next time i opened the
page, the journal was there, but completely broken. The text appeared as if
in a .txt file. I hope i’m making sense. I unfortunately didn’t save a
screenshot, but if it happens again I will send it.

Could you help with this?

I changed the max_execution_time to 300, and its made some difference, I
think. Should I change anything else in the php.ini to make it better.

Sorry to bombard you with questions, but now when I click on edit under the
journal name it says “Failed Ajax request or invalid JSON returned.” and
earlier it said “Localhost: The current role does not have access to this
operationThe current role does not have access to this operation”

Here’s my error log when I tried to create a journal again in the hope the
problem would sort itself out

[19-Sep-2017 07:42:32 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::getDataElementSequence($gridDataElement) should be
compatible with GridHandler::getDataElementSequence(&$gridDataElement) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::setDataElementSequence($request, $rowId, $context,
$newSequence) should be compatible with
GridHandler::setDataElementSequence($request, $rowId, &$gridDataElement,
$newSequence) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::authorize($request, &$args, $roleAssignments) should be
compatible with GridHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::initialize($request) should be compatible with
GridHandler::initialize($request, $args = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::loadData($request) should be compatible with
GridHandler::loadData($request, $filter) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 63
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextGridHandler::initFeatures($request, $args) should be compatible with
GridHandler::initFeatures($request, &$args) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:33 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 72
[19-Sep-2017 07:42:33 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 83
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ValidatorUrl::getRegexp() should be compatible with
ValidatorUri::getRegexp($allowedSchemes = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\classes\validation\ValidatorUrl.inc.php on
line 19
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
ContextSiteSettingsForm::fetch($args, $request) should be compatible with
Form::fetch($request, $template = NULL, $display = false) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\form\ContextSiteSettingsForm.inc.php
on line 19
[19-Sep-2017 07:42:33 UTC] PHP Warning: Declaration of
JournalSiteSettingsForm::execute($request) should be compatible with
Form::execute($object = NULL) in
C:\Apache24\htdocs\ojs\controllers\grid\admin\journal\form\JournalSiteSettingsForm.inc.php
on line 18
[19-Sep-2017 07:42:33 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\classes\controllers\grid\feature\OrderItemsFeature.inc.php
on line 145
[19-Sep-2017 07:42:33 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 76
[19-Sep-2017 07:42:37 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:37 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:38 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 63
[19-Sep-2017 07:42:38 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 72
[19-Sep-2017 07:42:38 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 83
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
PageHandler::authorize($request, &$args, $roleAssignments) should be
compatible with PKPHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\page\PageHandler.inc.php on line
19
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::getDataElementSequence($gridDataElement) should be
compatible with GridHandler::getDataElementSequence(&$gridDataElement) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::setDataElementSequence($request, $rowId, $context,
$newSequence) should be compatible with
GridHandler::setDataElementSequence($request, $rowId, &$gridDataElement,
$newSequence) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::authorize($request, &$args, $roleAssignments) should be
compatible with GridHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::initialize($request) should be compatible with
GridHandler::initialize($request, $args = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::loadData($request) should be compatible with
GridHandler::loadData($request, $filter) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextGridHandler::initFeatures($request, $args) should be compatible with
GridHandler::initFeatures($request, &$args) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ValidatorUrl::getRegexp() should be compatible with
ValidatorUri::getRegexp($allowedSchemes = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\classes\validation\ValidatorUrl.inc.php on
line 19
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
ContextSiteSettingsForm::fetch($args, $request) should be compatible with
Form::fetch($request, $template = NULL, $display = false) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\form\ContextSiteSettingsForm.inc.php
on line 19
[19-Sep-2017 07:42:39 UTC] PHP Warning: Declaration of
JournalSiteSettingsForm::execute($request) should be compatible with
Form::execute($object = NULL) in
C:\Apache24\htdocs\ojs\controllers\grid\admin\journal\form\JournalSiteSettingsForm.inc.php
on line 18
[19-Sep-2017 07:42:39 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\classes\controllers\grid\feature\OrderItemsFeature.inc.php
on line 145
[19-Sep-2017 07:42:39 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 76
[19-Sep-2017 07:42:39 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 63
[19-Sep-2017 07:42:39 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 72
[19-Sep-2017 07:42:39 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\notifications\NotificationsGridHandler.inc.php
on line 83
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::getDataElementSequence($gridDataElement) should be
compatible with GridHandler::getDataElementSequence(&$gridDataElement) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::setDataElementSequence($request, $rowId, $context,
$newSequence) should be compatible with
GridHandler::setDataElementSequence($request, $rowId, &$gridDataElement,
$newSequence) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::authorize($request, &$args, $roleAssignments) should be
compatible with GridHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::initialize($request) should be compatible with
GridHandler::initialize($request, $args = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::loadData($request) should be compatible with
GridHandler::loadData($request, $filter) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextGridHandler::initFeatures($request, $args) should be compatible with
GridHandler::initFeatures($request, &$args) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ValidatorUrl::getRegexp() should be compatible with
ValidatorUri::getRegexp($allowedSchemes = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\classes\validation\ValidatorUrl.inc.php on
line 19
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
ContextSiteSettingsForm::fetch($args, $request) should be compatible with
Form::fetch($request, $template = NULL, $display = false) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\form\ContextSiteSettingsForm.inc.php
on line 19
[19-Sep-2017 07:42:42 UTC] PHP Warning: Declaration of
JournalSiteSettingsForm::execute($request) should be compatible with
Form::execute($object = NULL) in
C:\Apache24\htdocs\ojs\controllers\grid\admin\journal\form\JournalSiteSettingsForm.inc.php
on line 18
[19-Sep-2017 07:42:42 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\classes\controllers\grid\feature\OrderItemsFeature.inc.php
on line 145
[19-Sep-2017 07:42:42 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 76
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::getDataElementSequence($gridDataElement) should be
compatible with GridHandler::getDataElementSequence(&$gridDataElement) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::setDataElementSequence($request, $rowId, $context,
$newSequence) should be compatible with
GridHandler::setDataElementSequence($request, $rowId, &$gridDataElement,
$newSequence) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::authorize($request, &$args, $roleAssignments) should be
compatible with GridHandler::authorize($request, &$args, $roleAssignments,
$enforceRestrictedSite = true) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::initialize($request) should be compatible with
GridHandler::initialize($request, $args = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::loadData($request) should be compatible with
GridHandler::loadData($request, $filter) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextGridHandler::initFeatures($request, $args) should be compatible with
GridHandler::initFeatures($request, &$args) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 200
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ValidatorUrl::getRegexp() should be compatible with
ValidatorUri::getRegexp($allowedSchemes = NULL) in
C:\Apache24\htdocs\ojs\lib\pkp\classes\validation\ValidatorUrl.inc.php on
line 19
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
ContextSiteSettingsForm::fetch($args, $request) should be compatible with
Form::fetch($request, $template = NULL, $display = false) in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\form\ContextSiteSettingsForm.inc.php
on line 19
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
JournalSiteSettingsForm::execute($request) should be compatible with
Form::execute($object = NULL) in
C:\Apache24\htdocs\ojs\controllers\grid\admin\journal\form\JournalSiteSettingsForm.inc.php
on line 18
[19-Sep-2017 07:43:15 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\classes\controllers\grid\feature\OrderItemsFeature.inc.php
on line 145
[19-Sep-2017 07:43:15 UTC] PHP Notice: Only variables should be passed by
reference in
C:\Apache24\htdocs\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.inc.php
on line 76
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
DevelopedByBlockPlugin::getSeq() should be compatible with
BlockPlugin::getSeq($contextId = NULL) in
C:\Apache24\htdocs\ojs\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php
on line 20
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
DevelopedByBlockPlugin::getBlockContext() should be compatible with
BlockPlugin::getBlockContext($contextId = NULL) in
C:\Apache24\htdocs\ojs\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php
on line 20
[19-Sep-2017 07:43:15 UTC] PHP Warning: Declaration of
DevelopedByBlockPlugin::getEnabled() should be compatible with
BlockPlugin::getEnabled($contextId = NULL) in
C:\Apache24\htdocs\ojs\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php
on line 20

Hi @ishitamehta,

Those warnings are harmless and can be ignored; they’ll be resolved in the next release of OJS.

I’m afraid there’s not much I can do from here to debug this myself – beyond suggesting that you double-check the file permissions in your cache directory (OJS will perform very slowly if it can’t create cache files) and recommending a *NIX-based server such as Linux, which has more favourable filesystem characteristics and will perform better. (There are users working with OJS on Windows in production, so that isn’t a complete explanation of slow performance.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,

I was able to fix all the issues. Thanks.

Is there a way for me to setup a test page on www and not have google index
it?

Hi @ishitamehta,

Do some reading on the robots.txt standard. It can prevent indexing.

Regards,
Alec Smecher
Public Knowledge Project Team