Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix class-requests.php on line 797

Discussion in 'Misc WordPress Requests' started by griotta, Dec 11, 2017.

  1. griotta


    class-requests.php on line 797, by griotta

    Hi there, my debug log is full of PHP Notice: Array to string conversion in /web/htdocs/www.*******************.com/home/wp-includes/class-requests.php on line 797. About 5 notices for minute. How I could solve it? Many thanks.

    * Convert a key => value array to a 'key: value' array for headers
    * @param array $array Dictionary of header values
    * @return array List of headers
    public static function flatten($array) {
    $return = array();
    foreach ($array as $key => $value) {
    $return[] = sprintf('%s: %s', $key, $value);
    return $return;

    Where line 797 is $return[] = sprintf('%s: %s', $key, $value);

    class-requests.php on line 797

Share This Page

Monarch Social Sharing Plugin