OJS 3.0.1 and 3.0.2 new instalation problem

Hi Alec,
I downgrade PHP version to 5.3 and lot of the problems disappeared.
Now i have not error messages, speed is considerably high, and the menus are loaded.
Now i have next 2 Error messages:

[09-Feb-2017 17:23:37 UTC] PHP Warning: include(/home/hitech/public_html/ojs/cache/fc-pluginSettings-1-webfeedblockplugin.php) [function.include]: failed to open stream: Няма такъв файл или директория in /home/hitech/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46

[09-Feb-2017 17:23:37 UTC] PHP Warning: include() [function.include]: Failed opening ‘/home/hitech/public_html/ojs/cache/fc-pluginSettings-1-webfeedblockplugin.php’ for inclusion (include_path=’.:/home/hitech/public_html/ojs/classes:/home/hitech/public_html/ojs/pages:/home/hitech/public_html/ojs/lib/pkp:/home/hitech/public_html/ojs/lib/pkp/classes:/home/hitech/public_html/ojs/lib/pkp/pages:/home/hitech/public_html/ojs/lib/pkp/lib/adodb:/home/hitech/public_html/ojs/lib/pkp/lib/phputf8:/home/hitech/public_html/ojs/lib/pkp/lib/pqp/classes:/home/hitech/public_html/ojs/lib/pkp/lib/smarty:.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php’) in /home/hitech/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46

Regards,
A.T.

Hi @HiTech,

I’m not sure where those warnings are originating but they look harmless. I’ll try to track down the source but I’d suggest ignoring them for the moment.

For what it’s worth, I use PHP5.6 on my development machine, and (once strict mode reporting is suppressed) it works fine.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,

Hi asmecher.

Now i have an new error in error log:

