Saturday, November 19, 2022
HomeWordPress Developmenterrors - Wordpress Customizer not loading

errors – WordPress Customizer not loading


I’m attempting to change my WordPress web site to a brand new theme. I might reproduce the preliminary concern on my reside web site as effectively however did all the next testing in my native staging surroundings.

Problem: So long as I stick to the present theme, the Customizer works simply positive. Nevertheless, as quickly as I swap to a different theme, the customizer stops working. It solely exhibits a clean web page within the reside preview and no choices within the left-side menu bar.

Here’s what I’ve tried/discovered up to now:

  • WordPress is on model 6.1.1
  • Problem happens in Chrome, Courageous and Firefox browsers (have not tried another)
  • Problem happens on PHP 7.4, 8.0 and eight.1 alike
  • Cleared all caches
  • Deactivated all plugins
  • Resaved permalink settings
  • The problem additionally happens with WordPress normal themes (I attempted 2019 and 2021)
  • The WordPress Well being Examine Plugin didn’t present any points or errors
  • Script Debug didn’t resolve the issue
  • Changed wp-admin and wp-includes information with information from a contemporary WP set up with out impact
  • Theme assist of present theme (Newspaper by tagdiv) has confirmed that they don’t use any parts of the Customizer which might trigger this drawback

JavaScript console error

Uncaught SyntaxError: Sudden token '<' ; customise.php:6017

I get the next errors within the PHP error log:

