"Trying to get property of non-object in" errors 11 Months, 1 Week ago
Karma: 0
On the add blog page I keep getting "Trying to get property of non-object" errors. I've attached a screenshot. I'm not able to add posts because of this.
Re: "Trying to get property of non-object in" errors 11 Months, 1 Week ago
Karma: 0
Hello
Some problems are encountered on local windows server like wamp and has been already reported on the other smartblog forum but Mr Aneesh has not provided a new version and lot of joomla users are confronted to this problem.
The problem is due to the use in some files of the short php tag notation (<?) in place of the standard notation (<?php) and some web servers does not allow the use of this notation (mainly local host wamp server).
Re: "Trying to get property of non-object in" errors 11 Months, 1 Week ago
Karma: 0
Hello
Could you precise your working environment:
* php (4.x or 5.x), mysqlx, web server (apache, IIS, ...)
* joomla 1.5.x
* server environment: unix, windows, localhost, wamp ?
Daniel
Note:
I already solved once this error on my joomla site based on the following answer message exteacted from a forum:
"Without getting too involved in the specific causes of the notice - the simple fact is that you should not see the message.
A notice is a minor warning intended for coders / developers - and/or useful during debugging.
I'm not sure whether this is in the server's php.ini file, in a local php.ini file, in your .htaccess file or in your joomla config - but it is there in one or other of those places."
For my own problem (on a local host wamp server); changing in the php.ini, error_reporting = E_ALL to & error_reporting = E_ALL & ~E_NOTICE indeed fixes the notice not showing up.
Except the notice, there was no impact on the way the component was working.
Re: "Trying to get property of non-object in" errors 11 Months, 1 Week ago
Karma: 0
Thanks for the reply.
php 5.2.6, apache 2.2, mysql 5.0.67-community-nt, joomla 1,5,14, win xp sp2
Indeed, I have error_reporting = E_ALL because I develop a lot of php apps. Getting the notices should not disrupt the program. In this case it does. By setting error_reporting = E_ALL & ~E_NOTICE not only removes the notices, but the program runs correctly.
However it should run with notices... better still change the code so there are no notices.