Support Forum

SP 5.0.1 Notices in Error log sp_SectionStart/Trying to get property of non-object

SP sptab
sptab
Member

Since latest update (SP 5.0.1, build 8048) I am getting a few lines of those notices every minute.

 

2012/03/05
12:16
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 70
function: sp_SectionStart
Notice | Trying to get property of non-object

Any idea on how to fix it ?

Also, with latest update, I have lost access to the Forum toolset, the icon appears but I does not display the moderation links (Edit title, Pin topics…). I need to check that with Firebug to give you more details on this other issue.

12 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Actually I don’t see how that notice can be remotely possible!
Can you tell me (a) what sp theme you are using and (b) clear the SP error log and tell me exactly which view produces the notice? And I guess a (c) would be – is there anything odd or different about the point at which the notice is generated?

SP sptab
sptab
Member

Hello Andy,

 

Sorry for reporting these weird notices. In some ways confused I hope I am not the only one to get those errors, as I am running a rather standard setup (Debian, PHP, latest versions, dedicated host).

 

a/ I am running a modified version of the default theme, I have currently made all my changes on the latest default. The problem also happen when running the original default theme.

b/ It’s hard to see which page triggers the problem as there is some trafic on my forum. I get from 5 to 20 hits on this notice every minute, but I currently unable to see where it comes from. Maybe a stack trace of some sort in the error log could help.

 

c/ The notice started to show with latest SP upgrade. I don’t think I have done any changes on SP setup when upgrading.

 

Thanks for your help.

Cheers.

SP SPQC
SPQC
Member

sptab said

Sorry for reporting these weird notices. In some ways confused I hope I am not the only one to get those errors

You’re not alone!

YS Yellow Swordfish
Yellow Swordfish
Member

Don’t worry – I will try and track it down. They are of nuisance value mainly.

TN Tr0n
Tr0n
Member

I have the same error, but at different lines.

It happens, when I select a forum, but not on the first page.

Started happening after the 5.0.1 update. I have 3 plugins (Editor (TinyMCE – Rich Text), Private Message System and Template Tags and Widgets. Default theme (shades of gray overlay), all updated.

Date Type Description
5.3.2012
18:02
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 51
function: sp_SectionStart
Notice | Trying to get property of non-object
5.3.2012
18:02
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 65
function: sp_SectionStart
Notice | Trying to get property of non-object
5.3.2012
18:02
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 63
function: sp_SectionStart
Notice | Trying to get property of non-object
5.3.2012
18:02
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 62
function: sp_SectionStart
Notice | Trying to get property of non-object
UN
Unknown
Member

Hi

 

I’ve been having trouble with receiving a “500 Internal Server Error” when trying to load certain topics. This was happening before upgrading to the new version as well as after upgrading to the newest version. The forum error log contains several of  the following entries:

 

file: /simple-press/forum/content/sp-common-view-functions.php
line: 70
function: sp_SectionStart
Notice | Trying to get property of non-object

YS Yellow Swordfish
Yellow Swordfish
Member

Yes we know. These are notices and non-fatal. Mainly a nuisance in this case.

UN
Unknown
Member

So are the 500 Internal Server Error’s I’m receiving not related to this then?

YS Yellow Swordfish
Yellow Swordfish
Member

No – there would be no connection.
Your site php error log might give more details on that. If they are rare and random then it could just be something simple at your hosting. If they are regular then you need to have a chat with your hosting support.

MP Mr Papa
Mr Papa
Member

the notices ended up being exposed when we corrected another problem…  this code wasnt getting run before the correction which is why our notice sweep of 5.0 didnt reveal them…

SP sptab
sptab
Member

I have been running version 5.0.2 (build 8166) for few hours and do not get notices anymore.

Thanks for the fix wink

MP Mr Papa
Mr Papa
Member

good to hear! thanks for the update! dont like to push out too many releases, but that harmless notice was making for large error logs… and, well, that wp updater thingy makes it easy to do releases… wink