View Full Version : Disable hooks not disabling?
DragonBlade
01-19-2009, 11:29 PM
Hey, I made a big oopsie when adding a plugin, and setting this in "global.php" ain't working:
define('DISABLE_HOOKS', 1);
I still get a database error?
Help, please. >_<
Is 3.8.0 different?
--------------- Added 1232414986 at 1232414986 ---------------
Edit, nevermind. >.> Sorry, please delete. XD
--------------- Added 1232415023 at 1232415023 ---------------
Edit, wait.... I still can't get into AdminCP?
glennybee
01-19-2009, 11:32 PM
I've no idea what you're trying to achieve?
Please be specific about what you're problem is.
To disable hooks, add this to the 2nd line of your config.php file.
define('DISABLE_HOOKS', true);
So that it looks like this...
<?php
define('DISABLE_HOOKS', true);
DragonBlade
01-19-2009, 11:42 PM
Yes, this is what I did.
However, I was still getting a database error when trying to log into the AdminCP. The forum itself was running (hookless), but the AdminCP (where I could turn off the troublesome hook I created) was beyond my reach until I edited that same constant into the admincp/index.php and admincp/plugins.php pages.
>_>
I wasn't aware I had to do it for those pages as well.
nexialys
01-20-2009, 12:09 AM
adding that line is not supposed to be in global.php but in includes/config.php because the first one is used only by the forum, not the admincp or the modcp...
DragonBlade
01-20-2009, 04:56 AM
Ah, sank you, I feel foolish. XD
Hopefully I'll remember that next time I mis-spell a table name on my plugins. >_<
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.