Today I moved my application to a new server and since hours I can’t figure out what’s wrong.
1. On the old server (Apache 2, PHP 4.3.10-22, MySQL 4.0.24) everything is fine.
2. On the new server - with the same code and database - I get many “A PHP Error was encountered: Trying to get property of non-object” errors. (Apache 2. PHP 5.2.0-8+etch7, MySQL 5.0.32). The errors occur (as I can see) whenever I use validation constructions like
<?=($this->validation->priv_phone) ? ($this->validation->priv_phone) : ($contact_data->priv_phone);?>
3. To check if there’s a problem with my new server’s configuration I installed XAMPP (http://www.apachefriends.org / Apache 2, PHP 5.2.1, MySQL 5.0.37) on my local Linux machine. Same problems.
Any hints, what can be wrong? I’m confused because in all cases it’s the same code.
