OJS Site not loading

Our ojs journal team was working on archives and when they clicked on publish archive, they got the below error:

and now when we try to access the site. it’s just showing the logo and nothing else. This issue is so far only on this site. This site is on shared instances with 4 other journals (they are working well)


Logs :

PHP Fatal error: Uncaught Error: Call to a member function getLocalizedTitle() on null in journals/ojscrae/lib/pkp/classes/services/PKPNavigationMenuService.inc.php:504\n
Stack trace:\n#0 journals/ojscrae/lib/pkp/classes/services/PKPNavigationMenuService.inc.php(142): PKP\Services
PKPNavigationMenuService->transformNavMenuItemTitle(Object(TemplateManager), NULL)\n#1 journals/ojscrae/lib/pkp/classes/services/PKPNavigationMenuService.inc.php(438): PKP\Services
PKPNavigationMenuService->getDisplayStatus(NULL, Object(NavigationMenu))\n

#2 journals/ojscrae/lib/pkp/classes/services/PKPNavigationMenuService.inc.php(425): PKP\Services\PKPNavigationMenuService->loadMenuTreeDisplayState(Object(NavigationMenu))\n#3 journals/ojscrae/lib/pkp/classes/template/PKPTemplateManager.inc.php(2055): PKP\Services\PKPNavigationMenuService->getMenuTree(Object(NavigationMenu))\n

#4journals/ojscrae/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^10ae5578a0959129b8d4ce in journals/ojscrae/lib/pkp/classes/services/PKPNavigationMenuService.inc.php on line 504

is there any command to clear the cache because I cannot even go to login in to the site. the site doesn’t show login option

Hi @deepakc,

Before cleaning the cache, don’t forget to check if you have full backups of files and database.

The command bellow must be executed within the cache folder only, it’ll cause massive destruction anywhere else:

cd cache
rm -rf *.php *.css *.gz *.js HTML/* URI/* _db/* t_cache/* t_compile/* t_config/*

Best regards,

thanks for your reply. however, I was able to enter the site admin dashboard through the shared instance admin panel and cleared the cache which solved the problem. The site is loading properly now.

Any idea why this could have happened?

this is what the journal editor told me: “I was publishing the historical archives and linking them to the historical archives tab through the navigation menu when I got the following error code”

ERROR: Failed error request or invalid JSON returned