Forums

[resolved] curl_exec() disabled for security reasons after install (3 posts)

  1. bxfl
    Member
    Posted 3 years ago #

    I got this error right after install when it directed me to the login screen:

    Warning: curl_exec() has been disabled for security reasons in /home/handmade/public_html/dev/wp-includes/http.php on line 1022

    Warning: curl_exec() has been disabled for security reasons in /home/handmade/public_html/dev/wp-includes/http.php on line 1027

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-login.php on line 255

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-login.php on line 267

    and then when I log in, i get this:

    Warning: curl_exec() has been disabled for security reasons in /home/handmade/public_html/dev/wp-includes/http.php on line 1022

    Warning: curl_exec() has been disabled for security reasons in /home/handmade/public_html/dev/wp-includes/http.php on line 1027

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-login.php on line 255

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-login.php on line 267

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-includes/pluggable.php on line 658

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-includes/pluggable.php on line 659

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-includes/pluggable.php on line 660

    Warning: Cannot modify header information - headers already sent by (output started at /home/handmade/public_html/dev/wp-includes/http.php:1022) in /home/handmade/public_html/dev/wp-includes/pluggable.php on line 850

    and cannot see anything else but error messages.
    Any idea what is happening, or how to fix it?

  2. bxfl
    Member
    Posted 3 years ago #

    I try to us this:

    <?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');
    ?>

    and I get this:

    Fatal error: Call to undefined function: add_filter() in /home/handmade/public_html/dev/wp-includes/functions.php on line 2906

  3. bxfl
    Member
    Posted 3 years ago #

    Something went wrong with this but my host added it so its all good.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.