PDA

View Full Version : Is there a way to disable certain hooks via config.php?


MixMakers
01-27-2010, 07:32 PM
So, I upgraded my forums to 4.0.1 and it doesnt seem to function properly unless I disable all the hooks via congif.php (define('DISABLE_HOOKS', true); ). When that code is on, the forum runs smooth and fine. With it not on, I get errors.

I've disabled/uninstalled all my plugins, so I'm not sure why I'm still getting this error. Is there perhaps a way to only enable certain hooks via config.php or vice versa?

--------------- Added 1264628091 at 1264628091 ---------------

Or on another note, is there something else I can do to assure all plugins have been installed/deleted?

actolearn
01-17-2016, 03:35 AM
I have this same issue. disabling all the plugins and i still get errors related to a product that i already uninstalled. disable hooks, the site works -- except for the parts that need hooks. any idea how this can happen?

Dave
01-17-2016, 03:38 AM
Go to the "Plugin Manager" in the AdminCP and disable the hooks of the product you want to get rid of one by one. You'll find the culprit eventually.

actolearn
01-17-2016, 03:53 AM
i did it through phpmyadmin, writing a sql statement to disable all plugins. when i did that, i still get an error message:

Fatal error: Class 'vBAdvertise_Plugins' not found in /home/informed/public_html/global.php(355) : eval()'d code on line 1

when i disable hooks through config.php, i get the site working -- but none of the mods work, of course.

i have deleted all the plugins related to vbadvertise, but i'm still getting that error. that's the part that really mystifies me.

Dragonsys
01-17-2016, 04:45 AM
make sure you delete all the files from the plugins as well, or they can continue to cause issues.

squidsk
01-17-2016, 12:18 PM
i did it through phpmyadmin, writing a sql statement to disable all plugins. when i did that, i still get an error message:

Fatal error: Class 'vBAdvertise_Plugins' not found in /home/informed/public_html/global.php(355) : eval()'d code on line 1

when i disable hooks through config.php, i get the site working -- but none of the mods work, of course.

i have deleted all the plugins related to vbadvertise, but i'm still getting that error. that's the part that really mystifies me.
Don't do it through phpmyadmin do it through admincp. That's what it's there for.