Accidentally deselect theme in ojs plugin gallery, now journal administration is not accible

Hi…!!! its Hashim

I accidentally deselect theme in ojs plugin gallery. now main site of the journal are not loading, just showing error 500 and also i can’t access “Administration”, here is my error log from php.

journals.pagepal.org [Sat May 18 04:12:01 2024] [error] [client 2001:16a2:c0dd:727a:6d21:1052:5b8b:6587:0] AH01276: Cannot serve directory /home/sites/17a/d/d3331aa040/journals/public/journals/1/: No matching DirectoryIndex (index.php,index.html,index.htm,index.cgi,index.rb,index.py) found, and server-generated directory index forbidden by Options directive
journals.pagepal.org [Sat May 18 04:12:03 2024] [error] [client 2001:16a2:c0dd:727a:6d21:1052:5b8b:6587:0] AH01071: Got error 'PHP message: Exception: Plugin material expected to inherit from MaterialThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘material’, ‘MaterialThemePl…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /home/sites/17a/d/d3331aa040/journals…; PHP message: Exception: Plugin healthSciences expected to inherit from HealthSciencesThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘healthSciences’, ‘HealthSciencesT…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /home/sites/17a/d/d…; PHP message: Exception: Plugin pragma expected to inherit from PragmaThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘pragma’, ‘PragmaThemePlug…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /home/sites/17a/d/d3331aa040/journals/lib/p…; PHP message: Exception: Plugin immersion expected to inherit from ImmersionThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘immersion’, ‘ImmersionThemeP…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /home/sites/17a/d/d3331aa040/journ…; PHP message: Exception: Plugin defaultManuscript expected to inherit from DefaultManuscriptChildThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘defaultManuscri…’, ‘DefaultManuscri…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /hom…; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/sites/17a/d/d3331aa040/journals/plugins/themes/default/DefaultThemePlugin.php on line 188; PHP message: Exception: The ORCID plugin is enabled, but its settings are invalid. In order to fix, access the plugin settings and try to save the form in /home/sites/17a/d/d3331aa040/journals/plugins/generic/orcidProfile/OrcidProfilePlugin.php:107\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\orcidProfile\OrcidProfilePlugin->register(‘generic’, ‘plugins/generic…’, NULL)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register(‘generic’, Object(APP\plugins\generic\orcidProfile\OrcidProfilePlugin), ‘plugins/generic…’, NULL)\n#2 [internal function]:

what shout i do now, how can i change the theme in cpanel to fix this error or how to access “administration” in dashboard

Hi @Hashim_Ali,

Can you also indicate which version of OJS you’re using (please include this in your posts as it is relevant for troubleshooting)?

-Roger
PKP team

The version of the software is 3.4.0.4.

Is there any suggestions to fix the issue?

Hi @Hashim_Ali,

Sorry - I’m not sure how to address this issue. I’ll see if someone from our team can have a look when they are available.

-Roger
PKP Team

If you have access to the database, you could enable first the default theme with an SQL command like this:

update plugin_settings set setting_value=1 where setting_name like "enabled" and plugin_name like "defaultthemeplugin" and context_id={the id of your journal};

Later, in the backend, you should be able to switch to the Materials Theme Plugin.

1 Like

hi thanks for reply
I enabled default theme in SQL

but unfortunatly, still i could not access “administration” and site access.

all journals dash boards and sites are working, only main site and “administration” not working

journals.pagepal.org [Wed May 22 03:43:36 2024] [error] [client 2001:16a2:c0f0:7b4a:1981:e285:d270:99a2:0] AH01071: Got error 'PHP message: Exception: Plugin material expected to inherit from MaterialThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘material’, ‘MaterialThemePl…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112): PKP\plugins\PluginRegistry::_loadFromDatabase(‘themes’, NULL)\n#2 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/template/PKPTemplateManager.php(1392): PKP\plugins\PluginRegistry::loadCategory(‘themes’, true)\n#3 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#4 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#5 /home/sites/17a/d/d3331aa040/journals…; PHP message: Exception: Plugin healthSciences expected to inherit from HealthSciencesThemePlugin, actual type NULL in /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php:203\nStack trace:\n#0 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(219): PKP\plugins\PluginRegistry::_instantiatePlugin(‘themes’, ‘healthSciences’, ‘HealthSciencesT…’)\n#1 /home/sites/17a/d/d3331aa040/journals/lib/pkp/classes/plugins/PluginRegistry.php(112):

It still tries to load the Material theme. Now that you have access in the backend, you may disable it using Website > Plugins or even install it again from the Plugin Gallery.

Thank you for your support. Unfortunately i can’t access backend. The “Administration” button is not active any more.

You don’t need “Administration” currently - you can install the plugin via the journal website settings. Use menu item “Dashboard” to access it.

I have 3 journals and want to create more. All journals working properly but problem with main site. The site is not accessible and I already Apply for ISSN.

I can’t access “administration” either from dashboard nor from menu Item list.

I assumed that when you have installed the Material theme again you will also be able to access administration. So, please try out my suggestion above. You can install it via a journal in the backend.
Also, there is an error message about the ORCID plugin - you may either disable it or fill out its settings correctly.

thaks for your reply
I followed you, enabled MaterialThemePlugin in all my journals and disable ORCID plugin.

but same resut. nothing changed

hi…
good evening
sir any suggestion?