All4172 Posted January 2, 2007 Share Posted January 2, 2007 I've tried looking for this answer but can't seem to find it. Is there anything wrong with this syntax below? Any ideas why I would get the "Fatal error: Call to a member function on a non-object on line 20" error?[code]$ibforums->lang['digichat_guest'] = "You must register with our forums to use our chat feature.";[/code] Link to comment https://forums.phpfreaks.com/topic/32527-fatal-error-call-to-a-member-function-on-a-non-object/ Share on other sites More sharing options...
corbin Posted January 2, 2007 Share Posted January 2, 2007 Lots of things could be wrong...You're declaring $ibforums as $ibforums = new Class; somewhere right? Link to comment https://forums.phpfreaks.com/topic/32527-fatal-error-call-to-a-member-function-on-a-non-object/#findComment-151232 Share on other sites More sharing options...
All4172 Posted January 2, 2007 Author Share Posted January 2, 2007 Here's everything above that line thus far:[code]class module extends module_loader{var $output = "";function module(){global $ibforums,$print,$std,$DB;$ibforums->lang['digichat_guest'] = "You must register with our forums to use our chat feature.";[/code]I declared $ibforums directly above it (at least that is what I think your asking?) Link to comment https://forums.phpfreaks.com/topic/32527-fatal-error-call-to-a-member-function-on-a-non-object/#findComment-151244 Share on other sites More sharing options...
corbin Posted January 2, 2007 Share Posted January 2, 2007 Can you post the entire source? Link to comment https://forums.phpfreaks.com/topic/32527-fatal-error-call-to-a-member-function-on-a-non-object/#findComment-151296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.