Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago VBNavbar problem after upgrade.
#1
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
The Problem: Everything was working fine untill I upgraded to MyBB 1.6.6, now, my VBNavbar does not work properly, for some reason, the navbar is ahowing two 0's and also showing the login box when a user is already logged in.

URL: http://forum.ihubhost.net

New installation or upgrade: Upgrade to 1.6.6 from 1.6.5

Test user account: User: Demo pass: Passw0rdz.12

Screenshot:
   

Here is what I have in the header for the vBnavbar:

PHP Code:
<!-- breadcrumbloginpm info -->
<
table class="tborder" cellpadding="$theme[tablespace]cellspacing="$theme[borderwidth]border="0" width="100%" align="center">
<
tr>
<
td class="trow1" width="100%">

<
table cellpadding="0" cellspacing="0" border="0">
<
tr valign="bottom">

<
td>&nbsp;</td>
<
td width="100%"><navigation></td>
</
tr>
</
table>

</
td>


<if 
condition=$mybb->user['uid']> <then>

<
td class="trow1" valign="top" nowrap="nowrap">
<
div class="smalltext">{$lang->welcome_back}<br />
<
a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />
{
$lang->welcome_current_time}
</
div>
</
td>

<else />

<
td class="trow1" nowrap="nowrap" style="padding:0px">

<!-- 
login form -->

<
form action="{$mybb->settings['bburl']}/member.php" method="post">
<
input type="hidden" name="action" value="do_login" />
<
input type="hidden" name="url" value="{$mybb->settings['bburl']}/>
<
input type="hidden" name="quick_login" value="1" />
<
table cellpadding="0" cellspacing="3" border="0" class="trow1">
<
tr>
<
td class="smalltext">{$lang->username}</td>
<
td><input type="text" name="quick_username" size="8" title="{$lang->vbnavbar_username}class="textbox" value="{$lang->vbnavbar_username}onfocus="this.value=''" tabindex="1" /></td>
<
td class="smalltext"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="quick_remember" value="yes" tabindex="3" checked="checked" />{$lang->remember_me}</label></td>
</
tr>
<
tr>
<
td class="smalltext">{$lang->password}</td>
<
td><input type="password" name="quick_password" size="8" title="{$lang->password}value="{$lang->password}class="textbox" onfocus="this.value=''" tabindex="2" /></td>
<
td><input type="submit" class="button" name="submit" style="font-weight:normal" value="{$lang->welcome_login}tabindex="4" /></td>
</
tr>
</
table>
</
form>
<!-- / 
login form -->

</
td>

</if>

</
tr>
</
table>
<!-- / 
breadcrumbloginpm info -->

<
table cellpadding="5" cellspacing="0" border="0" width="100%" class="tvbnav" align="center">
<
tr>
<
td class="tcat" align="center">{$welcomeblock}</td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_index.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/index.php"><strong>{$lang->vbnavbar_index}</strong></a></td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_search.png" alt="" title="" class="vbottom" /><a href="{$mybb->settings['bburl']}/search.php" id="search" onclick="return openMenu(this)" class="popup_button">{$lang->toplinks_search} <img src="{$theme['imgdir']}/vbnb_popdown.gif" border="0" /></a></td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/icons/game.gif" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/games.php"><strong>Games</strong></a></td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_member.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/memberlist.php"><strong>{$lang->toplinks_memberlist}</strong></a></td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_calendar.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/calendar.php"><strong>{$lang->toplinks_calendar}</strong></a></td>
<
td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_help.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><strong>{$lang->toplinks_help}</strong></a></td>
{
$admincplink}
{
$modcplink}
<if 
condition=$mybb->user['uid']> <then>
<
td class="tcat" align="center"> <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><strong>{$lang->welcome_logout}</strong></a></td><else /></if>
</
tr></table>

<
hr class="hidden" />
</
div>
<
hr class="hidden" />
<
br class="clear" />
<
div id="content">
        {
$pm_notice}
        {
$bannedwarning}
        {
$bbclosedwarning}
        {
$unreadreports}
        {
$pending_joinrequests}
<!-- 
header quick search form -->
<
div class="menupop" id="search-popup">
<
table cellpadding="4" cellspacing="1" border="0" class="tvbnavsearch">
<
tr>
<
td class="tcat">{$lang->toplinks_search}</td>
</
tr>
<
tr>
<
td class="row">

