CustomLocalePlugin Problem on OJS

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, the problem persists.
When I delete the plugin, everything is normal.
Is this a situation with the plugin and how can I fix it?

PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/…/…/plugins/generic/customLocale/

Application Version - OJS
PHP version 7.4.3 (cli)

Hi @nimulola

This is the line that is causing the problem:

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.


Thanks for your response. But I can’t fix it from “Site Settings → Plugins” step, can you suggest another method to fix it?


Hi @nkisnisci

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.



Hi @jnugent,

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.


Hi @jnugent
I think it was a problem caused by the cache, clearing the cache solved the problem.
Thank you for attention.