Pods fetch error in PHP 5.6.25 (works fine in 5.4.16)
-
I’ve been using PHP 5.4.16 for the last couple of years, with no problems at all.
Today I changed the PHP version in Plesk on our webserver to 5.6.25, and all other sites worked fine. This particular site that uses Pods however now gives the following error:
fatal error: Call to a member function fetch() on null
When looking at the page source, it prints out the PHP code where I try to initiate the pod, and the error occurs when I try to run a fetch on it.
Here’s the code I’m using. I’ve used this format on loads of other Pods sites:
$params = array( 'post_status' => 'publish', 'orderby' => 't.ID DESC', 'where' => 'archived.meta_value = 0' ); $pod_cust = pods( 'customer', $params );
What could be causing this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Pods fetch error in PHP 5.6.25 (works fine in 5.4.16)’ is closed to new replies.