<
form method="post" action="{$mybb->settings['bburl']}/search.php">
<
input type="hidden" name="action" value="do_search" />
<
input type="hidden" name="postthread" value="1" />
<
input type="hidden" name="forums" value="all" />
<
input type="hidden" name="showresults" value="threads" />
<
input type="text" name="keywords" value="" />
{
$gobutton}
</
form>
</
td>
</
tr>
<
tr>
<
td class="menu_row"><a href="{$mybb->settings['bburl']}/search.php">{$lang->vbnavbar_advanced_search}</a></td>
</
tr>
</
table>
</
div>
</
div>

<!-- / 
header quick search form --> 

Thanks in advance for your help.
Reply
#2
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
You'll need to make the changes to core files again - http://community.mybb.com/thread-75668.html
Reply
#3
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
Thanks, that seems to have broken it even more though, I even put the original MyBB 1.6.6 files back and it still does not work.

I am now getting the following message:

Fatal error: Cannot pass parameter 2 by reference in /home/megalogs/public_html/forum/inc/functions.php on line 2944
Reply
#4
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
What is line 2944 of your ./inc/functions.php ?
Reply
#5
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
Hello i a other admin from http://forum.ihubhost.net the other admin from earlier is alittle busy and asked me to reply.

I had a looked at the functions.php and on that line it has

$plugins->run_hooks("get_ip", array("ip" => $ip));

If i am correct this is due to one of the plugins being out of date for the latest mybb as i had this problem before now and if i remember correctly it was because one of the plugins was too out of date for the upgraded mybb i upgraded too.

If i am correct removing all the plugins should sort this but depending on what plugins we have installed (On Which i am not 100% sure) just removing some plugins can cause more internal servers errors.

Thanks
klimyriad

Edit: This could be wrong now i look into more but i going to wait for your response.
Reply
#6
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
Undo the changes in the tutorial thread for now to get your forum back up and running.

Then, can you list the plugins you're running?
Reply
#7
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
I commented out the line:

$plugins->run_hooks("get_ip", array("ip" => $ip));

And these are the plugin that are activated and installed:

Quote:UserCP Ref Tools (1.1)
adf.ly links (2.0)
Admins can log into Users' accounts (1.1)
Adstats (3.0)
Advanced Quick Reply Form (1.0)
Avatars in Thread Listing (1.0)
Ajax PM Notification (1.8.1)
Akismet (1.2.2)
Avatars on Search Listings (0.5)
Ban Appeal (1.0)
Board Messages (2.0.1)
Donation Page (2.1)
Easy Refer (2.0)
Facebook Like Button (1.0)
Fit on Page (2.3)
Game Section (1.2.1)
MyBB GoMobile (1.0 Beta 4)
Google SEO (1.6.2)
Group Legends By Alsofts Forum (1.0)
Highlight Own Threads (1.0)
Infobar (1.4)
Javascript Bot Protection (1.1)
JWPlayer MyCode Embed (3.0)
ModCP Rules (1.0)
Multiple Registrations Detector (1.1)
My Achievements (1.7)
My Advertisements (2.0.3)
MyShoutbox (1.5)
MySubscriptions (0.1)
mythreadsmyposts (1.0)
Show the users that has been online today (2.0)
PM On Registration (1.2.0)
Profile Comments (0.9.2)
Profile Design (2.3.0)
Registration Security Question (1.2)
Reputation in Memberlist (0.1)
RSS Feed Icons (1.0.1)
SideMenu + User + Admin (1.0)
Skype MyBB! (1.4.1)
Stop forum spam (1.2)
Top Posters (0.1)
Username Style (1.0.4)
VBNavBar Plugin (1.0)
Reply
#8
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
^ have you tried deactivating vbnavbar plugin ? you may also use another theme as your forum's default theme until you get this resolved ...
as Alan already said, the plugin requires core files editing - if you can't modify the files then seek help from someone experienced ...

AND for core files editing, its better to try using patches plugin
Reply
#9
Solved: 2 Years, 9 Months, 4 Weeks, 1 Day, 5 Hours, 8 Minutes, 27 Seconds ago
I have tried to disable the vBnavbar plugin, but I still have that error if I uncomment
$plugins->run_hooks("get_ip", array("ip" => $ip));
Ok, it seems to be working properly now, what I have done is downloaded the full MyBB 1.6.6 package and re-uploaded all the files, with the exception of /inc/settings.php

I will now re-do the vBnavbar by using the Patches Plugin and see if that works.
Ok, I re-done the vBnavbar from the tutorial from http://community.mybb.com/thread-75668.html and it is now giving me this error:

Fatal error: Call to undefined function iif() in /home/megalogs/public_html/forum/global.php(504) : eval()'d code on line 134
Ok, after de-doing functions.php from scratch, then adding the GoogleSEO and vBnavbar edits manually, it started working properly.

Thank you everyone for your help.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)