Support Forum

Subscription Plugin Line:43 Error

AR Andy Ritchings
Andy Ritchings
Member

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

7 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

AR Andy Ritchings
Andy Ritchings
Member

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!

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…

AR Andy Ritchings
Andy Ritchings
Member

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

YS Yellow Swordfish
Yellow Swordfish
Member

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.