Not working with WPML and casing fatal error
-
Hello,
The current plugin is working on the English website using WPML, but when using another language like Arabic, it’s giving a fatal error and the complete page crashes not sure if it’s because of WPML or Elementor in a different language.
Error below:
{main} thrown in /MyWebsiteFolder/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-shortcode.php on line 99
2025-10-14 08:35:45.635499 [NOTICE] [1464179] [STDERR] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /MyWebsiteFolder/public_html/wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-shortcode.php:99
Stack trace:
#0 /MyWebsiteFolder/public_html/wp-includes/shortcodes.php(434): Boomdevs_Toc_Shortcode->shortcode_generator()
#1 [internal function]: do_shortcode_tag()
#2 /MyWebsiteFolder/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()
#3 /MyWebsiteFolder/public_html/wp-content/plugins/top-table-of-contents/addons/boomdevs-toc-elementor-widget.php(56): do_shortcode()
#4 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): Boomdevs_Toc_Elementor_Widget->render()
#5 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode()
#6 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(774): Elementor\Widget_Base->render_content()
#7 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/includes/base/element-base.php(492): Elementor\Widget_Base->print_content()
#8 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/modules/element-cache/module.php(71): Elementor\Element_Base->print_element()
#9 /MyWebsiteFolder/public_html/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache\{closure}()
#10 [internal function]: do_shortcode_tag()
#11 /MyWebsiteFolder/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()
#12 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/core/base/document.php(1868): do_shortcode()
#13 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/core/base/document.php(1201): Elementor\Core\Base\Document->print_elements()
#14 /MyWebsiteFolder/public_html/wp-cont
2025-10-14 08:35:45.635582 [NOTICE] [1464179] [STDERR] ent/plugins/elementor/includes/frontend.php(1172): Elementor\Core\Base\Document->print_elements_with_wrapper()
#15 /MyWebsiteFolder/public_html/wp-content/plugins/elementor/includes/frontend.php(1067): Elementor\Frontend->get_builder_content()
#16 /MyWebsiteFolder/public_html/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content()
#17 /MyWebsiteFolder/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#18 /MyWebsiteFolder/public_html/wp-includes/post-template.php(256): apply_filters()
#19 /MyWebsiteFolder/public_html/wp-content/themes/xcare/page.php(26): the_content()
#20 /MyWebsiteFolder/public_html/wp-includes/template-loader.php(106): include(‘…’)
#21 /MyWebsiteFolder/public_html/wp-blog-header.php(19): require_once(‘…’)
#22 /MyWebsiteFolder/public_html/index.php(17): require(‘…’)
You must be logged in to reply to this topic.