[Rejected] ACP - Error with php option when plugin deactivated
#1
Hello there,

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
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)