Title: Parse Syntax and Header Errors
Last modified: January 3, 2017

---

# Parse Syntax and Header Errors

 *  [zentekds](https://wordpress.org/support/users/zentekds/)
 * (@zentekds)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/)
 * 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](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8611782)
 * “widget-logic” seems to be the error.
 * Try deleting/renaming the folder of this plugin using [FTP/ SFTP ](http://codex.wordpress.org/FTP_Clients),
   or your web-host’s cPanel or whatever file management application your host provides(
   no Dashboard access required).
 *  Thread Starter [zentekds](https://wordpress.org/support/users/zentekds/)
 * (@zentekds)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8611818)
 * 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.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8611887)
 * where do you download the plugin from?
 *  [staartmees](https://wordpress.org/support/users/staartmees/)
 * (@staartmees)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8611988)
 * 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://wordpress.org/plugins/widget-options/](https://wordpress.org/plugins/widget-options/)
 *  [bourjois](https://wordpress.org/support/users/bourjois/)
 * (@bourjois)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8612506)
 * 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](https://wordpress.org/support/users/bourjois/).
    -  This reply was modified 9 years, 5 months ago by [bourjois](https://wordpress.org/support/users/bourjois/).
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8614246)
 * [@bourjois](https://wordpress.org/support/users/bourjois/),
 * If the troubleshooting already posted made no difference for you, then, as per
   the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post), 
   please [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).
   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.

## Tags

 * [plugin error](https://wordpress.org/support/topic-tag/plugin-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/parse-syntax-and-header-errors/#post-8614246)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
