PDA

View Full Version : Fatal error: Call to undefined method vBulletinHook::init()


hilaryl
06-04-2014, 04:58 AM
Hi,

I recently attempted to install a new plugin and at what I believe was almost the end of the installation I got this error:

Fatal error: Call to undefined method vBulletinHook::init() in /home/username/public_html/subdirectory/forum/admincp/plugin.php on line 2482

The page stopped loading, so I clicked back to the Plugins/Products > Manage Products page. I can see the plugin, but it is not working as it should.

The plugin.php file has this:

Line 2481 - // enable any hooks -- this is mainly necessary for importing templates (template_safe_functions hook)
Line 2482 - $hookobj =& vBulletinHook::init();

I have contacted the plugin author, however they say because the error is happening in plugin.php file that they can't do anything.

Is anyone able to help me sort out what is going on, and what is causing vBulletinHook::init(); to be undefined?

I have found a lot through google to do with vBulletinHook::init();, but nothing relating specifically to the plugin.php file.

Please let me know if you require any further information.

Thanks

kh99
06-04-2014, 09:51 PM
It sounds like your plugin.php file is a vb3 version, and I assume you're running vb4? You should probably re-upload the vb files for the verison you have installed (assuming you haven't made any file edits of course).

hilaryl
06-05-2014, 01:06 AM
Fantastic! That was the issue.

Not sure how that happened. I've done a diagnostic check and no other file we have is from vB3 - must have been missed in the update.

Thanks for your quick and accurate reply!

Cheers :)