Customizer shows blank page
-
I am trying to switch my site to a new theme. I could reproduce the initial issue on my live site as well but did all the following testing in my local staging environment.
Issue: As long as I stick with the current theme, the Customizer works just fine. However, as soon as I switch to another theme, the customizer stops working. It only shows a blank page in the live preview and no options in the left-side menu bar.
Here is what I have tried/found so far:
- WordPress is on version 6.1
- Issue occurs in Brave, Chrome and Firefox browsers
- Issue occurs on PHP 7.4, 8.0 and 8.1 alike
- Cleared all caches
- Deactivated all plugins
- Resaved permalink settings
- The issue also occurs with WordPress standard themes (I tried 2019 and 2021).
- The Health Check Plugin did not show any issues or errors
- Script Debug did not solve the problem
- Replaced wp-admin and wp-includes files with files from a fresh WP install without effect
- The JavaScript console does not show any errors
I get the following error in the PHP error log:
[12-Nov-2022 12:20:08 UTC] PHP Fatal error: Uncaught TypeError: parse_url(): Argument #1 ($url) must be of type string, array given in […]\wp-includes\media.php:5098 Stack trace: #0 […]\wp-includes\media.php(5098): parse_url(Array) #1 […]\wp-includes\customize\class-wp-customize-upload-control.php(59): attachment_url_to_postid(Array) #2 […]\wp-includes\customize\class-wp-customize-cropped-image-control.php(78): WP_Customize_Upload_Control->to_json() #3 […]\wp-includes\class-wp-customize-control.php(337): WP_Customize_Cropped_Image_Control->to_json() #4 […]\wp-includes\class-wp-customize-manager.php(4985): WP_Customize_Control->json() #5 […]\wp-includes\class-wp-hook.php(308): WP_Customize_Manager->customize_pane_settings('') #6 […]\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 […]\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #8 […]\wp-admin\customize.php(292): do_action('customize_contr...') #9 {main} thrown in […]\wp-includes\media.php on line 5098
Unfortunately, I cannot make sense of it myself. Hence, any support would be greatly appreciated. Thank you so much!
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Customizer shows blank page’ is closed to new replies.