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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 02:04 Go to next message
peter.kehl is currently offline  peter.kehl
Messages: 5
Registered: February 2014
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 233 times)
Re: Bug & fix - undefined variable DBHOST in Undefined variable [message #185524 is a reply to message #184966] Wed, 09 April 2014 07:45 Go to previous message
naudefj is currently offline  naudefj   
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Patch applied - thanks!
http://sourceforge.net/p/fudforum/code/5773
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Sun Oct 22 17:15:02 EDT 2017

Total time taken to generate the page: 0.00764 seconds