Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2006, 07:50 AM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [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
Reply With Quote
  #2  
Old 09-24-2006, 11:49 AM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();

Reply With Quote
  #3  
Old 09-24-2006, 12:42 PM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-24-2006, 02:09 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turn off all your plugins in yor config. You must be running some old admin mod that no longer works. My guess anyway.
Reply With Quote
  #5  
Old 09-28-2006, 09:45 AM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #6  
Old 09-29-2006, 11:38 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He's saying to go to AdminCP> vBulletinOptions> Plugin/Hook System and disable all plugins/hooks to see if that fixes it.
Reply With Quote
  #7  
Old 09-30-2006, 01:48 AM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is that I cannot get into the ACP...
Reply With Quote
  #8  
Old 09-30-2006, 06:15 AM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try to disable it through your Phpmyadmin.

vb_setting -> enablehooks -> And change "value" to 0.
Reply With Quote
  #9  
Old 09-30-2006, 09:14 AM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-30-2006, 10:37 AM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.



Thank you all for your help this far
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 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.06360 seconds
  • Memory Usage 2,266KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete