Home >> Discussion Board
 

Search

Login Form



Smart Bookmarker V1.0

Welcome, Guest
Please Login or Register.    Lost Password?

"Trying to get property of non-object in" errors
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: "Trying to get property of non-object in" errors
#50
"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.
rgreca
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/19 10:43 By rgreca.Reason: Attach image
The administrator has disabled public write access.
 
#58
Re: "Trying to get property of non-object in" errors 11 Months, 1 Week ago Karma: 0
I'm having the same problem. Downloaded and installed today.
dlats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#60
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).

You need to correct the following view files:

- components/com_blog/views/addpost/tmpl/default.php
- components/com_blog/views/blogger/tmpl/default.php
- components/com_blog/views/comments/tmpl/default.php
- components/com_blog/views/myposts/tmpl/myaccount.php

- administrator/components/com_blog/views/blog.php
- administrator/components/com_blog/views/comments.php
- administrator/components/com_blog/views/myaccount.php


In all those files, replace all occurences of <?"space" by <?php"space"
"space" being the space character.


Regards
I hope Mr Aneesch will release quickly a corrected version.


Daniel
dpardons
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/22 17:47 By dpardons.
The administrator has disabled public write access.
 
#62
Re: "Trying to get property of non-object in" errors 11 Months, 1 Week ago Karma: 0
Thanks Daniel. However, these changes do not fix the problem. I still get the non-object and undefined variable messages....
dlats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#63
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.
dpardons
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/23 07:33 By dpardons.Reason: note addition
The administrator has disabled public write access.
 
#64
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.
dlats
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123