FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Bug & fix - undefined variable DBHOST in Undefined variable (For SQLite admin page)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Bug & fix - undefined variable DBHOST in Undefined variable [message #184966] Thu, 20 February 2014 07:04 Go to next message
peter.kehl is currently offline  peter.kehl
Messages: 5
Registered: February 2014
Karma: 0
Junior Member
If you install FUDforum_3.0.6RC2 with SQLite and then you visit localhost/fudforum/adm/admsql.php?&SQ=<sessionID>, then at the bottom of the page you get (with XDebug):

Notice: Undefined variable: DBHOST in /var/www/fudforum-data/include/dbadmin.inc on line 435
Call Stack
# Time Memory Function Location
1 0.0006 348296 {main}( ) ../admsql.php:0
2 0.0309 1054688 get_sql_disk_usage( ) ../admsql.php:173

Same code exists in current Trunk, so I assume the same error.

Patch attached.
  • Attachment: DBHOST.diff
    (Size: 0.51KB, Downloaded 1302 times)
Re: Bug & fix - undefined variable DBHOST in Undefined variable [message #185524 is a reply to message #184966] Wed, 09 April 2014 11:45 Go to previous message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Patch applied - thanks!
http://sourceforge.net/p/fudforum/code/5773
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Proposed fix to ckeditor.plugin
Next Topic: Simplesamlphp plugin for fudforum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 00:32:15 GMT 2024

Total time taken to generate the page: 0.02344 seconds