Throws an error when a page is shared to Facebook
-
I have a widget on my site that is only displayed on the homepage using is_front_page(). When the page is shared to facebook, under the title of the page, an error is displayed where the description to the page should be:
: syntax error, unexpected ‘;’ in /home/thisblew/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1
Line one of the plugin:
$plugin_dir = basename(dirname(__FILE__));
Can I remove the semicolon, or will that trigger an even bigger error?It doesn’t happen on any other pages, only the 1 page where the widget is displayed.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Throws an error when a page is shared to Facebook’ is closed to new replies.