This topic has 8 replies, 3 voices, and was last updated 1 months ago ago by Ahmed
Dear Team,
We are getting the following error while trying to edit the homepage with elementor
Fatal error: Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider-item.php:504 Stack trace: #0 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider-item.php(504): array_combine() #1 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/traits/base.php(78): ETC\App\Controllers\Shortcodes\Slider_Item->slider_item_shortcode() #2 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(434): etheme_wrap_shortcode_in_div() #3 [internal function]: do_shortcode_tag() #4 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(273): preg_replace_callback() #5 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider.php(175): do_shortcode() #6 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/elementor/general/slider.php(511): ETC\App\Controllers\Shortcodes\Slider->slider_shortcode() #7 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/controls-stack.php(2325): ETC\App\Controllers\Elementor\General\Slider->render() #8 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/widget-base.php(635): Elementor\Controls_Stack->render_by_mode() #9 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/widget-base.php(759): Elementor\Widget_Base->render_content() #10 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/element-base.php(616): Elementor\Widget_Base->get_raw_data() #11 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/element-base.php(616): Elementor\Element_Base->get_raw_data() #12 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/base/document.php(1085): Elementor\Element_Base->get_raw_data() #13 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/base/document.php(738): Elementor\Core\Base\Document->get_elements_raw_data() #14 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/controls-stack.php(1070): Elementor\Core\Base\Document->get_initial_config() #15 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php(37): Elementor\Controls_Stack->get_config() #16 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(134): Elementor\Core\Editor\Loader\Common\Editor_Common_Scripts_Settings::get() #17 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/editor/editor.php(358): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->enqueue_scripts() #18 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts() #19 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #20 /www/wwwroot/everyspareparts.com/wp-includes/plugin.php(517): WP_Hook->do_action() #21 /www/wwwroot/everyspareparts.com/wp-includes/script-loader.php(2263): do_action() #22 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #23 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #24 /www/wwwroot/everyspareparts.com/wp-includes/plugin.php(517): WP_Hook->do_action() #25 /www/wwwroot/everyspareparts.com/wp-includes/general-template.php(3065): do_action() #26 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head() #27 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(180): include(‘…’) #28 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->print_root_template() #29 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init() #30 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #31 /www/wwwroot/everyspareparts.com/wp-includes/plugin.php(517): WP_Hook->do_action() #32 /www/wwwroot/everyspareparts.com/wp-admin/admin.php(419): do_action() #33 /www/wwwroot/everyspareparts.com/wp-admin/post.php(12): require_once(‘…’) #34 {main} thrown in /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider-item.php on line 504
Kindly look into the provide a quick solution for the same.
Hello, Ahmed,
Thank you for reaching out and bringing this issue to our attention. We apologize for the inconvenience you are experiencing while trying to edit your homepage with Elementor.
1/ Please downgrade the PHP version to 8.1 (contact your hosting provider).
2/ If this doesn’t help, please provide us with FTP access.
For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.
We would like to bring to your attention that utilizing the Appearance theme editor or a file manager plugin via the site Dashboard to implement fixes or code carries the risk of inducing fatal errors. Such errors could potentially result in you being locked out and the website becoming inaccessible. It is for this reason that we recommend editing files through FTP; the use of the File Manager or theme editor alone does not offer the level of security and control required for such operations.
Thank you for your cooperation.
Best Regards,
8Theme’s Team
Dear Team,
Switching to php version 8.1 is giving the following error
: Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider-item.php:506 Stack trace: #0 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider-item.php(506): array_combine() #1 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/traits/base.php(78): ETC\App\Controllers\Shortcodes\Slider_Item->slider_item_shortcode() #2 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(434): etheme_wrap_shortcode_in_div() #3 [internal function]: do_shortcode_tag() #4 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(273): preg_replace_callback() #5 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/slider.php(175): do_shortcode() #6 /www/wwwroot/everyspareparts.com/wp-content/plugins/et-core-plugin/app/controllers/elementor/general/slider.php(511): ETC\App\Controllers\Shortcodes\Slider->slider_shortcode() #7 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/controls-stack.php(2325): ETC\App\Controllers\Elementor\General\Slider->render() #8 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/widget-base.php(635): Elementor\Controls_Stack->render_by_mode() #9 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/widget-base.php(776): Elementor\Widget_Base->render_content() #10 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content() #11 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/modules/element-cache/module.php(73): Elementor\Element_Base->print_element() #12 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(434): Elementor\Modules\ElementCache\Module->Elementor\Modules\ElementCache\{closure}() #13 [internal function]: do_shortcode_tag() #14 /www/wwwroot/everyspareparts.com/wp-includes/shortcodes.php(273): preg_replace_callback() #15 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/base/document.php(1856): do_shortcode() #16 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/core/base/document.php(1201): Elementor\Core\Base\Document->print_elements() #17 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/frontend.php(1158): Elementor\Core\Base\Document->print_elements_with_wrapper() #18 /www/wwwroot/everyspareparts.com/wp-content/plugins/elementor/includes/frontend.php(1053): Elementor\Frontend->get_builder_content() #19 /www/wwwroot/everyspareparts.com/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content() #20 /www/wwwroot/everyspareparts.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() #21 /www/wwwroot/everyspareparts.com/wp-includes/post-template.php(256): apply_filters() #22 /www/wwwroot/everyspareparts.com/wp-content/themes/xstore/page.php(53): the_content() #23 /www/wwwroot/everyspareparts.com/wp-includes/template-loader.php(106): include(‘…’) #24 /www/wwwroot/everyspareparts.com/wp-blog-header.php(19): require_once(‘…’) #25 /www/wwwroot/everyspareparts.com/index.php(17): require(‘…’) #26 {main} thrown in
Inlcuded FTP credentials for you.
Dear @Ahmed,
I hope this message finds you well. We have identified an issue related to the custom URL structure in the Slider element on your website, which was interfering with the PHP parsing functions. To address this, we have temporarily reverted to the default shop URLs in your Slider element settings as an immediate fix.
Furthermore, we strongly recommend transitioning to the new XStore Slider element, which is designed to be more efficient and is fully supported with updates. The current slider used on your website is deprecated, and the underlying technology is outdated and less optimized. For detailed guidance on implementing the new slider, please visit: https://xstore.helpscoutdocs.com/article/213-xstore-slider-with-elementor-plugin.
Thank you for your attention to this matter. Should you need any further assistance or have questions, please do not hesitate to contact us.
Best Regards,
Jack Richardson
The 8Theme Team
Sure. Maybe you would also do the same for demo import as we have just imported the data a few days back.
Anyways thank you for your support.
Is it ok if we switch back to PHP Version 8.2?
Hello @Ahmed,
Yes, now you can switch back to the php 8.2 as the error was fixed on your web-site by settings the options to correct values. Also, we will send your idea to our devs about using new XStore Slider widget on our demos without losing the main design.
Kind regards, Jack Richardson
Ok Thank you.
The issue related to '‘Uncaught value error in et core plugin while using elementor’' has been successfully resolved, and the topic is now closed for further responses