On new server error: "Trying to get property of non-object" |
[eluser]ortsanfang[/eluser]
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 Code: <?=($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. |
Messages In This Thread |
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 09:35 AM
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 09:52 AM
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 10:18 AM
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 12:01 PM
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 02:54 PM
On new server error: "Trying to get property of non-object" - by El Forum - 09-05-2007, 03:09 PM
On new server error: "Trying to get property of non-object" - by El Forum - 09-06-2007, 01:16 AM
|