I just setup a symfony app my new redundancy server but it show “PHP Fatal error: Call to a member function setData()” in my apache error log. What i did is just restore the source code from my subversion server and it shouldn’t have any problem. I suspect there must be something wrong with the app installed in the server.
Advertisements
After some research, i found out the problem is caused by Doctrine. Doctrine for Symfony 1.4 need minimum PHP 5.2.3 installed. But my server admin accidentally installed PHP 5.1.x on the redundancy server. After he upgrade the PHP to version PHP 5.2.17, everything seems fine.
To upgrade PHP version from 5.1 to 5.2, you can refer to CentOS Wiki
Related posts:
How to block all file access except one using .htaccess
Install eAccelerator to Optimize PHP performance
FCKEditor - The full feature Web based WYSIWYG HTML Editor
MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysq...
Symfony2: How to get Doctrine Entity Manager in Console command
Prestashop 1.6: "Unexpected token <" error when upload category thumbnail
Linux - How to check memory usage
How to create Table of Contents in LibreOffice
Share this with your friends:-