Title: Plugin deactivation and parse error
Last modified: August 20, 2016

---

# Plugin deactivation and parse error

 *  Resolved [lee.stanley3](https://wordpress.org/support/users/leestanley3/)
 * (@leestanley3)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-deactivation-and-parse-error/)
 * I have just highlighted and deactivated all plugins to check an error on my site.
   This has now cause the following error message
 * Parse error: syntax error, unexpected T_STRING in /home/hadfield/public_html/
   wp-config.php on line 2
 * I have removed the code on line 2 and then the error becomes this
 * Parse error: syntax error, unexpected T_STRING in /home/hadfield/public_html/
   wp-config.php on line 19
 * ?????
 * Not sure what steps to take next
 * I do use a child theme could this be causing conflicts???
 * Any suggestions what I should do more than welcome.
 * I have backed up the site, would it be easier to just reinstall rather than try
   to find the error??
 * Lee
 * Twenty ten child theme
    [http://www.hadfieldeducation.com](http://www.hadfieldeducation.com)

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

 *  Thread Starter [lee.stanley3](https://wordpress.org/support/users/leestanley3/)
 * (@leestanley3)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-deactivation-and-parse-error/#post-3041263)
 * Update 1
 * I have found a really good article on one cause here… [parse error after deactivating w3cache](http://www.mkwebdesign.ca/tutorials/parse-error-deactivating-w3-total-cache.html)
 * I have changed this code and now my site is back up and visible, however the 
   plugins dont work and I can not access any of the plugins on the dashboard. When
   I click on the plugins link icon brings up the original error???
 * Confused and in need of help… any suggestions??
 * Lee.
 *  Thread Starter [lee.stanley3](https://wordpress.org/support/users/leestanley3/)
 * (@leestanley3)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-deactivation-and-parse-error/#post-3041265)
 * Solved it!!!!
 * The code on line 2 was correct also so when I changed my code to reflect the 
   above post it has worked fully and completely…
 * YES!!!
 * Happy days…

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

The topic ‘Plugin deactivation and parse error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [lee.stanley3](https://wordpress.org/support/users/leestanley3/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-deactivation-and-parse-error/#post-3041265)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
