• Hi,

    Wordpress 4.8.1
    Madrid 1.2 Theme

    one of our clients upgraded their site to the latest 4.8.1 install. After doing so the loading from https:// still works okay but loading from https// is now broken.
    A Fatal Error is being generated:
    Fatal error: Cannot use object of type WP_Error as array in /home/XXXXX/public_html/wp-content/themes/madrid/library/includes/wp-image.php on line 495

    line 495: $new_image_url = str_replace($base_url[‘basedir’],$base_url[‘baseurl’],$saved_file[‘path’] );

    Any suggestions would be appreciated.

    • This topic was modified 7 years, 3 months ago by Jan Dembowski.
    • This topic was modified 7 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress
Viewing 1 replies (of 1 total)
  • The problem exists in your theme, so you’ll probably need to take your issue to the theme’s developer. From what you’ve posted I can tell that $base_url or $saved_file has become an error instead of an array. Exactly why would depend on how they were originally set. Your theme’s developer would be the person who’ll be able to fix the issue. I’d point you in the right direction, but there’s a few themes with that name, all of them commercial.

    If you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

Viewing 1 replies (of 1 total)
  • The topic ‘Error: Cannot use object of type WP_Error as array’ is closed to new replies.