[09-Feb-2017 20:34:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/hitech/public_html/ojs/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 36

May be useful.

Ni Alec,

Very interesting, but …

I suppressed my putting errors in error.log, for errors of type - Notice and Strict only
and now OJS 3.0.2 is working with PHP 5.6 too.

For now :slight_smile:

I downgrade to PHP 5.3 and speed is considerably more high too here :thumbsup:

Hi Asmecher,

I got the same message like “{“status”:true,“content”:”\n\n\t\t\tHelp\n\t</a>\n\n" when I log in my account in China. But it works perfectly in US. I followed your instructions and got the following error message. But i could not figure out how to fix it as I am new to OJS programing. Please help me to identify. Thanks!

[26-Jun-2017 18:11:14 Etc/GMT] ojs2: 404 Not Found
[26-Jun-2017 18:23:06 Etc/GMT] PHP Notice: Undefined variable: elementId in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 527
[26-Jun-2017 18:23:06 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/jiogrtoss/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 143
[26-Jun-2017 18:23:06 Etc/GMT] PHP Fatal error: Call to a member function getId() on a non-object in /home/journapu/public_html/jiogrtoss/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 147
[26-Jun-2017 18:34:39 Etc/GMT] ojs2: 404 Not Found
[26-Jun-2017 18:34:44 Etc/GMT] PHP Notice: Undefined variable: elementId in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 527
[26-Jun-2017 18:34:44 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/jiogrtoss/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 143
[26-Jun-2017 18:34:44 Etc/GMT] PHP Fatal error: Call to a member function getId() on a non-object in /home/journapu/public_html/jiogrtoss/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 147
[26-Jun-2017 21:26:04 Etc/GMT] PHP Warning: array_intersect(): Argument #1 is not an array in /home/journapu/public_html/jiogrtoss/classes/security/authorization/OjsIssueRequiredPolicy.inc.php on line 59
[27-Jun-2017 01:32:46 Etc/GMT] ojs2: 404 Not Found
[01-Jul-2017 22:34:10 Etc/GMT] ojs2: 404 Not Found
[01-Jul-2017 22:34:18 Etc/GMT] PHP Warning: include(/home/journapu/public_html/jiogrtoss/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/cache/FileCache.inc.php on line 46
[01-Jul-2017 22:34:18 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/jiogrtoss/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/jiogrtoss/classes:/home/journapu/public_html/jiogrtoss/pages:/home/journapu/public_html/jiogrtoss/lib/pkp:/home/journapu/public_html/jiogrtoss/lib/pkp/classes:/home/journapu/public_html/jiogrtoss/lib/pkp/pages:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/adodb:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/phputf8:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/pqp/classes:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/cache/FileCache.inc.php on line 46
[02-Jul-2017 19:01:28 Etc/GMT] PHP Notice: Use of undefined constant STATUS_INCOMPLETE - assumed ‘STATUS_INCOMPLETE’ in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/submission/Submission.inc.php on line 845
[03-Jul-2017 15:45:51 Etc/GMT] ojs2: 404 Not Found
[03-Jul-2017 16:00:28 Etc/GMT] PHP Warning: include(/home/journapu/public_html/jiogrtoss/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/cache/FileCache.inc.php on line 46
[03-Jul-2017 16:00:28 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/jiogrtoss/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/jiogrtoss/classes:/home/journapu/public_html/jiogrtoss/pages:/home/journapu/public_html/jiogrtoss/lib/pkp:/home/journapu/public_html/jiogrtoss/lib/pkp/classes:/home/journapu/public_html/jiogrtoss/lib/pkp/pages:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/adodb:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/phputf8:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/pqp/classes:/home/journapu/public_html/jiogrtoss/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/cache/FileCache.inc.php on line 46
[07-Jul-2017 22:28:38 Etc/GMT] ojs2: 404 Not Found
/home/journapu/public_html/jiogrtoss/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
[07-Jul-2017 23:13:13 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/jiogrtoss/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
/home/journapu/public_html/jiogrtoss/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
[07-Jul-2017 23:15:30 Etc/GMT] ojs2: 404 Not Found
[11-Jul-2017 01:27:39 Etc/GMT] ojs2: 404 Not Found
[13-Jul-2017 01:08:52 Etc/GMT] PHP Warning: include(/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[13-Jul-2017 01:08:52 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/ojs/classes:/home/journapu/public_html/ojs/pages:/home/journapu/public_html/ojs/lib/pkp:/home/journapu/public_html/ojs/lib/pkp/classes:/home/journapu/public_html/ojs/lib/pkp/pages:/home/journapu/public_html/ojs/lib/pkp/lib/adodb:/home/journapu/public_html/ojs/lib/pkp/lib/phputf8:/home/journapu/public_html/ojs/lib/pkp/lib/pqp/classes:/home/journapu/public_html/ojs/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[14-Jul-2017 23:04:46 Etc/GMT] PHP Notice: Use of undefined constant STATUS_INCOMPLETE - assumed ‘STATUS_INCOMPLETE’ in /home/journapu/public_html/ojs/lib/pkp/classes/submission/Submission.inc.php on line 845
[14-Jul-2017 23:04:46 Etc/GMT] PHP Notice: Undefined offset: 8 in /home/journapu/public_html/ojs/plugins/reports/articles/ArticleReportPlugin.inc.php on line 125
[14-Jul-2017 23:17:30 Etc/GMT] PHP Warning: include(/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[14-Jul-2017 23:17:30 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/ojs/classes:/home/journapu/public_html/ojs/pages:/home/journapu/public_html/ojs/lib/pkp:/home/journapu/public_html/ojs/lib/pkp/classes:/home/journapu/public_html/ojs/lib/pkp/pages:/home/journapu/public_html/ojs/lib/pkp/lib/adodb:/home/journapu/public_html/ojs/lib/pkp/lib/phputf8:/home/journapu/public_html/ojs/lib/pkp/lib/pqp/classes:/home/journapu/public_html/ojs/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[23-Jul-2017 04:18:25 Etc/GMT] ojs2: 404 Not Found
[27-Jul-2017 15:01:36 Etc/GMT] ojs2: 404 Not Found
[06-Aug-2017 13:44:02 Etc/GMT] ojs2: 404 Not Found
[06-Aug-2017 13:44:09 Etc/GMT] PHP Warning: include(/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[06-Aug-2017 13:44:09 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/ojs/classes:/home/journapu/public_html/ojs/pages:/home/journapu/public_html/ojs/lib/pkp:/home/journapu/public_html/ojs/lib/pkp/classes:/home/journapu/public_html/ojs/lib/pkp/pages:/home/journapu/public_html/ojs/lib/pkp/lib/adodb:/home/journapu/public_html/ojs/lib/pkp/lib/phputf8:/home/journapu/public_html/ojs/lib/pkp/lib/pqp/classes:/home/journapu/public_html/ojs/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[13-Aug-2017 16:11:52 Etc/GMT] ojs2: DB Error: Lost connection to MySQL server during query
[13-Aug-2017 16:12:07 Etc/GMT] ojs2: DB Error: Lost connection to MySQL server during query
[16-Aug-2017 01:47:03 Etc/GMT] ojs2: 404 Not Found
[19-Aug-2017 10:16:24 Etc/GMT] ojs2: 404 Not Found
[22-Aug-2017 01:37:13 Etc/GMT] PHP Warning: Missing argument 1 for PKPHandler::setupTemplate(), called in /home/journapu/public_html/ojs/pages/gateway/GatewayHandler.inc.php on line 113 and defined in /home/journapu/public_html/ojs/lib/pkp/classes/handler/PKPHandler.inc.php on line 413
[22-Aug-2017 01:37:13 Etc/GMT] PHP Fatal error: Call to undefined method Journal::getUrl() in /home/journapu/public_html/ojs/cache/t_compile/fcd30604c242b73278a725a372150dcf617af706^%%61^61C^61C4DA09%%clockss.tpl.php on line 68
[22-Aug-2017 01:37:32 Etc/GMT] PHP Warning: Missing argument 1 for PKPHandler::setupTemplate(), called in /home/journapu/public_html/ojs/pages/gateway/GatewayHandler.inc.php on line 113 and defined in /home/journapu/public_html/ojs/lib/pkp/classes/handler/PKPHandler.inc.php on line 413
[22-Aug-2017 01:37:33 Etc/GMT] PHP Fatal error: Call to undefined method Journal::getUrl() in /home/journapu/public_html/ojs/cache/t_compile/fcd30604c242b73278a725a372150dcf617af706^%%61^61C^61C4DA09%%clockss.tpl.php on line 68
[23-Aug-2017 09:04:28 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/ojs/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
[23-Aug-2017 09:04:30 Etc/GMT] ojs2: 404 Not Found
[24-Aug-2017 01:25:35 Etc/GMT] ojs2: 404 Not Found
[29-Aug-2017 01:43:14 Etc/GMT] ojs2: DB Error: Lost connection to MySQL server during query
[01-Sep-2017 15:39:20 Etc/GMT] ojs2: 404 Not Found
[11-Sep-2017 17:40:38 Etc/GMT] PHP Warning: include(/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php): failed to open stream: No such file or directory in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[11-Sep-2017 17:40:38 Etc/GMT] PHP Warning: include(): Failed opening ‘/home/journapu/public_html/ojs/cache/fc-pluginSettings-1-usagestatsplugin.php’ for inclusion (include_path=’.:/home/journapu/public_html/ojs/classes:/home/journapu/public_html/ojs/pages:/home/journapu/public_html/ojs/lib/pkp:/home/journapu/public_html/ojs/lib/pkp/classes:/home/journapu/public_html/ojs/lib/pkp/pages:/home/journapu/public_html/ojs/lib/pkp/lib/adodb:/home/journapu/public_html/ojs/lib/pkp/lib/phputf8:/home/journapu/public_html/ojs/lib/pkp/lib/pqp/classes:/home/journapu/public_html/ojs/lib/pkp/lib/smarty:.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php’) in /home/journapu/public_html/ojs/lib/pkp/classes/cache/FileCache.inc.php on line 46
[12-Sep-2017 00:27:51 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/ojs/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188
[12-Sep-2017 00:27:51 Etc/GMT] PHP Warning: assert(): Assertion failed in /home/journapu/public_html/ojs/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188

Hi @Jinger,

What version of OJS are you using? Please include that in your posts.

That log is quite cluttered, but I don’t see anything relevant to what you describe. Have you checked your browser’s console on the page before the message you quoted? It’s possible that the browser encountered a Javascript error and didn’t process the next JSON server response as it ought.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi there!

I have the same problems since I did the update to 3.1.1.4 version

1.- User & Roles/Users screen displays:

{
“status”: true,
“content”: “\n<a href=”#" class=“requestHelpPanel pkp_help_link pkp_help_tab” data-topic=“users-and-roles.md#users”>\n\t<span class=“fa fa-info-circle pkpIcon–inline” aria-hidden=“true”>\n\t\t\tAyuda\n\t\n\n\n\n\n\n<div id=“userGridContainer”>\n<div class=“pkp_loading”>\n\t<span class=“pkp_spinner”>\n\t<span class=“message”>Cargando\n",
“elementId”: “0”,
“events”: null
}

2.- Plugins / Installed Plugins is loading forever

error_log

[03-Dec-2019 14:24:44 America/New_York] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/DOMAIN/DOMAIN/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386

[03-Dec-2019 14:24:44 America/New_York] PHP Strict Standards: Declaration of DRIVERDAO::setOAI() should be compatible with PKPOAIDAO::setOAI($oai) in /home/DOMAIN/DOMAIN/plugins/generic/driver/DRIVERDAO.inc.php on line 19

[03-Dec-2019 14:24:44 America/New_York] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/DOMAIN/DOMAIN/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134

[03-Dec-2019 14:24:44 America/New_York] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/DOMAIN/DOMAIN/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134

#### Server Information

Setting Name Setting Value
OS platform Linux
PHP version 5.6.40
Apache version Apache/2.4.41 (cPanel) OpenSSL/1.0.2t mod_bwlimited/1.4 mod_fcgid/2.3.9
Database driver mysql
Database server version 10.1.43-MariaDB

I’ve tried to go back to 5.3 PHP version but site crashes then

Additional, this is the URL of the User & Roles/Users error:

MYURL/$$$call$$$/tab/settings/access-settings-tab/show-tab?tab=users

Hi @Angelica_en_Colores,

Have you tried flushing your web browser’s cache and reloading the page? It’s possible that the Javascript from your old version is still loaded in the browser.

Regards,
Alec Smecher
Public Knowledge Project Team

hello!

I’m opening the site on different devices and my parners too, same problem for all.

Hi @Angelica_en_Colores,

It looks like you’re encountering a front-end problem. Can you find your browser’s debug tools and look at the error console on the page before the one that shows the JSON message ({"status": true, ...)?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi!

Ok, Console log is showing this message:

JSON Formatter: Type “json” to inspect.
content.js:200

Hi @Angelica_en_Colores,

I don’t think that’s what I’m looking for – can you include a screenshot of your dev tools? (Feel free to obscure your domain etc. if you’d rather not share it.)

Regards,
Alec Smecher
Public Knowledge Project Team

Sure!

It looks like this
image

Hi @Angelica_en_Colores,

I think the error is happening on the page before you see the JSON message in your browser. Can you check there? Alternately, there should be an option somewhere to preserve errors across requests.

Regards,
Alec Smecher
Public Knowledge Project Team

Oh you are right! there is an error before to pick some of the options, and tabs are not displaying correctly at first

ERROR: Uncaught Error: Constructor for object “$.pkp.controllers.tab.settings.managementSettings.UsersAndRolesTabHandler” not found
screenst2

how could I check where are the across request errors?

Hi @Angelica_en_Colores,

The UsersAndRolesTabHandler the error message refers to is from OJS 3.0.x and has been removed in 3.1.x and newer; see e.g. [SOLVED]OJS upgrade 3.0.2 to 3.1 error Users& Roles Pages - #7 by 1116. The most common cause of this is a browser cache, but if you’re seeing this on other browsers/systems as well, then is it possible that there is still OJS 3.0.x code on your server?

Regards,
Alec Smecher
Public Knowledge Project Team

Is very hard for me to know if there is still any code OJS 3.0. since I did the update some months ago, I just know that I’m using the same bootstrap template on both versions… could be the error being coming from this theme? in case it’s not, is there a simple way to dismiss everything and reinstall the new version without lost settings or data?

Hi @Angelica_en_Colores,

I’d suggest downloading the latest stable release and starting with that. If you follow the instructions in docs/UPGRADE.md under “1. Full Package”, and then follow the instructions under “Upgrading the OJS database”, all your content will be migrated. Please make sure you have a complete backup before starting.

Regards,
Alec Smecher
Public Knowledge Project Team