The plugin broke the frontend
-
Hi!
I tried elnplugin on several pages and it worked perfectly. But in the one I need. It damages the front end. Here is the error:
I Uncaught TypeError: CF_Images\App\Core::get_attachment_image_src(): Argument #2 ($attachment_id) must be of type int, string given, called in /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php on line 310 and defined in /home/vw-test2.co/public_html/wp-content/plugins/cf-images/App/Core.php:727 Stack trace: #0 /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php(310): CF_Images\App\Core->get_attachment_image_src() #1 /home/vw-test2.co/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/vw-test2.co/public_html/wp-includes/media.php(992): apply_filters() #3 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/kits/documents/tabs/settings-site-identity.php(37): wp_get_attachment_image_src() #4 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/kits/documents/tabs/tab-base.php(43): Elementor\Core\Kits\Documents\Tabs\Settings_Site_Identity->register_tab_controls() #5 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/kits/documents/kit.php(158): Elementor\Core\Kits\Documents\Tabs\Tab_Base->register_controls() #6 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2329): Elementor\Core\Kits\Documents\Kit->register_controls() #7 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(496): Elementor\Controls_Stack->init_controls() #8 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(300): Elementor\Controls_Stack->get_stack() #9 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2416): Elementor\Controls_Stack->get_controls() #10 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(1109): Elementor\Controls_Stack->sanitize_settings() #11 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2163): Elementor\Controls_Stack->get_data() #12 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack->get_init_settings() #13 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings() #14 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/kits/manager.php(117): Elementor\Core\Base\Base_Object->get_settings() #15 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(130): Elementor\Core\Kits\Manager->get_current_settings() #16 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(71): Elementor\Core\Breakpoints\Breakpoint->init_value() #17 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(88): Elementor\Core\Breakpoints\Breakpoint->get_value() #18 /home/vw-test2.co/public_html/wp-content/plugins/elementor/core/breakpoints/manager.php(195): Elementor\Core\Breakpoints\Breakpoint->is_custom() #19 /home/vw-test2.co/public_html/wp-content/plugins/elementor/includes/frontend.php(542): Elementor\Core\Breakpoints\Manager->has_custom_breakpoints() #20 /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php(308): Elementor\Frontend->register_styles() #21 /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #22 /home/vw-test2.co/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #23 /home/vw-test2.co/public_html/wp-includes/script-loader.php(2180): do_action() #24 /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts() #25 /home/vw-test2.co/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #26 /home/vw-test2.co/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #27 /home/vw-test2.co/public_html/wp-includes/general-template.php(3043): do_action() #28 /home/vw-test2.co/public_html/wp-content/themes/hello-elementor/header.php(21): wp_head() #29 /home/vw-test2.co/public_html/wp-includes/template.php(783): require_once(‘…’) #30 /home/vw-test2.co/public_html/wp-includes/template.php(718): load_template() #31 /home/vw-test2.co/public_html/wp-includes/general-template.php(48): locate_template() #32 /home/vw-test2.co/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header() #33 /home/vw-test2.co/public_html/wp-includes/template-loader.php(106): include(‘…’) #34 /home/vw-test2.co/public_html/wp-blog-header.php(19): require_once(‘…’) #35 /home/vw-test2.co/public_html/index.php(17): require(‘…’) #36 {main} thrown in?/home/vw-test2.co/public_html/wp-content/plugins/cf-images/App/Core.php?on line?727
- The topic ‘The plugin broke the frontend’ is closed to new replies.