Deactivating the theme breaks the WordPress Customizer

Posted in: Newspaper
Post count: 14

While using the Newspaper theme the WordPress Customizer works just fine. However, as soon as I deactivate Newspaper and use any other theme (I tried various WordPress standard themes and a few others as well) the Customizer stops working and only brings up a blank live preview. After lots of trial end error I first thought this was a WordPress issue and posted it (including all steps already performed) in the official WordPress support channel (see thread here: https://wordpress.org/support/topic/customizer-shows-blank-page/#post-16191840).

However, the reply I got there assumed that this could be a theme issue as Newspaper “might be storing an invalid value in a common configuration field that the customizer uses. This prevents other themes from loading the Customizer settings.” Thus, they recommended to check back with you if this could be the case.

I get the following PHP error in the logs:

[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

Would you be aware of any settings in Newspaper which could cause this bug?

The site affected is https://www.reiseblitz.com/

Thank you for your support!

Post count: 21065

Hello @Wolfgang !

For me, the WordPress Customizer works as expected with our theme and no errors are encountered.
As we have our builder, we recommend using cloud/PRO templates in order to have the possibility to edit them with the TagDiv Composer, which contains a lot of functions and features, please check our tutorial here: https://forum.tagdiv.com/tagdiv-composer-tutorial/
More documentation about the cloud templates is here:
https://forum.tagdiv.com/homepage-how-to-build-and-set-it/
https://forum.tagdiv.com/cloud-library-templates/
https://forum.tagdiv.com/design-post-pages-using-cloud-library-templates/
https://forum.tagdiv.com/cloud-library-category-templates/

Thank you!

Post count: 14

Hi Bettina,

this was not the question. As I wrote in my post, the Customizer breaks once I deactivate the theme. Hence, I am trying to find out if your theme stores any values somewhere that could cause this behaviour.

Thank you.

Post count: 21065

Hello @wolfgang !

Our theme does not use any features from the WordPress Customizer. Try to update the WordPress version, it may help.

Thank you!

Post count: 14

Hello Bettina,

Thank you for the quick follow up! I am on the most current WP version 6.1. Hence, that should not be an issue. I’ll try and see what else could be the cause then.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.