Support » Plugin: Code Snippets » refresh code
refresh code
-
Hello everyone, the snippet code creates a error sometimes and just by refreshing the apage, it works. do you have an idea of the problem? thank you
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
-
Can you provide an example of what this error looks like?
Détails de l’erreur ====================== Une erreur de type E_ERROR a été causée dans la ligne 6 du fichier /home/yuhhboa/www/wp-content/plugins/code-snippets/php/front-end/class-frontend.php(248) : eval()'d code. Message d’erreur : Uncaught TypeError: Cannot access offset of type string on string in /home/yuhhboa/www/wp-content/plugins/code-snippets/php/front-end/class-frontend.php(248) : eval()'d code:6 Stack trace: #0 /home/yuhhboa/www/wp-content/plugins/code-snippets/php/front-end/class-frontend.php(248): eval() #1 /home/yuhhboa/www/wp-content/plugins/code-snippets/php/front-end/class-frontend.php(311): Code_Snippets\Frontend->evaluate_shortcode_content(Object(Code_Snippets\Snippet), Array) #2 /home/yuhhboa/www/wp-includes/shortcodes.php(395): Code_Snippets\Frontend->render_content_shortcode(Array, '', 'code_snippet') #3 [internal function]: do_shortcode_tag(Array) #4 /home/yuhhboa/www/wp-includes/shortcodes.php(235): preg_replace_callback('/\\[(\\[?)(code_s...', 'do_shortcode_ta...', '[code_snippet i...') #5 /home/yuhhboa/www/wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode('[code_snippet i...') #6 /home/yuhhboa/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2265): Elementor\Widget_Shortcode->render() #7 /home/yuhhboa/www/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode() #8 /home/yuhhboa/www/wp-content/plugins/elementor/includes/base/widget-base.php(733): Elementor\Widget_Base->render_content() #9 /home/yuhhboa/www/wp-content/plugins/elementor/includes/base/element-base.php(551): Elementor\Widget_Base->get_raw_data(true) #10 /home/yuhhboa/www/wp-content/plugins/elementor/core/base/document.php(1013): Elementor\Element_Base->get_raw_data(true) #11 /home/yuhhboa/www/wp-content/plugins/elementor/core/base/document.php(679): Elementor\Core\Base\Document->get_elements_raw_data(Array, true) #12 /home/yuhhboa/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1010): Elementor\Core\Base\Document->get_initial_config() #13 /home/yuhhboa/www/wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php(33): Elementor\Controls_Stack->get_config() #14 /home/yuhhboa/www/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(130): Elementor\Core\Editor\Loader\Common\Editor_Common_Scripts_Settings::get() #15 /home/yuhhboa/www/wp-content/plugins/elementor/core/editor/editor.php(358): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->enqueue_scripts() #16 /home/yuhhboa/www/wp-includes/class-wp-hook.php(310): Elementor\Core\Editor\Editor->enqueue_scripts('') #17 /home/yuhhboa/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #18 /home/yuhhboa/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /home/yuhhboa/www/wp-includes/script-loader.php(2225): do_action('wp_enqueue_scri...') #20 /home/yuhhboa/www/wp-includes/class-wp-hook.php(310): wp_enqueue_scripts('') #21 /home/yuhhboa/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #22 /home/yuhhboa/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #23 /home/yuhhboa/www/wp-includes/general-template.php(3053): do_action('wp_head') #24 /home/yuhhboa/www/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head() #25 /home/yuhhboa/www/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(176): include('/home/yuhhboa/w...') #26 /home/yuhhboa/www/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->print_root_template() #27 /home/yuhhboa/www/wp-includes/class-wp-hook.php(310): Elementor\Core\Editor\Editor->init('') #28 /home/yuhhboa/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #29 /home/yuhhboa/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #30 /home/yuhhboa/www/wp-admin/admin.php(419): do_action('admin_action_el...') #31 /home/yuhhboa/www/wp-admin/post.php(12): require_once('/home/yuhhboa/w...') #32 {main} thrown
This is definitely an error from one of your snippets. If you want to share the code here of the snippets you’re using on that page, I might be able to help figure out what’s going wrong.
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.