Support Forum
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
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...
Visit Cruise Talk Central and Mr Papa's World
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!
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...
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
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-objectfile: 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!
1 Guest(s)