Latest update has broken Customiser
-
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
-
Me too I have the same problem.
I’am waiting for an Update!- This reply was modified 7 years, 7 months ago by pierre1675.
Hi,
I tried this plugin and don’t find any error. Do you guys use the latest version of the plugin?
Share the URL of your website.Hi guys,
Can you please confirm us if you still have this issue?
Yes, all is Ok!!
Thank you!!hello,
i’ve just updsated the plugin and i have this error: Fatal error: Call to undefined function llorix_one_companion_sevices_get_default_content() in /web/htdocs/www.hitecotech.it/home/wp2/wp-content/plugins/llorix-one-companion/inc/settings.php on line 55
i solved it but i don’t know if it’s the right way.
i put here the code of the file ‘llorix-one-companion/inc/settings.php’
<?php function llorix_one_companion_customize_register( $wp_customize ) { if( class_exists('Llorix_One_Lite_General_Repeater') ) { /********************************************************/ /****************** SERVICES OPTIONS *******************/ /********************************************************/ /* SERVICES SECTION */ $wp_customize->add_section( 'llorix_one_lite_services_section' , array( 'title' => esc_html__( 'Services section', 'llorix-one-companion' ), 'priority' => 40, 'panel' => 'llorix_one_lite_front_page_sections', 'active_callback' => 'llorix_one_lite_show_on_front', )); /* Services show/hide */ $wp_customize->add_setting( 'llorix_one_lite_our_services_show', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_services_show', array( 'type' => 'checkbox', 'label' => __('Disable the Services section?','llorix-one-companion'), 'section' => 'llorix_one_lite_services_section', 'priority' => 1, )); /* Services title */ $wp_customize->add_setting( 'llorix_one_lite_our_services_title', array( 'default' => esc_html__('Our Services','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_services_title', array( 'label' => esc_html__( 'Main title', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_services_section', 'priority' => 10 )); /* Services subtitle */ $wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array( 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_services_section', 'priority' => 20 )); /* Services content */ if( function_exists('llorix_one_companion_sevices_get_default_content')){ $default = llorix_one_companion_sevices_get_default_content(); } $wp_customize->add_setting( 'llorix_one_lite_services_content', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater', 'default' => $default, )); $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array( 'label' => esc_html__('Add new service box','llorix-one-companion'), 'section' => 'llorix_one_lite_services_section', 'priority' => 30, 'llorix_one_lite_image_control' => true, 'llorix_one_lite_icon_control' => true, 'llorix_one_lite_title_control' => true, 'llorix_one_lite_text_control' => true, 'llorix_one_lite_link_control' => true ) ) ); /********************************************************/ /******************* TEAM OPTIONS *********************/ /********************************************************/ $wp_customize->add_section( 'llorix_one_lite_team_section' , array( 'title' => esc_html__( 'Team section', 'llorix-one-companion' ), 'priority' => 60, 'panel' => 'llorix_one_lite_front_page_sections', 'active_callback' => 'llorix_one_lite_show_on_front', )); /* Team show/hide */ $wp_customize->add_setting( 'llorix_one_lite_our_team_show', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_team_show', array( 'type' => 'checkbox', 'label' => __('Disable the Team section?','llorix-one-companion'), 'section' => 'llorix_one_lite_team_section', 'priority' => 1, )); /* Team title */ $wp_customize->add_setting( 'llorix_one_lite_our_team_title', array( 'default' => esc_html__('Our Team','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_team_title', array( 'label' => esc_html__( 'Main title', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_team_section', 'priority' => 10, )); /* Team subtitle */ $wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array( 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_team_section', 'priority' => 20, )); /* Team Background */ $wp_customize->add_setting( 'llorix_one_lite_our_team_background', array( 'default' => llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'), 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'llorix_one_lite_our_team_background', array( 'label' => esc_html__( 'Team Background', 'llorix-one-lite' ), 'section' => 'llorix_one_lite_team_section', 'priority' => 30 ))); /* Team content */ if( function_exists('llorix_one_companion_team_get_default_content')){ $default = llorix_one_companion_team_get_default_content(); } $wp_customize->add_setting( 'llorix_one_lite_team_content', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater', 'default' => $default, ) ); $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array( 'label' => esc_html__('Add new team member','llorix-one-companion'), 'section' => 'llorix_one_lite_team_section', 'priority' => 40, 'llorix_one_lite_image_control' => true, 'llorix_one_lite_title_control' => true, 'llorix_one_lite_subtitle_control' => true ) ) ); /********************************************************/ /********** TESTIMONIALS OPTIONS ***********************/ /********************************************************/ $wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array( 'title' => esc_html__( 'Testimonials section', 'llorix-one-companion' ), 'priority' => 70, 'panel' => 'llorix_one_lite_front_page_sections', 'active_callback' => 'llorix_one_lite_show_on_front', )); /* Testimonials show/hide */ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array( 'type' => 'checkbox', 'label' => __('Disable the Testimonials section?','llorix-one-companion'), 'section' => 'llorix_one_lite_testimonials_section', 'priority' => 1, )); /* Testimonials title */ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array( 'default' => esc_html__('Happy Customers','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array( 'label' => esc_html__( 'Main title', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_testimonials_section', 'priority' => 10, )); /* Testimonials subtitle */ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array( 'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one-companion'), 'sanitize_callback' => 'llorix_one_lite_sanitize_text', )); $wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array( 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ), 'section' => 'llorix_one_lite_testimonials_section', 'priority' => 20, )); /* Testimonials content */ if( function_exists('llorix_one_companion_testimonials_get_default_content')){ $default = llorix_one_companion_testimonials_get_default_content(); } $wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array( 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater', 'default' => $default, )); $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array( 'label' => esc_html__('Add new testimonial','llorix-one-companion'), 'section' => 'llorix_one_lite_testimonials_section', 'priority' => 30, 'llorix_one_lite_image_control' => true, 'llorix_one_lite_title_control' => true, 'llorix_one_lite_subtitle_control' => true, 'llorix_one_lite_text_control' => true ) ) ); } } add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 ); ?>
This is still an issue for me…
For reference, I’m running:
1. Plugin version: 1.1.4
2. WordPress version: 4.7.4
3. PHP version: 7.1.3 (have been running this for over a month now – issue has only been in the last couple of weeks)
Site: https://willstocks.co.uk/Have you tried the code i posted above?
1) make a copy or the file ‘llorix-one-companion/inc/settings.php’
2) edit the file ‘llorix-one-companion/inc/settings.php’: replace all the code with what i’ve posted above
3)Save the file and test It.If It doesn’t work restore the file with the backup done at the First step
Hi @acris,
Thank you for helping us. We’re glad that you have succeeded.
Hi,
Could you please let me know if you are using the latest version of both the theme and the plugin? This should be fixed when using the latest version of the theme.
Please let me know.Regards,
Rodica@willstockstech @themeisle It works but i still lost some sections on home with no reason.
I am having the exact same issue. The code provided above for settings.php file, fixed the 500 error loading the theme customizer.
…But, I still have front page sections missing on the home page.
Has anyone figured out a fix, to bring the missing sections back?
Hi,
I am really sorry for this late reply. There is a compatibility issue with the latest update of the Llorix One Companion Plugin and Clarina, but considering that many users of the child theme change the theme’s files, we can not really update the theme, without them losing theirs changes. This is why the only solution we could find was to create this doc, recommending the changes needed for fixing this problem.
Could you please try to follow this doc and let me know if it’s helping you?https://docs.themeisle.com/article/635-how-to-display-sections-from-llorix-one-companion-in-clarina
Best regards,
RodicaHi @rodicaelena,
I’ve be trying this solution, but in “my” file “functions.php” from Clarina there isn’t the code that you indicate. Your document indicates this (below):
*********************************************
In functions.php replace the following code :
/**
* Homepage section order
*/
function clarina_sections_order() {
$naturelle_order = array(
‘sections/llorix_one_lite_logos_section’,
‘llorix_one_lite_our_services_section’,
‘sections/llorix_one_lite_our_story_section’,
‘llorix_one_lite_our_team_section’,
‘llorix_one_lite_happy_customers_section’,
‘sections/llorix_one_lite_ribbon_section’,
‘sections/llorix_one_lite_latest_news_section’,
‘sections/llorix_one_lite_contact_info_section’,
‘sections/llorix_one_lite_map_section’,
);
return $naturelle_order;
}
add_filter( ‘llorix_one_companion_sections_filter’, ‘clarina_sections_order’ );**********************
And I didn’t find either any other file with this code.Hi @fabitami,
Can you please let me know what version of Clarina you are using?
And also, can you paste here the code from the functions.php file?Thank you,
Rodica
- The topic ‘Latest update has broken Customiser’ is closed to new replies.