• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Notice: Trying to get property of non-object in

Status
Not open for further replies.
Joined
Jan 10, 2010
Posts
14
Reaction score
0
Hello,

I have this error now when I run my php code:


Notice: Trying to get property of non-object in C:\Program Files\EasyPHP5.3.0\www\New Folder\trial.php on line 39

Line 39 is: printf('<a href="%s" title="%s">%s (%d) %s %s</a>', $obj->imdburl, $obj->title, $obj->title, $obj->year, $obj->country, $obj->genres);

I read online that it maybe to do with the error reporting in the php.ini file and the default should be: Default Value: E_ALL & ~E_NOTICE

Mine is and it still has the error any ideas anyone?
 
It means you are trying to access something that isn't there

e.g. a field, or part of the object

$obj->imdburl, $obj->title, $obj->title, $obj->year, $obj->country, $obj->genres

one, or all of the fields (items after ->) aren't properly setup

if you do a
Code:
die(print_r($obj));

on line 38 may help you see what is contained in $obj
 
Hi,

Thanks that did show me what was is contained. It is correct so maybe it is something to do with Caching?
 
Status
Not open for further replies.
Top Bottom