• Hello, I’ve just upgrade to WP 5.5: front office works well, but when I open the backoffice customizer theme page it display only widget section. I get this error on console:

    wp-color-picker-alpha.js?ver=3.0.35.3:112 Uncaught ReferenceError: wpColorPickerL10n is not defined
    at h.<computed>.<computed>._create (wp-color-picker-alpha.js?ver=3.0.35.3:112)
    at h.<computed>.<computed>.h.isFunction.a.<computed> [as _create] (widget.min.js?ver=1.11.4:11)
    at h.<computed>.<computed>._createWidget (widget.min.js?ver=1.11.4:11)
    at new h.<computed>.<computed> (widget.min.js?ver=1.11.4:11)
    at HTMLInputElement.<anonymous> (widget.min.js?ver=1.11.4:11)
    at Function.each (load-scripts.php?c=1&load[chunk_0]=jquery&ver=5.5:2)
    at n.fn.init.each (load-scripts.php?c=1&load[chunk_0]=jquery&ver=5.5:2)
    at n.fn.init.h.fn.<computed> [as wpColorPicker] (widget.min.js?ver=1.11.4:11)
    at i.ready (customize-controls.min.js?ver=5.5:2)
    at Object.<anonymous> (customize-controls.min.js?ver=5.5:2)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    I had the same issue with frontech child theme.
    Copy following code and paste into kyma theme function file :

    if( is_admin() ){
    	add_action( 'wp_default_scripts', 'wp_default_custom_scripts' );
    	function wp_default_custom_scripts( $scripts ){
    		$scripts->add( 'wp-color-picker', "/wp-admin/js/color-picker.js", array( 'iris' ), false, 1 );
    		did_action( 'init' ) && $scripts->localize(
    			'wp-color-picker',
    			'wpColorPickerL10n',
    			array(
    				'clear'            => __( 'Clear' ),
    				'clearAriaLabel'   => __( 'Clear color' ),
    				'defaultString'    => __( 'Default' ),
    				'defaultAriaLabel' => __( 'Select default color' ),
    				'pick'             => __( 'Select Color' ),
    				'defaultLabel'     => __( 'Color value' ),
    			)
    		);
    	}
    }

    I had the same error and put your code in functions, but now ite even works this, get the error message;
    Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /web/u/lorema/wp-includes/functions.php:5 Stack trace: #0 /web/u/lorema/wp-settings.php(111): require() #1 /web/u/lorema/wp-config.php(90): require_once(‘/web/u/lorema/w…’) #2 /web/u/lorema/wp-load.php(37): require_once(‘/web/u/lorema/w…’) #3 /web/u/lorema/wp-blog-header.php(13): require_once(‘/web/u/lorema/w…’) #4 /web/u/lorema/index.php(17): require(‘/web/u/lorema/w…’) #5 {main} thrown in /web/u/lorema/wp-includes/functions.php on line 5 Fatal error: Uncaught Error: Call to undefined function wp_die() in /web/u/lorema/wp-includes/class-wp-fatal-error-handler.php:233 Stack trace: #0 /web/u/lorema/wp-includes/class-wp-fatal-error-handler.php(152): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #1 /web/u/lorema/wp-includes/class-wp-fatal-error-handler.php(57): WP_Fatal_Error_Handler->display_error_template(Array, false) #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /web/u/lorema/wp-includes/class-wp-fatal-error-handler.php on line 233

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to load customizer page in 5.5’ is closed to new replies.