Some Models Not Functioning In Live Linux Server

Hello,

I have a problem when i switched to my live linux machine server the Posts model is causing a blank page when using findAll or anything related to the database . I have another model called Region that is functioning properly.

On my MAMP local server everything is working properly. Any Ideas

Found the problem.

I was using

$this->_dateModified=DateTime::createFromFormat(‘Y-m-d H:i:s’,$this->dateModified);

$this->dateModified=$this->_dateModified->format(‘Y-m-d H:i:s’);

in the afterfind() function of the model wich was causing the problem.

Can anyone comment on why these function are causing such problem.

Check PHP version on live server. DateTime::createFromFormat() was added in PHP 5.3.