[19-Nov-2022 14:00:13 UTC] PHP Warning:  parse_url() expects parameter 1 to be string, array given in […]wp-includesmedia.php on line 5104
[19-Nov-2022 14:00:13 UTC] PHP Stack hint:
[19-Nov-2022 14:00:13 UTC] PHP   1. {predominant}() […]wp-admincustomize.php:0
[19-Nov-2022 14:00:13 UTC] PHP   2. do_action() […]wp-admincustomize.php:292
[19-Nov-2022 14:00:13 UTC] PHP   3. WP_Hook->do_action() […]wp-includesplugin.php:517
[19-Nov-2022 14:00:13 UTC] PHP   4. WP_Hook->apply_filters() […]wp-includesclass-wp-hook.php:332
[19-Nov-2022 14:00:13 UTC] PHP   5. WP_Customize_Manager->customize_pane_settings() […]wp-includesclass-wp-hook.php:308
[19-Nov-2022 14:00:13 UTC] PHP   6. WP_Customize_Cropped_Image_Control->json() […]wp-includesclass-wp-customize-manager.php:4985
[19-Nov-2022 14:00:13 UTC] PHP   7. WP_Customize_Cropped_Image_Control->to_json() […]wp-includesclass-wp-customize-control.php:337
[19-Nov-2022 14:00:13 UTC] PHP   8. WP_Customize_Cropped_Image_Control->to_json() […]wp-includescustomizeclass-wp-customize-cropped-image-control.php:78
[19-Nov-2022 14:00:13 UTC] PHP   9. attachment_url_to_postid() […]wp-includescustomizeclass-wp-customize-upload-control.php:59
[19-Nov-2022 14:00:13 UTC] PHP  10. parse_url() […]wp-includesmedia.php:5104
[19-Nov-2022 14:00:13 UTC] PHP Warning:  strpos() expects parameter 1 to be string, array given in […]wp-includesmedia.php on line 5111
[19-Nov-2022 14:00:13 UTC] PHP Stack hint:
[19-Nov-2022 14:00:13 UTC] PHP   1. {predominant}() […]wp-admincustomize.php:0
[19-Nov-2022 14:00:13 UTC] PHP   2. do_action() […]wp-admincustomize.php:292
[19-Nov-2022 14:00:13 UTC] PHP   3. WP_Hook->do_action() […]wp-includesplugin.php:517
[19-Nov-2022 14:00:13 UTC] PHP   4. WP_Hook->apply_filters() […]wp-includesclass-wp-hook.php:332
[19-Nov-2022 14:00:13 UTC] PHP   5. WP_Customize_Manager->customize_pane_settings() […]wp-includesclass-wp-hook.php:308
[19-Nov-2022 14:00:13 UTC] PHP   6. WP_Customize_Cropped_Image_Control->json() […]wp-includesclass-wp-customize-manager.php:4985
[19-Nov-2022 14:00:13 UTC] PHP   7. WP_Customize_Cropped_Image_Control->to_json() […]wp-includesclass-wp-customize-control.php:337
[19-Nov-2022 14:00:13 UTC] PHP   8. WP_Customize_Cropped_Image_Control->to_json() […]wp-includescustomizeclass-wp-customize-cropped-image-control.php:78
[19-Nov-2022 14:00:13 UTC] PHP   9. attachment_url_to_postid() […]wp-includescustomizeclass-wp-customize-upload-control.php:59
[19-Nov-2022 14:00:13 UTC] PHP  10. strpos() […]wp-includesmedia.php:5111
[19-Nov-2022 14:00:13 UTC] PHP Discover:  Operate wpdb::put together was referred to as <robust>incorrectly</robust>. Unsupported worth sort (array). Please see <a href="https://wordpress.org/assist/article/debugging-in-wordpress/">Debugging in WordPress</a> for extra info. (This message was added in model 4.8.2.) in […]wp-includesfunctions.php on line 5835
[19-Nov-2022 14:00:13 UTC] PHP Stack hint:
[19-Nov-2022 14:00:13 UTC] PHP   1. {predominant}() […]wp-admincustomize.php:0
[19-Nov-2022 14:00:13 UTC] PHP   2. do_action() […]wp-admincustomize.php:292
[19-Nov-2022 14:00:13 UTC] PHP   3. WP_Hook->do_action() […]wp-includesplugin.php:517
[19-Nov-2022 14:00:13 UTC] PHP   4. WP_Hook->apply_filters() […]wp-includesclass-wp-hook.php:332
[19-Nov-2022 14:00:13 UTC] PHP   5. WP_Customize_Manager->customize_pane_settings() […]wp-includesclass-wp-hook.php:308
[19-Nov-2022 14:00:13 UTC] PHP   6. WP_Customize_Cropped_Image_Control->json() […]wp-includesclass-wp-customize-manager.php:4985
[19-Nov-2022 14:00:13 UTC] PHP   7. WP_Customize_Cropped_Image_Control->to_json() […]wp-includesclass-wp-customize-control.php:337
[19-Nov-2022 14:00:13 UTC] PHP   8. WP_Customize_Cropped_Image_Control->to_json() […]wp-includescustomizeclass-wp-customize-cropped-image-control.php:78
[19-Nov-2022 14:00:13 UTC] PHP   9. attachment_url_to_postid() […]wp-includescustomizeclass-wp-customize-upload-control.php:59
[19-Nov-2022 14:00:13 UTC] PHP  10. wpdb->put together() […]wp-includesmedia.php:5116
[19-Nov-2022 14:00:13 UTC] PHP  11. _doing_it_wrong() […]wp-includesclass-wpdb.php:1453
[19-Nov-2022 14:00:13 UTC] PHP  12. trigger_error() […]wp-includesfunctions.php:5835
[19-Nov-2022 14:00:13 UTC] PHP Discover:  Operate wpdb::put together was referred to as <robust>incorrectly</robust>. The question solely anticipated one placeholder, however an array of a number of placeholders was despatched. Please see <a href="https://wordpress.org/assist/article/debugging-in-wordpress/">Debugging in WordPress</a> for extra info. (This message was added in model 4.9.0.) in […]wp-includesfunctions.php on line 5835
[19-Nov-2022 14:00:13 UTC] PHP Stack hint:
[19-Nov-2022 14:00:13 UTC] PHP   1. {predominant}() […]wp-admincustomize.php:0
[19-Nov-2022 14:00:13 UTC] PHP   2. do_action() […]wp-admincustomize.php:292
[19-Nov-2022 14:00:13 UTC] PHP   3. WP_Hook->do_action() […]wp-includesplugin.php:517
[19-Nov-2022 14:00:13 UTC] PHP   4. WP_Hook->apply_filters() […]wp-includesclass-wp-hook.php:332
[19-Nov-2022 14:00:13 UTC] PHP   5. WP_Customize_Manager->customize_pane_settings() […]wp-includesclass-wp-hook.php:308
[19-Nov-2022 14:00:13 UTC] PHP   6. WP_Customize_Cropped_Image_Control->json() […]wp-includesclass-wp-customize-manager.php:4985
[19-Nov-2022 14:00:13 UTC] PHP   7. WP_Customize_Cropped_Image_Control->to_json() […]wp-includesclass-wp-customize-control.php:337
[19-Nov-2022 14:00:13 UTC] PHP   8. WP_Customize_Cropped_Image_Control->to_json() […]wp-includescustomizeclass-wp-customize-cropped-image-control.php:78
[19-Nov-2022 14:00:13 UTC] PHP   9. attachment_url_to_postid() […]wp-includescustomizeclass-wp-customize-upload-control.php:59
[19-Nov-2022 14:00:13 UTC] PHP  10. wpdb->put together() […]wp-includesmedia.php:5116
[19-Nov-2022 14:00:13 UTC] PHP  11. _doing_it_wrong() […]wp-includesclass-wpdb.php:1496
[19-Nov-2022 14:00:13 UTC] PHP  12. trigger_error() […]wp-includesfunctions.php:5835

Sadly, I can’t make sense of it myself. Therefore, any assist could be significantly appreciated. Thanks a lot!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments