Hello there,
I'd created a plugin (ABP Solve It !) which use a php setting:
When I deactivate the plugin, I can alway go in its settings, I got:
I guess the plugin file is not loaded but the settings from the databases are loaded, so the plugin function can't be found.
Is there a way to bypass this in the plugin(*) or any php setting will make an error when plugin is just deactivated ?
(*) Another way than replace the function by all its content
I'd created a plugin (ABP Solve It !) which use a php setting:
array(
'name' => CN_ABPSOLVEIT . '_prefix', // Added in 0.2
'title' => $lang->abp_sis5_tit,
'description' => $lang->abp_sis5_desc,
'optionscode' => 'php
".abp_solveit_listprefixes()."',
'value' => '-1',
'disporder' => 5
);
When I deactivate the plugin, I can alway go in its settings, I got:
Fatal error: Uncaught Error: Call to undefined function abp_solveit_listprefixes() in C:\wamp64\www\mybb\admin\modules\config\settings.php(1354) : eval()'d code on line 2
Error: Call to undefined function abp_solveit_listprefixes() in C:\wamp64\www\mybb\admin\modules\config\settings.php(1354) : eval()'d code on line 2
I guess the plugin file is not loaded but the settings from the databases are loaded, so the plugin function can't be found.
Is there a way to bypass this in the plugin(*) or any php setting will make an error when plugin is just deactivated ?
(*) Another way than replace the function by all its content
Do not ask me help through PM or Discord