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

Home » FUDforum Development » Bug Reports » [BUG] undefined property stdClass::$twitter (BUG report/fix)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
[BUG] undefined property stdClass::$twitter [message #162333] Tue, 27 April 2010 01:20 Go to previous message
arthurthornton is currently offline  arthurthornton   United States
Messages: 1
Registered: April 2010
Location: VA
Karma:
Junior Member
There is a bug in FUD 3.0.1 with regards to twitter. The bug could apply to all of the different IM implementations, though I am not sure.

The error, as reported by an LxCenter developer to myself and the other developers/leaders was as follows:

bug in fud 3.0.1 (PHP notices)

Notice: Undefined property: stdClass::$twitter in /home/forumlxlabs/forum.lxcenter.org/theme/LxCenter/selmsg.php on line
343

Notice: Undefined property: stdClass::$twitter in /home/forumlxlabs/forum.lxcenter.org/theme/LxCenter/selmsg.php on line
343

Notice: Undefined property: stdClass::$twitter in /home/forumlxlabs/forum.lxcenter.org/theme/LxCenter/selmsg.php on line
343


So far as I know, the only modifications in the LxCenter theme would be our logo and maybe some color changes.

I, being a native PHP software developer, looked at selmsg.php on line 343 and found:

if ($obj->twitter) {


and replaced it with

if (isset($obj->twitter) && !empty($obj->twitter)) {


The same should be applied to all of the different IM object variables, but this is the only one that caused us problems at the time, so it is the only one I changed.
[Message index]
 
Read Message
Read Message
Previous Topic: Mail List Importing to Forum, All Messages in One Thread
Next Topic: FUDforum 3.0.1 upgrade problems
Goto Forum:
  

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

Current Time: Sun Dec 01 20:30:17 GMT 2024

Total time taken to generate the page: 0.04372 seconds