kts Posted January 21, 2009 Share Posted January 21, 2009 What exactly does this error message mean. Fatal error: Call to a member function "name" on a non-object I am calling a currency function and when even try to do it plugging in simple data without the variables I still receive this error. Is there a common reason for this? Thanks Link to comment https://forums.phpfreaks.com/topic/141841-fatal-error-call-to-a-member-function-name-on-a-non-object/ Share on other sites More sharing options...
DarkWater Posted January 21, 2009 Share Posted January 21, 2009 We'd need to see your code. Link to comment https://forums.phpfreaks.com/topic/141841-fatal-error-call-to-a-member-function-name-on-a-non-object/#findComment-742642 Share on other sites More sharing options...
kts Posted January 21, 2009 Author Share Posted January 21, 2009 Needed to have it declared in the globals, thanks! Link to comment https://forums.phpfreaks.com/topic/141841-fatal-error-call-to-a-member-function-name-on-a-non-object/#findComment-742698 Share on other sites More sharing options...
DarkWater Posted January 21, 2009 Share Posted January 21, 2009 If you're using globals, you're most likely doing it wrong. Link to comment https://forums.phpfreaks.com/topic/141841-fatal-error-call-to-a-member-function-name-on-a-non-object/#findComment-742700 Share on other sites More sharing options...
Mark Baker Posted January 21, 2009 Share Posted January 21, 2009 I assume that you are instantiating an object of your class before trying to call its methods Link to comment https://forums.phpfreaks.com/topic/141841-fatal-error-call-to-a-member-function-name-on-a-non-object/#findComment-742702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.