1. HOT Divi Ultimate Header Plugin - More variety for your Divi header: https://header.diviultimate.com/

Non-numeric value encountered

Discussion in 'Free Divi Community Forum' started by StaycT, Mar 11, 2019.

  1. StaycT

    StaycT New Member

    Hi Divi Community.
    New to the site. New to Divi, too.
    I recently took over managing a Divi themed website for a client- the website hadn't had any maintenance in years!
    I have an issue I am not sure how to remedy.
    Has anyone experienced this or can you lead me in the direction of how to fix?
    Warning: A non-numeric value encountered in ....../wp-content/themes/Divi/functions.php on line 5752

    The line reads:
    $widget_header_font_size = intval( et_get_option( 'widget_header_font_size', intval( et_get_option( 'body_header_size' * .6, '18' ) ) ) );

    Any help is much appreciated!!
    Stacy
     
    1. AD Beautify your Divi archive / category page with premade design: https://archive.diviultimate.com/
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to update Divi & Wordpress to the latest version?
     
  3. beachrunner

    beachrunner New Member

    Replace the line with this line

    $widget_header_font_size = intval( et_get_option( 'widget_header_font_size', intval( et_get_option( 'body_header_size' ) ) * .6, '18' ));
     
    1. AD Add tons of new icons for your Divi site. Free version available: https://divi.help/link-forums/divi-icons-pro.147/
  4. violaleo

    violaleo New Member

    Hi Divi Community.
    New to the site. New to Divi, too.
    I have an issue I am not sure how to remedy.
    Has anyone experienced this or can you lead me in the direction of how to fix?
    Warning: A non-numeric value encountered in ....../wp-content/themes/Divi/functions.php on line 2390
    The line reads:
    $wp_customize->add_setting( 'et_divi[widget_header_font_size]', array(
    'default' => et_get_option( 'body_header_size' * .6, '18' ),
    'type' => 'option',
    'capability' => 'edit_theme_options',
    'transport' => 'postMessage',
    'sanitize_callback' => 'absint', ));

    What is wrong, please?
    Thanks!
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    For this type of issue, you should try to update Divi & Wordpress to the latest version & clear your cache & see if it fixes your issue.

    If not, it's best for you to refer official Divi support about it: https://www.elegantthemes.com/members-area/help/
     
    1. AD Recommended Web Hosting for Divi sites: https://divi.help/link-forums/siteground.140/