Conversation
supportHello, i just wanted to log in to my site. and this error showed up. From Google Analytics MonsterSights. Parse error: syntax error, unexpected ‘)’ in /home/u231806532/domains/jiovanni.gr/public_html/wp-content/plugins/google-analytics-for-wordpress/lite/includes/admin/user-journey/providers/woocommerce.php on line 101 How i can solve this? I dont know about php or something. I am just a beginner. Thanks
The error is in wp-content/plugins/google-analytics-for-wordpress/lite/includes/admin/user-journey/providers/woocommerce.php, There’s an extra , snuck in, changing (starting on line 94): <?php echo sprintf( __( '%1$sPlus%2$s, upgrading to pro will unlock %3$sall%4$s of advanced reports, tracking, and integrations. <a target="_blank" href="%5$s" title="Upgrade">Learn more about Pro</a>', 'monsterinsights' ), '<strong>', '</strong>', '<strong>', '</strong>', esc_url( $learn_more ), ) ?> to <?php echo sprintf( __( '%1$sPlus%2$s, upgrading to pro will unlock %3$sall%4$s of advanced reports, tracking, and integrations. <a target="_blank" href="%5$s" title="Upgrade">Learn more about Pro</a>', 'monsterinsights' ), '<strong>', '</strong>', '<strong>', '</strong>', esc_url( $learn_more ) ) ?> Seems to fix things.
I am sorry but i dont know how to put this with php code.Can you tell me more about it ?
You’d have to edit the file as above. Or wait for the plugin author to fix this!
The latest version of the plugin has this fix.
The error is in wp-content/plugins/google-analytics-for-wordpress/lite/includes/admin/user-journey/providers/woocommerce.php, There’s an extra , snuck in, changing (starting on line 94): <?php echo sprintf( __( '%1$sPlus%2$s, upgrading to pro will unlock %3$sall%4$s of advanced reports, tracking, and integrations. <a target="_blank" href="%5$s" title="Upgrade">Learn more about Pro</a>', 'monsterinsights' ), '<strong>', '</strong>', '<strong>', '</strong>', esc_url( $learn_more ), ) ?> to <?php echo sprintf( __( '%1$sPlus%2$s, upgrading to pro will unlock %3$sall%4$s of advanced reports, tracking, and integrations. <a target="_blank" href="%5$s" title="Upgrade">Learn more about Pro</a>', 'monsterinsights' ), '<strong>', '</strong>', '<strong>', '</strong>', esc_url( $learn_more ) ) ?> Seems to fix things.
I am sorry but i dont know how to put this with php code.Can you tell me more about it ?
You’d have to edit the file as above. Or wait for the plugin author to fix this!
The latest version of the plugin has this fix.