• Resolved Will Stocks

    (@willstockstech)


    I’m no longer able to use the Customiser due to the following error being thrown:

    Fatal error: Uncaught Error: Call to undefined function llorix_one_companion_sevices_get_default_content() in /wp-content/plugins/llorix-one-companion/inc/settings.php:55 Stack trace: #0 /wp-includes/class-wp-hook.php(298): llorix_one_companion_customize_register(Object(WP_Customize_Manager)) #1 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /wp-includes/class-wp-customize-manager.php(734): do_action(‘customize_regis…’, Object(WP_Customize_Manager)) #4 /wp-includes/class-wp-hook.php(298): WP_Customize_Manager->wp_loaded(”) #5 /wp-includes/cl in /wp-content/plugins/llorix-one-companion/inc/settings.php on line 55

Viewing 9 replies - 16 through 24 (of 24 total)
  • And I didn’t find the file “settings.php” from ” ‘llorix-one-companion/inc/settings.php’” to try the @acris solution.

    My site is working, but I just can’t personalize my site.

    Hi @rodicaelena

    I don’t know (yet) how can I see what version of Clarina I’m using. But bellow there is the code in my file functions.php:

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘child_enqueue_styles’, 99 );
    function child_enqueue_styles() {
    $parent_style = ‘parent-style’;
    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ) );
    wp_enqueue_style( ‘clarina-fonts’, clarina_fonts_url(), array(), null );
    wp_enqueue_script( ‘clarina-custom-script’, get_stylesheet_directory_uri() . ‘/js/custom.js’, array(‘jquery’), ‘2.0.2’, true );
    }

    if ( get_stylesheet() !== get_template() ) {
    add_filter( ‘pre_update_option_theme_mods_’ . get_stylesheet(), function ( $value, $old_value ) {
    update_option( ‘theme_mods_’ . get_template(), $value );
    return $old_value; // prevent update to child theme mods
    }, 10, 2 );
    add_filter( ‘pre_option_theme_mods_’ . get_stylesheet(), function ( $default ) {
    return get_option( ‘theme_mods_’ . get_template(), $default );
    } );
    }

    function clarina_fonts_url() {
    $fonts_url = ”;

    /* Translators: If there are characters in your language that are not
    * supported by Lora, translate this to ‘off’. Do not translate
    * into your own language.
    */
    $titillium_web = _x( ‘on’, ‘Titillium Web font: on or off’, ‘clarina’ );

    /* Translators: If there are characters in your language that are not
    * supported by Open Sans, translate this to ‘off’. Do not translate
    * into your own language.
    */
    $assistant = _x( ‘on’, ‘Assistant font: on or off’, ‘clarina’ );

    if ( ‘off’ !== $titillium_web || ‘off’ !== $assistant ) {
    $font_families = array();

    if ( ‘off’ !== $titillium_web ) {
    $font_families[] = ‘Titillium Web:400,400i,600,700’;
    }
    if ( ‘off’ !== $assistant ) {
    $font_families[] = ‘Assistant:700,400,800’;
    }
    $query_args = array(
    ‘family’ => urlencode( implode( ‘|’, $font_families ) ),
    ‘subset’ => urlencode( ‘latin,latin-ext’ ),
    );
    $fonts_url = add_query_arg( $query_args, ‘https://fonts.googleapis.com/css&#8217; );
    }
    return esc_url_raw( $fonts_url );
    }

    add_action(‘customize_register’,’my_customize_register’);
    function my_customize_register( $wp_customize ) {

    /* Ribbon subtitle */
    $wp_customize->add_setting( ‘clarina_ribbon_subtitle’, array(
    ‘default’ => esc_html__(‘Lorem ipsum dolor sit amet, consectetur adipiscing elit.’,’clarina’),
    ‘sanitize_callback’ => ‘llorix_one_lite_sanitize_text’,
    ‘transport’ => ‘postMessage’
    ));
    $wp_customize->add_control( ‘clarina_ribbon_subtitle’, array(
    ‘label’ => esc_html__( ‘Main subtitle’, ‘clarina’ ),
    ‘section’ => ‘llorix_one_lite_ribbon_section’,
    ‘priority’ => 25
    ));

    /* Ribbon image */
    $wp_customize->add_setting( ‘clarina_ribbon_image’, array(
    ‘sanitize_callback’ => ‘esc_url’,
    ‘transport’ => ‘postMessage’
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ‘clarina_ribbon_image’, array(
    ‘label’ => esc_html__( ‘Image’, ‘clarina’ ),
    ‘section’ => ‘llorix_one_lite_ribbon_section’,
    ‘priority’ => 50,
    )));

    /* latest posts submenu */
    $wp_customize->add_setting( ‘clarina_news_subtitle’, array(
    ‘default’ => esc_html__(‘Lorem ipsum dolor sit amet, consectetur adipisicing elit’,’clarina’),
    ‘sanitize_callback’ => ‘llorix_one_lite_sanitize_text’,
    ‘transport’ => ‘postMessage’
    ));
    $wp_customize->add_control( ‘clarina_news_subtitle’, array(
    ‘label’ => esc_html__( ‘Main subtitle’, ‘clarina’ ),
    ‘section’ => ‘llorix_one_lite_latest_news_section’,
    ‘priority’ => 15
    ));

    /* Featured ribbon Title */
    $wp_customize->add_setting( ‘clarina_featured_ribbon_title’, array(
    ‘default’ => esc_html__(‘Lorem ipsum dolor’,’clarina’),
    ‘sanitize_callback’ => ‘llorix_one_lite_sanitize_text’,
    ‘transport’ => ‘postMessage’
    ));
    $wp_customize->add_control( ‘clarina_featured_ribbon_title’, array(
    ‘label’ => esc_html__( ‘Main title’, ‘clarina’ ),
    ‘section’ => ‘llorix_one_lite_features_ribbon_section’,
    ‘priority’ => 15
    ));

    }

    /* Customizer js file */
    function childtheme_customizer_live_preview() {
    wp_enqueue_script( ‘clarina_customizer_script’, llorix_one_lite_get_file(‘/js/clarina_customizer.js’), array( ‘jquery’,’customize-preview’ ), ‘1.0’, true
    );
    }
    add_action( ‘customize_preview_init’, ‘childtheme_customizer_live_preview’ );

    @rodicaelena I just realized that my version of Clarina wasn’t the last one. I just fix it about this and now I will try to fix this error issue. I’ll tell you if it works or not.

    Sorry for any trouble…

    @rodicaelena, didn’t works. Nothing.

    Well… after to install the new Version, I just lost my homepage! I’ll have to use the backup again!
    And that issue still annoying me!!!!

    Fatal error: Uncaught Error: Call to undefined function llorix_one_companion_sevices_get_default_content() in /home/contabilazul1/home/pjfacil/wp-content/plugins/llorix-one-companion/inc/settings.php:55 Stack trace: #0 /home/contabilazul1/home/pjfacil/wp-includes/class-wp-hook.php(298): llorix_one_companion_customize_register(Object(WP_Customize_Manager)) #1 /home/contabilazul1/home/pjfacil/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/contabilazul1/home/pjfacil/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/contabilazul1/home/pjfacil/wp-includes/class-wp-customize-manager.php(752): do_action(‘customize_regis…’, Object(WP_Customize_Manager)) #4 /home/contabilazul1/home/pjfacil/wp-includes/class-wp-hook.php(298): WP_Customize_Manager->wp_loaded(”) #5 /home/contabilazul1/home/pjfacil/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /home/contabilazul1/home/pjfacil/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /home/contabilazul1/hom in /home/contabilazul1/home/pjfacil/wp-content/plugins/llorix-one-companion/inc/settings.php on line 55″

    Hi @fabitami,

    Are you using the latest version of the parent theme Llorix One Lite and the plugin Llorix One Companion?
    Please let me know.

    Regards,
    Rodica

    Hi @rodicaelena

    I’ve tried to install the latest version of Clarina, but this version cracked my homepage (I’ve lost it all), then I had to return to the previews version (from a backup). Even with the latest version, the error with the plugin Llorix One Companion still happening. The same issue. So, I upload the backup website (cause I can’t let it offline to my client).
    The issue with the plugin Llorix One Companion happen after I upgrade the last version.

    Did you understand my message? I Don’t speak English very well…

    Well, I don’t know what I did. Actually I didn’t do anything – I just deleted the site with the error (with Clarina’s new version) and uploaded the backup – wich wasn’t work before and that why I made the upgrade of Clarina! But now the personalize stuff is working. With the old version of Clarina (0.1) but the upgraded pluggin Llorix…

    Anyway, I think that I should try to make the new version of Clarina works… I’ll try it in a local host.

    Hi @fabitami,

    To make everything work you should have the following:

    – Llorix One Lite latest version 0.2.12
    – Llorix One Companion latest version 1.1.4
    – Clarina latest version 0.5.9

    And make the changes mentioned here https://docs.themeisle.com/article/635-how-to-display-sections-from-llorix-one-companion-in-clarina in Clarina.

    If I can help you with anything please let me know.

    Regards,
    Rodica

    tazotodua

    (@tazotodua)

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Latest update has broken Customiser’ is closed to new replies.