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 
Return to the default flat view Create a new topic Submit Reply
Bug & fix - undefined variable DBHOST in Undefined variable [message #184966] Thu, 20 February 2014 02:04 Go to previous message
peter.kehl is currently offline  peter.kehl
Messages: 5
Registered: February 2014
Karma:
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 238 times)
[Message index]
 
Read Message
Read Message
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: Wed Dec 13 00:34:59 EST 2017

Total time taken to generate the page: 0.00461 seconds