Title: Syntax Error: Cannot modify header information
Last modified: October 30, 2021

---

# Syntax Error: Cannot modify header information

 *  Resolved [myatibbs23](https://wordpress.org/support/users/myatibbs23/)
 * (@myatibbs23)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-information/)
 * Hi All,
 * Looking for some urgent help!
 * I work on our company website for my boss, I was trying to create a custom order
   for the posts in the post widget and entered some WP coding. It did not agree
   with the previous coding in Functions.php and so I removed it. I believe there
   were 2 lines left blank, which I didn’t realise at the time.
 * When I next tried to log into the wp-admin page through wordpress this error 
   code came up:
    Warning: Cannot modify header information – headers already sent
   by (output started at /home/customer/www/curzongreen.co.uk/public_html/wp-content/
   themes/blocksy/functions.php:17) in /home/customer/www/curzongreen.co.uk/public_html/
   wp-includes/pluggable.php on line 1340
 * So I logged into the Cpannel (siteground) and tried to edit the code in the file
   manager, I amended it successfully and saved it. However the error code still
   persisted.
 * I then thought I would restore a previous backup before it had happened which
   I did via siteground however once again the error still showed. I cleared my 
   cache as well but this did not help.
 * Obviously this is for my employer and I feel terrible that the website has now
   crashed. I have also discovered that when you click the links on the home page
   a different error code comes up :
 * Warning: require(/home/customer/www/curzongreen.co.uk/public_html/wp-includes/
   pluggable.php): failed to open stream: No such file or directory in /home/customer/
   www/curzongreen.co.uk/public_html/wp-settings.php on line 423
 * Fatal error: require(): Failed opening required ‘/home/customer/www/curzongreen.
   co.uk/public_html/wp-includes/pluggable.php’ (include_path=’.:/usr/local/php74/
   pear’) in /home/customer/www/curzongreen.co.uk/public_html/wp-settings.php on
   line 423
 * I am really stuck here and am unsure what to do. I am completely locked out of
   the admin on WordPress.
 * I tried FileZilla as well again despite my amendments nothing corrected the errors
   on the website.
    -  This topic was modified 4 years, 7 months ago by [myatibbs23](https://wordpress.org/support/users/myatibbs23/).
    -  This topic was modified 4 years, 7 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntax-error-cannot-modify-header-information%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Eduard](https://wordpress.org/support/users/cteduard/)
 * (@cteduard)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-information/#post-15024154)
 * Hello [@myatibbs23](https://wordpress.org/support/users/myatibbs23/)
 * Have you tried reinstalling WordPress via cPanel? Simply download the WordPress
   package from WP.org and replace the files on your FTP (do not replace wp-config.
   php and do not delete anything else).
 * This should recover your WordPress dashboard.
 * Also, regarding the “headers already sent” warning, there’s not much we can do
   from our end for this one. Our developers have analysed this and it doesn’t come
   from our end. Here’s some more information on this error — [https://make.wordpress.org/support/handbook/appendix/breakfix-lessons/php-whitespace-headers-already-sent/](https://make.wordpress.org/support/handbook/appendix/breakfix-lessons/php-whitespace-headers-already-sent/)
 * Let me know if this works.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Syntax Error: Cannot modify header information’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/blocksy/2.1.44/screenshot.jpg)
 * Blocksy
 * [Support Threads](https://wordpress.org/support/theme/blocksy/)
 * [Active Topics](https://wordpress.org/support/theme/blocksy/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/blocksy/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/blocksy/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eduard](https://wordpress.org/support/users/cteduard/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-information/#post-15024154)
 * Status: resolved