Internal Server Error when launching customizer
-
I have created a child theme of Landline. When I click the
Customize
button to launch the theme customizer, I get a 500 error. The details of the error areFatal error: Cannot use object of type WP_Error as array in /mama/bosnaweb8808a/b2544475/ipw.wcaaweb/public_html/mywebsitefolder/wp-content/themes/landline/inc/google-font-dropdown-custom-control.php on line 62
This line of code is
$content = json_decode($fontContent['body']);
and appears to be assuming the result returned from a Google API is JSON.I’ve got to say, I thought I broke this feature when I deleted an image from the Media gallery that I was using as a background (in the theme customizer) before removing it as the background image. That seems to be when the error started, but that be coincidental.
Things I’ve tried:
- deactivating the theme
- deleting and reuploading the theme
- The topic ‘Internal Server Error when launching customizer’ is closed to new replies.