Forums

[resolved] curl error and Can Not Modify Headers errors (10 posts)

  1. wwotl
    Member
    Posted 3 years ago #

    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

  2. wwotl
    Member
    Posted 3 years ago #

    My provider resolved the curl error and now the other header errors have all gone away...

  3. wwotl
    Member
    Posted 3 years ago #

    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.

  4. Cristiano
    Member
    Posted 3 years ago #

    I´ve got the same problem!!! Any help please!!!

  5. Cristiano
    Member
    Posted 3 years ago #

    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

  6. whooami
    Member
    Posted 3 years ago #

    Warning: curl_exec() has been disabled for security reasons inb ....

    this is HOST ISSUE. not a wordpress problem.

  7. Cristiano
    Member
    Posted 3 years ago #

    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!

  8. whooami
    Member
    Posted 3 years ago #

    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.

  9. wwotl
    Member
    Posted 3 years ago #

    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');
    ?>
  10. bxfl
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic