Navigation überspringen

[Gelöst] Communication error breaking the website

This support ticket is created vor 4 days. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 3 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von Minesh vor 3 days, 6 hours.

Assistiert von: Minesh.

Author
Artikel
#2869365

I am trying to: fix critical error

Link to a page where the issue can be seen: firstcars.co.za

I expected to see: Functional website

Instead, I got: There has been a critical error on this website.

#2869370

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When I checked I found the following fatal error:

Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /home/firstcars/domains/firstcars.co.za/public_html/wp-content/toolset-customizations/thousandseperator.php:14 Stack trace: #0 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/toolset-customizations/thousandseperator.php(14): number_format() #1 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(434): func_thousands_separator_for_price() #2 [internal function]: do_shortcode_tag() #3 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #4 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/blocks/server/routes.php(169): do_shortcode() #5 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-hook.php(343): ToolsetBlocks\{closure}() #6 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-block.php(648): apply_filters() #8 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-block.php(576): WP_Block->render() #9 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-block.php(576): WP_Block->render() #10 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-block.php(576): WP_Block->render() #11 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-block.php(576): WP_Block->render() #12 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/blocks.php(2438): WP_Block->render() #13 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/blocks.php(2521): render_block() #14 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/plugins/toolset-blocks/application/controllers/api/methods/render_view.php(160): do_blocks() #15 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/plugins/toolset-blocks/application/controllers/api/methods/render_view.php(60): OTGS\Toolset\Views\Controller\API\Methods\RenderViewHandler->render_block_view() #16 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-api.php(173): OTGS\Toolset\Views\Controller\API\Methods\RenderViewHandler->process_call() #17 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/divi/includes/modules/View/View.php(60): render_view() #18 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): Toolset\Compatibility\Divi\Modules\View->render() #19 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(434): ET_Builder_Element->_render() #20 [internal function]: do_shortcode_tag() #21 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #22 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode() #23 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Column->render() #24 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(434): ET_Builder_Element->_render() #25 [internal function]: do_shortcode_tag() #26 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #27 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode() #28 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Row->render() #29 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(434): ET_Builder_Element->_render() #30 [internal function]: do_shortcode_tag() #31 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #32 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode() #33 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Section->render() #34 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(434): ET_Builder_Element->_render() #35 [internal function]: do_shortcode_tag() #36 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #37 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/class-wp-hook.php(341): do_shortcode() #38 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #39 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/post-template.php(256): apply_filters() #40 /home/firstcars/domains/firstcars.co.za/public_html/wp-content/themes/Divi/page.php(46): the_content() #41 /home/firstcars/domains/firstcars.co.za/public_html/wp-includes/template-loader.php(132): include('/home/firstcars...') #42 /home/firstcars/domains/firstcars.co.za/public_html/wp-blog-header.php(19): require_once('/home/firstcars...') #43 /home/firstcars/domains/firstcars.co.za/public_html/index.php(17): require('/home/firstcars...') #44 {main} thrown

/home/firstcars/domains/firstcars.co.za/public_html/wp-content/toolset-customizations/thousandseperator.php:14 · 2026-07-20 11:12:49

I've adjusted the code added to "Custom Code" section as given under:
- versteckter Link

add_shortcode( 'show_price', 'func_thousands_separator_for_price');
function func_thousands_separator_for_price( $atts, $content ) {
if($atts['price']!=0 and $atts['price']!='') {
  $price_value = $atts['price'];
   
  return number_format($price_value, 0);
}else{ 
   return 0; 
}
}

Can you pleae confirm it works as expected.

#2869397
toolset error.jpg

Hi Minesh.

Thanks for the help. I think it helped solve the issue for the website breaking. I have noticed that when you go to the plugin page or toolset dashboard, it gives me the following error "Toolset plugin cannot connect to toolset.com".

Is there any way to fix this issue?

Thank you

Neue Threads, die von Minesh erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

https://toolset.com/de/forums/topic/split-communication-error-breaking-the-website-toolset-plugin-cannot-connect-to-toolset-com/

#2869552

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Glad to know that your original issue is resolved.

As per our support policy we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery. May I kindly ask you to open a new ticket with every new question you may have in future. For now, I've split the ticket with your new question and here is the new ticket:
- https://toolset.com/forums/topic/split-communication-error-breaking-the-website-toolset-plugin-cannot-connect-to-toolset-com/

You are welcome to mark resolve this ticket.