Jump to content

Fatal error: Call to a member function GetField() on a non-object


Paper

Recommended Posts

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.