Loading.... Issues after upgrading to latest ojs 3.2.0-2

Hi there,
I just upgraded my installation of ojs to 3.2.0-2. Upgrade was successful but after the upgrade, Some components / section of the page remain on Loading… constantly and do not go away… Further, when we Add a discussion or add a message to the discussion, the file upload section does not appear and instead, Loading… remains there forever. Any help in this regard will be highly appreciated…

PHP 7.4.1
MySql 8.0.xx
IIS
OJS 3.2.0-2

Kind Regards,
Farhan Abbas

image

image

Here is the console with 1 warning only…hope it may help

Hi @Farhan_Abbas,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher
Nothing in the logs… What else can be tried???

Hi @Farhan_Abbas,

Are you sure you’re checking the right log file? In cases like these something generally appears there. Check if you’re not sure: How do I find my PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

image
image
image

these warnings are from other websites but not from ojs …
Can I try something else?

I enable warnings and errors setting in config.inc.php and these appear.
image
@asmecher @ajnyga @Vitaliy

I changed PHP version to 7.3 and enabled error logging…found these
[22-Apr-2020 14:23:27 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:23:33 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:23:49 Asia/Karachi] PHP Warning: Declaration of ManageSubmissionFilesForm::execute($stageSubmissionFiles, $fileStage = NULL) should be compatible with Form::execute(…$functionArgs) in E:\websites\ojs\journal\lib\pkp\controllers\grid\files\form\ManageSubmissionFilesForm.inc.php on line 19
[22-Apr-2020 14:24:41 Asia/Karachi] PHP Warning: Declaration of QueryNoteFilesGridHandler::authorize($request, $args, $roleAssignments) should be compatible with SubmissionFilesGridHandler::authorize($request, &$args, $roleAssignments) in E:\websites\ojs\journal\lib\pkp\controllers\grid\files\query\QueryNoteFilesGridHandler.inc.php on line 19
@asmecher @Vitaliy @ajnyga

[22-Apr-2020 14:27:16 Asia/Karachi] PHP Fatal error: Uncaught Error: Call to a member function getPublished() on null in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php:278
Stack trace:
#0 E:\websites\ojs\journal\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)
#1 E:\websites\ojs\journal\lib\pkp\classes\plugins\HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)
#2 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)
#3 E:\websites\ojs\journal\cache\t_compile\a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#4 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_5e9a8a58b55e46_05286807(Object(Smarty_Internal_Template))
#5 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#6 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#7 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 1)
#8 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘a4fc84a2d9d2a85…’, NULL, 1)
#9 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(905): Smarty_Internal_TemplateBase->display(‘frontend/pages/…’, NULL, ‘a4fc84a2d9d2a85…’, NULL)
#10 E:\websites\ojs\journal\pages\article\ArticleHandler.inc.php(282): PKPTemplateManager->display(‘frontend/pages/…’)
#11 E:\websites\ojs\journal\lib\pkp\classes\core\PKPRouter.inc.php(391): ArticleHandler->view(Array, Object(Request))
#12 E:\websites\ojs\journal\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#13 E:\websites\ojs\journal\lib\pkp\classes\core\Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))
#14 E:\websites\ojs\journal\lib\pkp\classes\core\PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))
#15 E:\websites\ojs\journal\index.php(68): PKPApplication->execute()
#16 {main}
thrown in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php on line 278
[22-Apr-2020 14:27:43 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:27:50 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:27:52 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:28:09 Asia/Karachi] PHP Fatal error: Uncaught Error: Call to a member function getPublished() on null in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php:278
Stack trace:
#0 E:\websites\ojs\journal\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)
#1 E:\websites\ojs\journal\lib\pkp\classes\plugins\HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)
#2 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)
#3 E:\websites\ojs\journal\cache\t_compile\a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#4 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_5e9a8a58b55e46_05286807(Object(Smarty_Internal_Template))
#5 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#6 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#7 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 1)
#8 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘a4fc84a2d9d2a85…’, NULL, 1)
#9 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(905): Smarty_Internal_TemplateBase->display(‘frontend/pages/…’, NULL, ‘a4fc84a2d9d2a85…’, NULL)
#10 E:\websites\ojs\journal\pages\article\ArticleHandler.inc.php(282): PKPTemplateManager->display(‘frontend/pages/…’)
#11 E:\websites\ojs\journal\lib\pkp\classes\core\PKPRouter.inc.php(391): ArticleHandler->view(Array, Object(Request))
#12 E:\websites\ojs\journal\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#13 E:\websites\ojs\journal\lib\pkp\classes\core\Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))
#14 E:\websites\ojs\journal\lib\pkp\classes\core\PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))
#15 E:\websites\ojs\journal\index.php(68): PKPApplication->execute()
#16 {main}
thrown in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php on line 278
[22-Apr-2020 14:28:19 Asia/Karachi] ojs2: 404 Not Found
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Undefined property: stdClass::$lastModified in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Trying to get property ‘type’ of non-object in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Undefined property: stdClass::$lastModified in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Trying to get property ‘type’ of non-object in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Undefined property: stdClass::$lastModified in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235
[22-Apr-2020 14:28:31 Asia/Karachi] PHP Notice: Trying to get property ‘type’ of non-object in E:\websites\ojs\journal\lib\pkp\classes\db\SchemaDAO.inc.php on line 235

