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
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 07:04 Go to previous message
peter.kehl is currently offline  peter.kehl
Messages: 5
Registered: February 2014
Karma:
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 1306 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: Sat Dec 21 14:27:34 GMT 2024

Total time taken to generate the page: 0.04704 seconds