• Subject: Theme: Kyma

    Report this theme for one of these issues:

    Reasons for reporting this theme, in depth explanation.: First 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…_create (wp-color-picker-alpha.js?ver=3.0.35.3:112)
    at h…h.isFunction.a. [as _create] (widget.min.js?ver=1.11.4:11)
    at h…_createWidget (widget.min.js?ver=1.11.4:11)
    at new h.. (widget.min.js?ver=1.11.4:11)
    at HTMLInputElement. (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. [as wpColorPicker] (widget.min.js?ver=1.11.4:11)
    at i.ready (customize-controls.min.js?ver=5.5:2)
    at Object. (customize-controls.min.js?ver=5.5:2)

    change 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’ ),
    )
    );
    }
    }

    And my web worked fine, but now a few days later I got the answer on my website;

    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

    The page I need help with: [log in to see the link]

  • The topic ‘Theme Kyma amiss’ is closed to new replies.