[Solved] Notice: Undefined variable: topicURL  

Page 1 / 2

maccast
Posts: 7
Customer
(@maccast)
Member
Joined: 2 years ago

I'm getting the following error in the "Blog to Forum Cross Posting" box when editing a post:

Notice: Undefined variable: topicURL in /var/www/bbm/mydomain.comhtdocs/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php on line 102 

Screen Shot 2018 04 11 at 9.19.39 PM

In reviewing the code it looks like the bug is because this post existed prior to the installation of WpForo and so when it calls `get_meta` to set `$topicID` it gets set to blank. Then the `if($topicID)` on line 101 fails and `$topicURL` never gets set.

A possible fix would be to change the `if ($topicID)` statement on line 102 to `if ( !empty($topicID) )`

7 Replies
Astghik
Posts: 3480
Admin
(@astghik)
Support Team
Joined: 2 years ago

Hi maccast,

Thank you for letting us know,  we'll check and back to you ASAP.

Reply
Marcos
Posts: 53
Customer
(@studio500)
Member
Joined: 2 years ago

I have the exact same issue - just for info

Reply
1 Reply
Marcos
Customer
(@studio500)
Joined: 2 years ago

Member
Posts: 53

Is there an update on this please?

Reply
Tom
Posts: 2966
 Tom
Admin
(@tomson)
Support Team
Joined: 5 years ago

Yes, this is fixed.

Reply
1 Reply
Marcos
Customer
(@studio500)
Joined: 2 years ago

Member
Posts: 53

Thank you,

Has the fix been rolled out yet because I'm still seeing the same error on my post and page editing pages

foro2

.

Notice: Undefined variable: topicURL in /home/xxxxxx/public_html/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php on line 102

Reply
Tom
Posts: 2966
 Tom
Admin
(@tomson)
Support Team
Joined: 5 years ago

Ok, please update to the latest 1.1.1 version and check it again.

Reply
Page 1 / 2
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: