• Hello, 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter giannispol75

    (@giannispol75)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected ‘)’ in’ is closed to new replies.