• Resolved gregmud

    (@gregmud)


    We’ve been getting cloudflare warnings from the plugin. You can view the entire Sentry error here:
    Sentry Error report

    But the important bits are here:

    ErrorException
    Warning: http_build_query() expects parameter 1 to be array, string given
    /wp-content/plugins/wp-optimize-premium/cache/class-wp-optimize-cloudflare-api.php in WP_Optimize_Cloudflare_API::do_request at line 184
    
    		$url = self::API_URL . $endpoint. (!empty($query_params) ? '?'.http_build_query($query_params) : '');
    		$this->debug($url);
    		$this->debug($request_params);
    		$response = wp_remote_request($url, $request_params);
    		if (is_wp_error($response)) {
    			$this->debug($response);
    			return $response;
    		}

    We run a multi-site install and have the cloudflare plugin installed as well.

    • This topic was modified 3 years, 7 months ago by gregmud.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: http_build_query() expects parameter 1 to be array, string given’ is closed to new replies.