I’m having a problem with “CustomLocalePlugin”.
When I run the “php upgrade check” command while this plugin is installed and active, I get the following error and when I update 3.3.0.10, the problem persists.
When I delete the plugin, everything is normal.
Is this a situation with the plugin and how can I fix it?
Error:
PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/…/…/plugins/generic/customLocale/CustomLocalePlugin.inc.php:32
Application Version - OJS 3.3.0.8
PHP version 7.4.3 (cli)
Please note that the customLocale plugin cannot be used as “site plugin”, in the Administration → Site Settings area. If you have it enabled there, please disable it.
you can fix this directly in your database in the plugin_settings table, for that plugin where the context_id is 0. Change the setting_name = “enabled” column back to 0 for the setting_value.
thanks but there is no “context_id=0” record, there are records for two journals and these records can be changed in the “Website Settings → Plugins” tab.