• So I’ve moved a number of sites to different hosts with no issues. I was trying to move a site over the last week and I’m continuously getting errors. The only difference I noticed was the PHP version running, which I tried adjusting to match, but has not solved. I’ve isolated the issue to revolve around the plugin “Widget Logic.” However, the issue doesn’t happen on the old host. Once the plugin is activated, I get these errors on the site:

    Parse error: syntax error, unexpected ‘of’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Parse error: syntax error, unexpected ‘Hubspot’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Parse error: syntax error, unexpected ‘CTA’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Parse error: syntax error, unexpected ‘of’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Parse error: syntax error, unexpected ‘Hubspot’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Parse error: syntax error, unexpected ‘CTA’ (T_STRING) in /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXX/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code:1) in /home/XXXXXX/public_html/wp-includes/pluggable.php on line 1179

    Can anyone point me towards a solution besides disabling the plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    “widget-logic” seems to be the error.

    Try deleting/renaming the folder of this plugin using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required).

    Thread Starter zentekds

    (@zentekds)

    Disabling the plugin fixes the error, but it works fine on the old host and is in use in the site. I tried removing the plugin and re-installing as well as installing an older version, but not resolution.

    where do you download the plugin from?

    This plugin hasn’t been updated for over 2 years and it looks as this plugin is no longer supported. An alternative plugin is https://ww.wp.xz.cn/plugins/widget-options/

    Parse error: syntax error,
    Can someone help me please
    I was seeing if I could edit my template-tags to get rid of something and now I’ve mucked it up and can’t seem to get back to normal.
    This is the error message.
    Parse error: syntax error, unexpected ‘)’ in /home/thebi384/public_html/healthierwater.com.au/wp-content/themes/onepress/inc/template-tags.php on line 964

    Because I’ve hit the back button too many times now I cannot get back to the template-tags.php file to see if I can fix it.

    Is it possible to reload the template-tags.php file only into my hosting back end?

    Is there anyway I can fix this please without having to reinstall the whole theme again?
    Cheers and thanks

    NOT TO WORRY – I GOT CLEVER AND FIGURED IT OUT! MASSIVE LEARNING CURVE. THANKS

    • This reply was modified 9 years, 5 months ago by bourjois.
    • This reply was modified 9 years, 5 months ago by bourjois.
    Moderator t-p

    (@t-p)

    @bourjois,

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic. That way you stand a good chance of getting the assistance you want.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Parse Syntax and Header Errors’ is closed to new replies.