Only the plugins tab and inside both tabs aren’t loading. Everything else on the website is working. Please guide.
I upgraded properly two years ago by creating a new folder and all other things (I didn’t overwrite) according to the instructions. Please help.
Thank you
[28-Nov-2024 08:14:31 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/journal/public_html/plugins/blocks/keywordCloud/KeywordCloudBlockPlugin.inc.php:1) in /home/hamdardis/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1180
[28-Nov-2024 08:14:31 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/journal/public_html/plugins/blocks/keywordCloud/KeywordCloudBlockPlugin.inc.php:1) in /home/hamdardis/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1181
[28-Nov-2024 08:14:33 UTC] PHP Fatal error: Uncaught Error: Class ‘PKP\plugins\ThemePlugin’ not found in /home/journal/public_html/plugins/themes/pragma1/PragmaThemePlugin.inc.php:20
Stack trace: #0 /home/journal/public_html/plugins/themes/pragma1/index.php(15): require_once() #1 /home/hamdardis/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php(241): include(‘/home/hamdardis…’) #2 /home/journal/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php(126): PluginRegistry::_instantiatePlugin(‘themes’, ‘plugins/themes’, ‘pragma1’) #3 /home/journal/public_html/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php(155): PluginRegistry::loadCategory(‘themes’) #4 /home/journal/public_html/controllers/grid/settings/plugins/SettingsPluginGridHandler.inc.php(36): PluginGridHandler->loadCategoryData(Object(Request), ‘themes’, Array) #5 /home/journal/public_html/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php(124): SettingsPluginGridHandler->loadCategoryData(Object(Request), ‘themes’, Array) #6 /home/journal/pu in /home/hamdardis/public_html/plugins/themes/pragma1/PragmaThemePlugin.inc.php on line 20
Do you actively use the plugins that are mentioned in the error log message (pragma theme and keyword cloud)? If not, I might suggest trying to disable those plugins and see what happens, as they are referenced in the error log message.
I don’t use both theme and plugin at all.
I disabled the theme by renaming the folder in cpanel. When I rename the pragma folder this error shows up. It’s the same.
You can see I have renamed the pragma folder to pragma1. When I rename it back to pragma the website gives 500 error.
Everything is working fine. Just the plugin tab is loading continuously.
[28-Nov-2024 13:41:52 UTC] PHP Fatal error: Uncaught Error: Class ‘PKP\plugins\ThemePlugin’ not found in /home/hamdardis/public_html/plugins/themes/pragma/PragmaThemePlugin.inc.php:20
Stack trace: #0 /home/hamdardis/public_html/plugins/themes/pragma/index.php(15): require_once() #1 /home/hamdardis/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php(241): include(‘/home/hamdardis…’) #2 /home/hamdardis/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php(114): PluginRegistry::_instantiatePlugin(‘themes’, ‘plugins/themes’, ‘pragma’, ‘PragmaThemePlug…’) #3 /home/hamdardis/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1245): PluginRegistry::loadCategory(‘themes’, true) #4 /home/hamdardis/public_html/lib/pkp/classes/plugins/Plugin.inc.php(359): PKPTemplateManager::getManager() #5 /home/hamdardis/public_html/lib/pkp/classes/plugins/Plugin.inc.php(115): Plugin->_registerTemplateResource() #6 /home/hamdardis/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(28): Plugin->register(‘generic’, ‘plugins/generic…’, NULL)
in /home/hamdardis/public_html/plugins/themes/pragma/PragmaThemePlugin.inc.php on line 20
How did you install the Pragma theme plugin? I think you’ve probably tried to install a version of the plugin intended for OJS 3.4.0 into your OJS 3.3.0 installation.
Regards,
Alec Smecher
Public Knowledge Project Team
Not at all I never installed it. I just enabled it in early days of installation. Nor I tried to install a version for 3.4
This happened all of a sudden. Last degradation was in 2022 and it was working fine till now. Since we deal in articles mainly so we don’t work on plugins side much.
OJS 3.4.0 code uses namespaces like PKP\plugins\ThemePlugin; OJS 3.3.0 code doesn’t support it. As you can see, there’s a namespace in the error message. So at some point somebody installed a version of the Pragma plugin intended for OJS 3.4.0 into your OJS 3.3.0 installation, which caused the problem. The code is still present in a place that OJS looks for it, even though you’ve renamed the directory; if you’re not using the plugin at all, I’d suggest moving it somewhere outside the OJS codebase.
Regards,
Alec Smecher
Public Knowledge Project Team
Thank you for the help. I deleted the plugins and it worked but now the plugin gallery shows empty. There are no plugin. Nor is there any error log generated.
Your codebase appears to be OJS 3.3.0-8, but you database reports 3.3.0-11. At some point, someone must’ve reinstalled older code after a successful upgrade to 3.3.0-11. I would suggest updating your code to the latest OJS 3.3.0-x release (but at least 3.3.0-11); this should get the plugin gallery working again.
Regards,
Alec Smecher
Public Knowledge Project Team