Paper Posted July 3, 2008 Share Posted July 3, 2008 Hi there, We have a site that works fine on WAMP server on Windows but not on Apache / Linux. The error is: Fatal error: Call to a member function GetField() on a non-object The line of code where its failing is: $this->myclass[$i]->GetField('myfield') Myclass is defined in a php include: require("common/myclass.php"); Its not an error in the code as it works on Windows so it mush be a php thing. The only difference in the phpinfo is that on Windows, Virtual directory support is enabled and on Linux its disabled. I have done some research and it looks like I have to recompile PHP to enable this but I don’t want to go down this road unless I’m sure this is the problem. If anyone can help that would be fantastic. Link to comment https://forums.phpfreaks.com/topic/113060-fatal-error-call-to-a-member-function-getfield-on-a-non-object/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.