• Resolved Corey Salzano

    (@salzano)


    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 are Fatal 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
Viewing 1 replies (of 1 total)
  • Thread Starter Corey Salzano

    (@salzano)

    This problem did not persist on the production server. I believe it was an issue related to using the site’s host address being “localhost” via MAMP.

Viewing 1 replies (of 1 total)
  • The topic ‘Internal Server Error when launching customizer’ is closed to new replies.