Hi @Farhan_Abbas,

It looks like the error is associated with Recommended by Author Plugin. When you performed upgrade, were plugins updated as well?

I just went through normal upgrade procedure (front end)…
I am not sure what is meant by upgrading plugins…
Can you let me know further steps in this regard as I am badly stuck and our work is being affected.

Regards,

Have a look at this error below.
@Vitaliy
Uncaught Error: Call to a member function getPublished() on null in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php:278
Stack trace:
#0 E:\websites\ojs\journal\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)
#1 E:\websites\ojs\journal\lib\pkp\classes\plugins\HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)
#2 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)
#3 E:\websites\ojs\journal\cache\t_compile\a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#4 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_5e9a8a58b55e46_05286807(Object(Smarty_Internal_Template))
#5 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#6 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#7 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 1)
#8 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘a4fc84a2d9d2a85…’, NULL, 1)
#9 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(905): Smarty_Internal_TemplateBase->display(‘frontend/pages/…’, NULL, ‘a4fc84a2d9d2a85…’, NULL)
#10 E:\websites\ojs\journal\pages\article\ArticleHandler.inc.php(282): PKPTemplateManager->display(‘frontend/pages/…’)
#11 E:\websites\ojs\journal\lib\pkp\classes\core\PKPRouter.inc.php(391): ArticleHandler->view(Array, Object(Request))
#12 E:\websites\ojs\journal\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#13 E:\websites\ojs\journal\lib\pkp\classes\core\Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))
#14 E:\websites\ojs\journal\lib\pkp\classes\core\PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))
#15 E:\websites\ojs\journal\index.php(68): PKPApplication->execute()
#16 {main}
thrown in E:\websites\ojs\journal\classes\search\ArticleSearch.inc.php on line 278

Yes, I’m talking about this error. Does this plugin come from an old version or a new one? If from a new try to delete the cache (from administration settings). The part of code to which error refers tries to get an issue by id from a cache:

if (!$issueCache[$issueId]->getPublished()) continue;

Thanks for your prompt reply @Vitaliy . I cleared the cache but issue is still there… and kindly have a look at this image
While adding a discussion, the upload file section keeps on loading forever. And this issue appears on article pages as well but they disappear on repeatedly refreshing the page…

Just a follow up! @Vitaliy I replace the current RecommendByAuthorPlugin with fresh (new) plugin from the source of OJS 3.2.0-2. Now I am getting this :

