Notifications
Clear all

[Solved] Notice: Undefined variable: topicURL

8 Posts
4 Users
1 Likes
3,607 Views
Posts: 7
Customer
Topic starter
(@maccast)
Member
Joined: 6 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: 5872
Admin
(@astgh)
Illustrious Member
Joined: 6 years ago

Hi maccast,

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

Reply
Posts: 60
Customer
(@studio500)
Member
Joined: 7 years ago

I have the exact same issue - just for info

Reply
1 Reply
Customer
(@studio500)
Joined: 7 years ago

Member
Posts: 60

Is there an update on this please?

Reply
Posts: 4168
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago

Yes, this is fixed.

Reply
1 Reply
Customer
(@studio500)
Joined: 7 years ago

Member
Posts: 60

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
Posts: 4168
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago

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

Reply
Page 1 / 2
Share:
Scroll to top