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

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???

One more thing I noticed at this moment that I am not able to change / save the theme information as well. Whenever I click on Save in Settings → websites → Theme… I get this error message
image

Please help @Vitaliy @asmecher. I need to get over with these issues. I can provide you access if you need it, just let me know…

Kind regards,
Farhan

Hi @Farhan_Abbas,

For the An unexpected error occurred. You may have been logged out. message, see other threads on this subject, e.g.: An unexpected error occurred. You may have been logged out. Please reload the page and try again

It’ll help organize the forum if you post one question per topic, rather than continuing an unrelated topic with a new question; search for the error message before you post to see if there is already a related thread, maybe with a solution. Include e.g. the URL you are going to that corresponds to the error in the log; if you don’t have it yourself, you can usually get it from the access log by correlating the timestamp. This helps to identify the cause of the problem.

Regards,
Alec Smecher
Public Knowledge Project Team

Ok. @asmecher thanks for your kind response, I will follow the link you provided related to logging out problem but please help me to resolve the error below:

Hi @Farhan_Abbas,

Could you post this as a new topic? It’s not related to the subject of this topic (“Loading… Issues after upgrading to the latest ojs 3.2.0-2”). That’ll help keep the forum organized for others who are encountering the same issue.

Regards,
Alec Smecher
Public Knowledge Project Team

Posted…@asmecher kindly help

Buenas noches, actualice a la version 3.2.0-2 y tengo el siguiente problema, no puedo actualizar la plantilla css de algunas revistas, ya que me muestra una página en blanco al ingresar a ajustes del sitio web-apariencia-avanzado. si modifico a modo debug en el archivo de configuración me muestra mensaje de error inesperado y una lista de advertencias. Adjunto imagen. Saludos.apariencia sitio web

Hi @marcemaurell,

Could you post this as a new topic? It’s not related to the rest of this thread. That’ll help keep the forum organized.

Thanks,
Alec Smecher
Public Knowledge Project Team

Bueno, gracias.
Saludos