• Here is the error code generated when I try to add my API Rest Key to the settings of WPG3 on my WordPress website backend:

    “Fatal error: Cannot use object of type WP_Error as array in /home/rodders/public_html/wp-content/plugins/wpg3/wpg3_class_WPG3_Xhttp.php on line 236”

    Looking at the file WPG3_Xhttp.php on line 236, gives the following code

    `$this_req = $this->cache[‘WP_Http’]->request( $uri, $this->get_rest_header(‘GET’, $this->wpg3_options[‘restReqestKey’]) );
    LINE 236: if ( $this_req[‘response’][‘code’] != 200 ){
    // echo “Couldn’t connect by Rest @ getObject<br /><pre>”.print_r($this_req, true).”</pre>”;
    $return = array(false, $this_req[‘response’]);
    }`

    If anyone could help I’d really appreciate it. Not sure how to fix this

The topic ‘WPG3 Fatal Error as array’ is closed to new replies.