PHP Warning: file_put_contents(E:\websites\ojs\journal\cache\fc-pluginSettings-1-defaultmanuscriptchildthemeplugin.php): failed to open stream: Resource temporarily unavailable in E:\websites\ojs\journal\lib\pkp\classes\cache\FileCache.inc.php on line 90
[23-Apr-2020 14:03:41 Asia/Karachi] PHP Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in E:\websites\ojs\journal\lib\pkp\lib\vendor\slim\slim\Slim\App.php:621
Stack trace:
#0 E:\websites\ojs\journal\lib\pkp\lib\vendor\slim\slim\Slim\App.php(317): Slim\App->finalize(Object(APIResponse))
#1 E:\websites\ojs\journal\lib\pkp\classes\core\APIRouter.inc.php(115): Slim\App->run()
#2 E:\websites\ojs\journal\lib\pkp\classes\core\Dispatcher.inc.php(143): APIRouter->route(Object(Request))
#3 E:\websites\ojs\journal\lib\pkp\classes\core\PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))
#4 E:\websites\ojs\journal\index.php(68): PKPApplication->execute()
#5 {main}
thrown in E:\websites\ojs\journal\lib\pkp\lib\vendor\slim\slim\Slim\App.php on line 621
[23-Apr-2020 14:03:56 Asia/Karachi] PHP Warning: file_put_contents(E:\websites\ojs\journal\cache\fc-pluginSettings-1-defaultthemeplugin.php): failed to open stream: Resource temporarily unavailable in E:\websites\ojs\journal\lib\pkp\classes\cache\FileCache.inc.php on line 90

This error indicates that the output started before it was expected. If you are displaying errors in the browser, it’s the most probable reason. Try to display them in the log file.

For some reason, PHP cannot access the cache file. It may be because permissions don’t allow that or some restrictions in PHP configurations. The former is most likely.

Regarding permissions: How should file permissions be set? - #2 by ctgraham

Permissions are already set up and IIS has write permissions on cache folder…
Yes, display error setting was turned on by me to diagnose the errors but I have turned them off now…
Currently I am getting this :`

[23-Apr-2020 14:35:10 Asia/Karachi] PHP Fatal error: Uncaught Error: Call to a member function getPublished() on null in E:\websites\ojs\journal\cache\t_compile\ad8495e4b9ac5b46519f7e408bb2c0f8a8ac0eb3^acf1fc671fe3149386beb488bd42d95154e9d6f3_0.app.frontendpagessearchAuthor.php:48
Stack trace:
#0 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_5ea15b600f5cb5_39081421(Object(Smarty_Internal_Template))
#1 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 1)
#4 E:\websites\ojs\journal\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘ad8495e4b9ac5b4…’, NULL, 1)
#5 E:\websites\ojs\journal\lib\pkp\classes\template\PKPTemplateManager.inc.php(905): Smarty_Internal_TemplateBase->display(‘frontend/pages/…’, NULL, ‘ad8495e4b9ac5b4…’, NULL)
#6 E:\websites\ojs\journal\pages\search\SearchHandler.inc.php(274): PKPTemplateManager->display(‘frontend/pages/…’)
#7 E:\websites\ojs\journal\lib\pkp\classes\core\PKPRouter.inc.php(391): SearchHandler->authors(Array, Object(Request))
#8 E:\websites\ojs\journal\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#9 E:\websites\ojs\journal\lib\pkp\classes\core\Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))
#10 E:\websites\ojs\journal\lib\pkp\classes\core\PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))
#11 E:\websites\ojs\journal\index.php(68): PKPApplication->execute()
#12 {main}
thrown in E:\websites\ojs\journal\cache\t_compile\ad8495e4b9ac5b46519f7e408bb2c0f8a8ac0eb3^acf1fc671fe3149386beb488bd42d95154e9d6f3_0.app.frontendpagessearchAuthor.php on line 48
[23-Apr-2020 14:35:56 Asia/Karachi] ojs2: 404 Not Found

Any Ideas @Vitaliy @asmecher???