geggiot
Member
Posted 11 months ago #
I have updated robots meta plugin to version to 3.0.9 but when it try to reactivate i get this error Parse error: syntax error, unexpected '{' in mysitewp-content/plugins/robots-meta/robots-meta.php on line 539
at this line there's this code
function yahoo_verify() {
if (is_home() || (function_exists('is_frontpage') && is_frontpage()) || (function_exists('is_front_page') && is_front_page()) {
$options = get_option('RobotsMeta');
echo '<meta name="y_key" content="'.$options['yahooverify'].'" />'."\n";
}
}
How can i fix it?
http://wordpress.org/extend/plugins/robots-meta/
Brad-Jedi
Member
Posted 11 months ago #
Make the chnages on Lines 540 and 547
Incorrect
if (is_home() || (function_exists('is_frontpage') && is_frontpage()) || (function_exists('is_front_page') && is_front_page()) {
Correct
if (is_home() || (function_exists('is_frontpage') && is_frontpage()) || (function_exists('is_front_page') && is_front_page()) ) {
I had the same issue on my Blog Jedi-star.com
VizionQuest
Member
Posted 11 months ago #
I received the same error and failed at reactivation of the plugin after attempting to auto update to the new version.
Parse error: syntax error, unexpected '{' in /wp-content/plugins/robots-meta/robots-meta.php on line 539
geggiot
Member
Posted 11 months ago #
Sorry guys (and girls!) fixed it in 3.0.10!
VizionQuest
Member
Posted 11 months ago #