Title: Plugin breaks theme customiser
Last modified: January 23, 2025

---

# Plugin breaks theme customiser

 *  Resolved [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-breaks-theme-customiser/)
 * If you plugin is active, the theme customiser throws a fatal error (regardless
   of which theme used), php error log (php 8.3):
 *     ```wp-block-code
       Stack trace:#0 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#1 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)#2 /wp-includes/class-wp-customize-manager.php(947): do_action('customize_regis...', Object(WP_Customize_Manager))#3 /wp-includes/class-wp-hook.php(324): WP_Customize_Manager->wp_loaded('')#4 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#5 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)#6 /wp-settings.php(726): do_action('wp_loaded')#7 /wp-config.php(92): require_once('/home/htdocs/u3...')#8 /wp-load.php(50): require_once('/home/htdocs/u3...')#9 /wp-admin/admin.php(34): require_once('/home/htdocs/u3...')#10 /wp-admin/customize.php(13): require_once('/home/htdocs/u3...')#11 {main}  thrown in /wp-includes/class-wp-hook.php on line 324[23-Jan-2025 21:21:07 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "color_picker" not found or invalid function name in /wp-includes/class-wp-hook.php:324Stack trace:
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Poodle Plugins](https://wordpress.org/support/users/poodleplugins/)
 * (@poodleplugins)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-breaks-theme-customiser/#post-18262185)
 * Ouch! I’ll look at that straight away and release a fix [@harmr](https://wordpress.org/support/users/harmr/),
   thanks for mentioning it.
 *  Thread Starter [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-breaks-theme-customiser/#post-18262191)
 * Update: line 59 in class-wp-dev-flag-settings.php is causing this issue:
 *     ```wp-block-code
       add_action( 'customize_register', 'color_picker' );
       ```
   
 * Not sure how to fix this, so I disabled the line and customiser worked again.
 *  Plugin Author [Poodle Plugins](https://wordpress.org/support/users/poodleplugins/)
 * (@poodleplugins)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-breaks-theme-customiser/#post-18266887)
 * [@harmr](https://wordpress.org/support/users/harmr/) I’ve just released a fix
   for this, if you update the plugin it should resolve it. Thanks for bringing 
   it to my attention!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin breaks theme customiser’ is closed to new replies.

 * ![](https://ps.w.org/wp-dev-flag/assets/icon-256x256.png?rev=3109638)
 * [WP Dev Flag](https://wordpress.org/plugins/wp-dev-flag/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dev-flag/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dev-flag/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dev-flag/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dev-flag/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dev-flag/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Poodle Plugins](https://wordpress.org/support/users/poodleplugins/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-breaks-theme-customiser/#post-18266887)
 * Status: resolved