vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [v3.6.1 - ACP Navbar Issues (https://vborg.vbsupport.ru/showthread.php?t=127417)

LightScribe 09-24-2006 07:50 AM

[v3.6.1 - ACP Navbar Issues
 
I have recently upgraded a forum from 3.5.4 and I am now unable to access the ACP. I used the vBulletin tools.php to reset admin access for all of the administrators, and made sure the adminfunctions_navbar.php file was unedited. When I open the ACP, in the left pane, I get

Quote:

[vBulletin Logo]

Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/adminfunctions_navpanel.php on line 167

Warning: implode() [function.implode]: Bad arguments. in /includes/adminfunctions_navpanel.php on line 167

Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_navpanel.php on line 170

Control Panel Home
Expand All | Collapse All
Save Prefs | Revert Prefs
Every single vBulletin file has been replaced with those of a brand new installation (i.e. All files are 100% untouched / unedited).

I had to re-generate the datastore table through tools.php, could that be the problem.

Can somebody please help me, as I have a large forum down at the moment and it has been for 4 days now :(

Thank You In Advance

nico_swd 09-24-2006 11:49 AM

Try this.

Open /includes/adminfunctions_navpanel.php

And find this piece of code (approx line 161)
PHP Code:

if (VB_AREA != 'AdminCP')
{
    echo 
$controls $_NAV;
    return;



Add this under the code above and see if it works.
PHP Code:

if (!is_array($groupid))
{
    
$groupid = array();



LightScribe 09-24-2006 12:42 PM

OK. The errors are gone. However, I am now getting a blank sidebar.

Quote:

[vBulletin Icon]
Control Panel Home
Expand All | Collapse All
Save Prefs | Revert Prefs
Here is what I have in adminfunctions_navpanel.php now.
PHP Code:

function print_nav_panel()
{
    global 
$_NAV$_NAVPREFS$groupid$vbulletin$vbphrase;

    
$controls "<div align=\"center\"><a href=\"index.php?" $vbulletin->session->vars['sessionurl'] . "do=home\">$vbphrase[control_panel_home]</a></div>";

    if (
VB_AREA != 'AdminCP')
    {
        echo 
$controls $_NAV;
        return;
    }
    if (!
is_array($groupid))
    {
       
$groupid = array();
    }
    
$groups implode(','array_keys($groupid));
    
$numgroups = array();
    
$navprefs = array();
    foreach (
$groupid AS $nav_file => $ids)
    { 

(this is lines 155 --> 174

Code Monkey 09-24-2006 02:09 PM

Turn off all your plugins in yor config. You must be running some old admin mod that no longer works. My guess anyway.

LightScribe 09-28-2006 09:45 AM

I dont exactly understand what you mean. I really need to get this fixed, or else a forum with 3500 members is going to die if it is not fixed soon..

Antivirus 09-29-2006 11:38 PM

He's saying to go to AdminCP> vBulletinOptions> Plugin/Hook System and disable all plugins/hooks to see if that fixes it.

LightScribe 09-30-2006 01:48 AM

The problem is that I cannot get into the ACP...

nico_swd 09-30-2006 06:15 AM

Try to disable it through your Phpmyadmin.

vb_setting -> enablehooks -> And change "value" to 0.

hotwheels 09-30-2006 09:14 AM

also, you can go to your config.php file and right after the <?php insert this:
Quote:

define('DISABLE_HOOKS', true);
which should shut off all the hooks and allow you to login to your admincp panel.

LightScribe 09-30-2006 10:37 AM

Urgh. This still hasnt fixed it :(

Here is a screenshot of what I get. I can get into the ACP, just not get my Administrator Menu.

http://www.rpgnights.com/acperror.PNG

Thank you all for your help this far :D


All times are GMT. The time now is 05:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete