miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

Undefined variable: fIconWidth in C:\wamp\www\forums\bb_admin.php on line 81

 
Author manas
Partaker
#1 | Posted: 3 Jun 2010 00:15 
While I added a new new forum after Admin Login. The new forum is created. When I am trying to edit this forum I am getting this error on the top of the banner as:-

Notice: Undefined variable: fIconWidth in C:\wamp\www\forums\bb_admin.php on line 81
Notice: Undefined variable: fIconHeight in C:\wamp\www\forums\bb_admin.php on line 81


The code of bb_admin.php on lien no 81 is:-

$fast.="<img src=\"{$GLOBALS['main_url']
}/img/forum_icons/{$row[4]}\" style=\"width:{$fIconWidth}px;height:{$fIconHeight}px\" alt=\"Forum icon\" /> <b><a href=\"{$GLOBALS['main_url']}/{$GLOBALS['bb_admin']}action=editforum2&amp;forumID={$row[0]}\">{$row[1]}</a></b> [ORDER: {$row[3]}] - <span class=\"txtSm\">{$row[2]} </span> <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['bb_admin']}action=move&amp;where=1&amp;forumID={$row[0]}\">&uarr;</a> <a href=\"{$GLOBALS['main_url']}/{$GLOBALS['bb_admin']}action=move&amp;where=0&amp;forumID={$row[0]}\">&darr;</a><br />";
I have checked the code. Everything fine. But I dont know how to resolve this issue.
Any helpn this? Thanks in advance.

Author Paul
Lead Developer 
#2 | Posted: 3 Jun 2010 03:16 
Hmm... appears to be a little bug, thanks for finding :-)

Just search bb_admin.php and replace $fIconWidth to $GLOBALS['fIconWidth'] and $fIconHeight to $GLOBALS['fIconHeight'] to fix this, in two places of the code above.

I have also fixed this in the recent miniBB Download, so you may just take this file from there an overwrite.

I will officially fix this in the next version. Thanks again.

P.S. Fixed in miniBB 2.5.

Author manas
Partaker
#3 | Posted: 3 Jun 2010 04:42 
I modified as you mentioned above. Its working fine now.

Bugs miniBB Support Forums / Bugs /
 Undefined variable: fIconWidth in C:\wamp\www\forums\bb_admin.php on line 81
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