MyBB Community Forums

Full Version: Update from 1.6.14 admin cp error in 1.8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i go to admin panel first i do login as admin, and after i see this:

Fatal error: Call to undefined method pluginSystem::run_hooks_by_ref() in /home/argavirt/public_html/foro/admin/modules/downloads/module_meta.php on line 33

module_meta.php line since 33 to 36:
$plugins->run_hooks_by_ref("admin_downloads_menu", $sub_menu);
 
 $page->add_menu_item($lang->downloads.$validate, "downloads", "index.php?module=downloads", 70, $sub_menu);
 return true;

All scripts was disable before updating.

This is the domain forum http://argavirtual.com/foro/index.php

Thanks!
You will have to either delete the file ./foro/admin/modules/downloads/module_meta.php or change the lines you posted to the following:

$plugins->run_hooks("admin_downloads_menu", $sub_menu);
 
 $page->add_menu_item($lang->downloads.$validate, "downloads", "index.php?module=downloads", 70, $sub_menu);
 return true; 

We removed the run_hooks_by_ref() method in 1.8 and it has been deprecated long before that.
Wow, that was a fast answer!
Thank you!