Skip to content

Fatal error: Cannot use object of type WP_Error as array in ReduxCore/core/newsflash.php on line 63 #2351

@monnoval

Description

@monnoval

I'm working in local and I'm always having this error. I also did embed redux via embed in a wordpress plugin.

The fix that I do for now is to comment line 63 for the mean time. Then go to Wordpress Admin and uncomment it again. Similar below

62                $data = wp_remote_get($this->server_file, array('sslverify'=>false));
63                // $data = $data['body'];
64                // if some data exists
65               if ($data != '' || !empty($data)) {

After this everything is working again.

Sorry I really do not have any idea how to fully fix this part for now. I only found a workaround so that I could continue working on my stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions