Avada › Forums › Community Forum › Clicking on woocommerce product throws critical error
-
AuthorPosts
-
Situation
-Shop page shows like normal.
-Click on product
-Blank page returnsError message
2022-11-01T00:47:48+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: int – string in home/[hosting dir]/public_html/wp-content/themes/Avada/includes/class-avada-layout.php:796
Stack trace:
#0 home/[hosting dir]/public_html/wp-content/themes/Avada/includes/class-avada-images.php(126): Avada_Layout->get_content_width()
#1 home/[hosting dir]/public_html/wp-includes/class-wp-hook.php(307): Avada_Images->content_width()
#2 home/[hosting dir]/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#3 home/[hosting dir]/public_html/wp-content/themes/Avada/includes/lib/inc/class-fusion-images.php(282): apply_filters()
#4 home/[hosting dir]/public_html/wp-includes/class-wp-hook.php(307): Fusion_Images->edit_grid_image_sizes()
#5 home/[hosting dir]/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#6 home/[hosting dir]/public_html/wp-includes/media.php(1520): apply_filters()
#7 home/[hosting dir]/public_html/wp-includes/media.php(1701): wp_calculate_image_sizes()
#8 home/[hosting dir]/public_html/wp-includes/media.php(2010): wp_image_add_srcset_and_sizes()
#9 home/[hosting dir]/public_html/wp-includes/media.php(1838): wp_img_tag_add_srcset_and_sizes_attr()
#10 home/[hosting dir]/public_html/wp-content/themes/Avada/includes/lib/inc/functions.php(1462): wp_filter_content_tags()
#11 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/shortcodes/fusion-image.php(549): fusion_add_responsive_image_markup()
#12 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): FusionSC_Imageframe->render()
#13 [internal function]: do_shortcode_tag()
#14 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#15 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php(525): do_shortcode()
#16 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): Fusion_Column_Element->render()
#17 [internal function]: do_shortcode_tag()
#18 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#19 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php(104): do_shortcode()
#20 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): Fusion_Row_Element->render()
#21 [internal function]: do_shortcode_tag()
#22 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#23 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php(525): do_shortcode()
#24 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): Fusion_Column_Element->render()
#25 [internal function]: do_shortcode_tag()
#26 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#27 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php(104): do_shortcode()
#28 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): Fusion_Row_Element->render()
#29 [internal function]: do_shortcode_tag()
#30 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#31 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/shortcodes/fusion-container.php(1070): do_shortcode()
#32 home/[hosting dir]/public_html/wp-includes/shortcodes.php(356): FusionSC_Container->render()
#33 [internal function]: do_shortcode_tag()
#34 home/[hosting dir]/public_html/wp-includes/shortcodes.php(228): preg_replace_callback()
#35 home/[hosting dir]/public_html/wp-includes/class-wp-hook.php(307): do_shortcode()
#36 home/[hosting dir]/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#37 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-template-builder.php(1457): apply_filters()
#38 home/[hosting dir]/public_html/wp-content/plugins/fusion-builder/inc/class-fusion-template-builder.php(1035): Fusion_Template_Builder->render_content()
#39 home/[hosting dir]/public_html/wp-includes/class-wp-hook.php(307): Fusion_Template_Builder->{closure}()
#40 home/[hosting dir]/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#41 home/[hosting dir]/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
#42 home/[hosting dir]/public_html/wp-content/themes/Avada/header.php(49): do_action()
#43 home/[hosting dir]/public_html/wp-includes/template.php(770): require_once(‘/home/[hostingaccount]…’)
#44 home/[hosting dir]/public_html/wp-includes/template.php(716): load_template()
#45 home/[hosting dir]/public_html/wp-includes/general-template.php(48): locate_template()
#46 home/[hosting dir]/public_html/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header()
#47 home/[hosting dir]/public_html/wp-includes/template-loader.php(106): include(‘/home/[hosting dir]…’)
#48 home/[hosting dir]/public_html/wp-blog-header.php(19): require_once(‘/home/[hosting dir]…’)
#49 home/[hosting dir]/public_html/index.php(17): require(‘/home/[hostingaccount]…’)
#50 {main}
thrown in home/[hosting dir]/public_html/wp-content/themes/Avada/includes/class-avada-layout.php op de lijn 796WP 6.1.1
Avada 6.8.2
Woocommerce 7.1.0
PHP memory 2 GB
server Apache/2
PHP 8.1.0
PHP Post Max Size: 16 MB
PHP Time Limit: 300
PHP Max Input Vars: 5000
MySQL Version: 10.3.24
Max Upload Size: 16 MB
GD Library: 2.2.5What have I already tried? (and failed)
-replace files for ones that came from a working site on same server
-replace files for freshly downloaded ones
-reinstall Avada and Core and fusion plugin in all sorts and forms including removing all the files from website.
-reinstall woocommerce
-restored hosting backups up unti september
-installed another theme->the page worked again…exept for the fusion code ofcourse.
-flushed cachesAssumptions based on this
-Server is ok
-WP is ok
-Woocommerce is ok
-Problem in Avada or Core/Fusion pluginsDo you have a suggestion what else to try, or maybe a solution?
Best regards,
Miriam -
AuthorPosts
- You must be logged in to reply to this topic.