PHP Fatal error: Uncaught TypeError: number_format
-
Hi,
I’m seeing errors in my PHP logs mentioning this plug-in. I’m on PHP 8.1.
[07-Nov-2023 17:56:36 UTC] PHP Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /home/example.com/public_html/wp-includes/functions.php:424
Stack trace: 0 /home/example.com/public_html/wp-includes/functions.php(424): number_format(”, 0, ‘.’, ‘,’) 1 /home/example.com/public_html/wp-content/plugins/breadcrumbs-divi-module/divi-breadcrumbs.php(293): number_format_i18n(”) 2 /home/example.com/public_html/wp-content/plugins/breadcrumbs-divi-module/includes/modules/DiviBreadcrumbs/DiviBreadcrumbs.php(164): lwp_get_hansel_and_gretel_breadcrumbs(‘Home’, ”, ‘5’) 3 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3347): LWP_DiviBreadcrumbs->render(Array, ”, ‘lwp_divi_breadc…’, ”, ”, ”, ”, ”) 4 /home/example.com/public_html/wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ”, ‘lwp_divi_breadc…’) 5 [internal function]: do_shortcode_tag(Array) 6 /home/example.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(lwp_di…’, ‘do_shortcode_ta…’, ‘[lwp_divi_bread…’) 7 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode(‘[lwp_divi_bread…’) 8 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3347): ET_Builder_Column->render(Array, ‘[lwp_divi_bread…’, ‘et_pb_column’, ”, ”, ”, ”, ”) 9 /home/example.com/public_html/wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘[lwp_divi_bread…’, ‘et_pb_column’) 10 [internal function]: do_shortcode_tag(Array) 11 /home/example.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘[et_pb_column t…’) 12 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode(‘[et_pb_column t…’) 13 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3347): ET_Builder_Row->render(Array, ‘[et_pb_column t…’, ‘et_pb_row’, ”, ”, ”, ”, ”) 14 /home/example.com/public_html/wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘[et_pb_column t…’, ‘et_pb_row’) 15 [internal function]: do_shortcode_tag(Array) 16 /home/example.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘[et_pb_row disa…’) 17 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode(‘[et_pb_row disa…’) 18 /home/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3347): ET_Builder_Section->render(Array, ‘[et_pb_row disa…’, ‘et_pb_section’, ”, ”, ”, ”, ”) 19 /home/example.com/public_html/wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘[et_pb_row disa…’, ‘et_pb_section’) 20 [internal function]: do_shortcode_tag(Array) 21 /home/example.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘<div class=”et-…’) 22 /home/example.com/public_html/wp-includes/class-wp-hook.php(310): do_shortcode(‘<div class=”et-…’) 23 /home/example.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<div class=”et-…’, Array) 24 /home/example.com/public_html/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[et_pb_section …’) 25 /home/example.com/public_html/wp-content/themes/Divi/page.php(46): the_content() 26 /home/example.com/public_html/wp-includes/template-loader.php(106): include(‘/home/example…’) 27 /home/example.com/public_html/wp-blog-header.php(19): require_once(‘/home/example…’) 28 /home/example.com/public_html/index.php(17): require(‘/home/example…’) 29 {main}
thrown in /home/example.com/public_html/wp-includes/functions.php on line 424Please can you advise?
Many thanks!
- The topic ‘PHP Fatal error: Uncaught TypeError: number_format’ is closed to new replies.