I'm getting the following error

A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object

Is this an installation error?? I'm using php 5.2.11 on centos 5.4.

Recommended Answers

All 3 Replies

Hey.

No, this is a problem with one of your PHP scripts. Somewhere in the code you try to use a non-object (a normal variable) as if it were an object.

I can't really tell you more unless you locate the code that is generating the message.
Was there more to the error? Perhaps a file name and line number?

Thanks for the reply. Yes there was more on the error


A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: video/middle_view.php

Line Number: 395

Although I'm no fan of oop I would suggest posting line 395 and code that relates to line 395 for us to debug.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.