Title: curl error and Can Not Modify Headers errors
Last modified: August 19, 2016

---

# curl error and Can Not Modify Headers errors

 *  Resolved [wwotl](https://wordpress.org/support/users/wwotl/)
 * (@wwotl)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/)
 * Hi, all.
 * I’ve attempted the fix in the previous post about the headers error, but still
   not working with my upgrade to 2.7.
 * I’ve re-downloaded and re-uploaded the offending files. I’ve also checked to 
   make sure there are no spaces at the start and end of the file. I’ve also renamed
   the plugins folder to plugins.hold in case that was causing any probs. I’m using
   Dreamweaver on a Mac to FTP the files and have not had any problems applying 
   previous upgrades to WP.
 * I’ve got a message into my provider for the curl error, but can’t resolve the
   headers error, which is also preventing me from logging into the admin side of
   things.
 * Any suggestions?
 * Thanks,
    Steve

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

 *  Thread Starter [wwotl](https://wordpress.org/support/users/wwotl/)
 * (@wwotl)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969429)
 * My provider resolved the curl error and now the other header errors have all 
   gone away…
 *  Thread Starter [wwotl](https://wordpress.org/support/users/wwotl/)
 * (@wwotl)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969507)
 * Spoke too soon… was still running into curl_exec errors so I deleted all the 
   themes except the default one. Now I can’t bring anything up. Arg!
 * I then re-uploaded the default 2.7 theme and still no luck. Get the following
   error and I can’t log in to do anything…
 * This has definitely been the most challenging and frustrating upgrade… Any help/
   ideas would be most appreciated.
 *  [Cristiano](https://wordpress.org/support/users/iclapton/)
 * (@iclapton)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969510)
 * I´ve got the same problem!!! Any help please!!!
 *  [Cristiano](https://wordpress.org/support/users/iclapton/)
 * (@iclapton)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969511)
 * Warning: curl_exec() has been disabled for security reasons in /home/restricted/
   home2/cristianoandrade/public_html/wp-includes/http.php on line 1027
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/restricted/home2/cristianoandrade/public_html/wp-includes/http.php:1027)
   in /home/restricted/home2/cristianoandrade/public_html/wp-login.php on line 255
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/restricted/home2/cristianoandrade/public_html/wp-includes/http.php:1027)
   in /home/restricted/home2/cristianoandrade/public_html/wp-login.php on line 267
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969512)
 * > Warning: curl_exec() has been disabled for security reasons inb ….
 * this is HOST ISSUE. not a wordpress problem.
 *  [Cristiano](https://wordpress.org/support/users/iclapton/)
 * (@iclapton)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969513)
 * Ok, I will try to talk to them… can you explain me what is exactly the problem?
   I need some authorization or something like that?
 * Thanks Whooami!
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969515)
 * the problem is exactly what the message says:
 * > Warning: curl_exec() has been disabled for security reasons
 * thats a shell command that wordpress is trying to use, curl_exec .. youre not
   being allowed to use it.
 *  Thread Starter [wwotl](https://wordpress.org/support/users/wwotl/)
 * (@wwotl)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969516)
 * I talked to my host, and they’ve disabled it on their shared servers. They suggested
   I add the following code to the functions.php and that seemed to do the trick.(
   Add it to the very end of the file.)
 *     ```
       <?php
       function block_transport() { return false; }
       add_filter('use_http_extension_transport', 'block_transport');
       add_filter('use_curl_transport', 'block_transport');
       add_filter('use_streams_transport', 'block_transport');
       add_filter('use_fopen_transport', 'block_transport');
       add_filter('use_fsockopen_transport', 'block_transport');
       ?>
       ```
   
 *  [bxfl](https://wordpress.org/support/users/bxfl/)
 * (@bxfl)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969522)
 * I try to use this and I get
 * > Fatal error: Call to undefined function: add_filter() in /home/handmade/public_html/
   > dev/wp-includes/functions.php on line 2906

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

The topic ‘curl error and Can Not Modify Headers errors’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 9 replies
 * 4 participants
 * Last reply from: [bxfl](https://wordpress.org/support/users/bxfl/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/curl-error-and-can-not-modify-headers-errors/#post-969522)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
