Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Subscription Plugin Line:43 Error
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 2:36 pm

Hi,

 

I appear to be getting this error in my SP error log. Generally about 6(ish) times a day.

file: sfsquad/public_html/wp-content/sp-resources/forum-plugins/subscriptions/template-tags/sp-subscriptions-subscribe-button-tag.php
line: 43
function: sp_SubscriptionsSubscribeButtonTag
Notice | Trying to get property of non-object

It doesn't seem to cause any problems with the subscription plugin. I can still subscribe and view my subscribed topic list.

 

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 6:41 pm

really?  that does not make much sense...

are you on the latest subscribe plugin version?  want to make sure my line 43 is the same...

        $url = sp_build_qurl('subscribe=user&forum='.$sfvars['forumid'], 'topic='.$sfvars['topicid'], 'forumslug='.$sfvars['forumslug'], 'topicslug='.$sfvars['topicslug'], 'page='.$sfvars['page'], 'post='.$spThisTopic->last_post_id);

indicates you would be on topic view but have no topic identified...  hmmm... wonder how that is possible...

can you verify you have same line 43?

but as you note, either way, its irrelevant and not a problem...  just an annoyance, but we try to fix them when they come up...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 6:57 pm

Yeah, does seem odd to me too.

I'm on version 1.17

My line 43 is

$url = sp_build_qurl('subscribe=user&forum='.$sfvars['forumid'], 'topic='.$sfvars['topicid'], 'forumslug='.$sfvars['forumslug'], 'topicslug='.$sfvars['topicslug'], 'page='.$sfvars['page'], 'post='.$spThisTopic->last_post_id);

which seems the same as yours!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 6:59 pm

wonder if you are getting folks trying to go to a non existent topic... and if that could cause it...

will have to play around with it...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 7:24 pm

Ok thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2012 - 7:27 pm

I tried a bunch of tests on topic errors (invalid, wrong page, etc) and cannot generate that notice (its not an error)...

so will have to note it and keep trying...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 14, 2012 - 6:39 pm

Thanks,

Yesterday I had a look through Subscriptions by User and Subscriptions by Topic and did find one topic which had neither a topic name or topic ID.

I've deleted this and immediately got 2 different messages in the log

file: sfsquad/public_html/wp-content/sp-resources/forum-plugins/subscriptions/library/sp-subscriptions-components.php
line: 592
function: sp_subscriptions_render_user_subscriptions
Notice | Trying to get property of non-object

file: sfsquad/public_html/wp-content/sp-resources/forum-plugins/subscriptions/library/sp-subscriptions-components.php
line: 591
function: sp_subscriptions_render_user_subscriptions
Notice | Trying to get property of non-object

 

I've recheck the error log today and the same line:43 error is back.

 

I'll leave this be now. It isn't causing any harm as far as I can see! confused

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 15, 2012 - 4:40 am

Leaving aside the missing topic ID - these messages are not errors. they are merely Notices - as it says. They are a nuisance and harmless and we do try and get rid of them when we find them. I have noted these in our ticket for them so thanks for reporting.

andy-signature.png
YELLOW
SWORDFISH
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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625