Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Trying to get property of non-object
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Dec 29, 2012 - 5:48 am

In sferrorlog in the db I am getting a lot of these 

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

file: /simple-press/forum/content/sp-topic-view-functions.php<br />line: 671<br />function: sp_PostIndexUserRank<br />Notice | Trying to get property of non-object

Any ideas what is causing this and how do I fix it?

The forum in question is http://digitalt.tv/forum/ (Version 5.2.1)

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 29, 2012 - 6:40 am

I'm looking into it. I might have goofed!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 29, 2012 - 9:19 am

looks like we might want to do a quick 5.2.2 to resolve these... discussing it now..

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 29, 2012 - 11:57 am

Update released to address this. Sorry about that and thanks for the quick find.

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Dec 29, 2012 - 12:50 pm

Thanks for the upgrade. Happy to helpsmile

Best regards
Bo

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 29, 2012 - 1:38 pm

yup. posts show up immediately.. ;)

Avatar
tyleryoungblood
Seattle, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 7:27 pm

Ok, so I'm having the same (or at least a very similar) issue. I had a 2gb error log with over 2 million entries (which I truncated) and within an hour the error log is back up to over 2k errors. All the errors have the same error message:

id error_date error_type error_text
2315 2013-01-03 17:18:21 php file: /simple-press/sp-api/sp-api-auths.php<br />line: 32<br />function: sp_get_auth<br />Notice | Trying to get property of non-object

I had the errors before updating to wp 3.5 and SP 5.2.2

I've since updated (successfully as far as I can tell) to the most current version of both WP and SP. I did get one error message while updating SP plugins, which was:

Fatal error: call to undefined function sp_tinymce_do_upgrade() in .... wp-content/sp-resoursec/forum-plugins/tinymce-richtext/sp-tinymce-plugin.php on line 88

However, when I went back to my update plugins page all of the plugins show that they've successfully been updated.

I'm mostly worried about the error log filling up as it breaks my scheduled backups (which is how I noticed it in the first place).

Any ideas?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 8:14 pm

as posted in other topics, the error log limited to 50 last errors was broken...  it was fixed in 5.2.2... so now the error log will stay at 50...  you should clear you error log on forum - toolbox - error log... and then keep an eye on it to make sure it doesnt grow past 50 entries...

dont worry about the tinymce upgrade notice... it happens sometimes in this one upgrade because we moved the location of the upgrade file...  doesnt affect anything... 

Avatar
tyleryoungblood
Seattle, WA
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 9:27 pm

I cleared my error log and it seems that my error log is indeed staying at 50 errors (well, 51 notices actually). So that's good. Thank you!

Any idea what's causing the notices? I'd like to fix it so that my error log can be used for other (potentially important) errors, like database errors and whatnot. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 11:55 pm

That same error?? line 32 of sp-api-auths.php??

Not sure I understand how that error is occurring... do you know when it is occurring? can you 'make' it happen?

also, keep in mind this error log we are talking about is our error log in one of our database tables... its not precluding anything in your normal php error log...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625