Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: HELP, my new plugin makes the adminpages disappear :(

Found the bug.

When loading the admin it also includes the new file: menuhead.php. In that file there is a line: <?php ajax_show_javascript(); ?> and that gives this error: <b>Fatal error</b>: Call to undefined function ajax_show_javascript() in <b>bb-admin/menuhead.php</b> on line <b>6</b>

Why is that? Well the new admin page DOES use this ajax_show_javascript but all others don’t. That also explains that only the menu admin page is working and all others aint.

But how the hell can I fix this? Will an if work? If page = admin-base.php?plugin=menu_admin_page include menuhead.php or something? Any other suggestions?

At the moment, menuhead.php is called using a include or is this fixed if I use the new admin_head hook in 0.8?

Skip to toolbar