
Tagged: BigCommerce, enfold
-
AuthorPosts
-
May 21, 2025 at 9:29 pm #1484540
Hello,
I’m trying to run a BigCommerce store using the Enfold theme, but there’s a critical error that’s giving the white screen of death when I try to view the homepage. The back-end stays up and running, but when the BigCommerce plugin is active, the site doesn’t exist. I’d love to keep using the Enfold theme and would hate to have to use something else for this site. Any help would be greatly appreciated!
WordPress version 6.8.1
Active theme: Enfold Child (version 1.0) Current plugin: (version ) PHP version 8.2.18Error Details
=============
An error of type E_ERROR was caused in line 1602 of the file /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php. Error message: Uncaught Error: Call to undefined function avia_wc_clear_catalog_ordering_args_filters() in /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php:1602
Stack trace:
#0 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(753): avia_masonry->query_entries(Array, false)
#1 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php(810): avia_sc_masonry_entries->get_element_styles(Array)
#2 /home1/enginendo/public_html/cjm/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1178): avia_sc_masonry_entries->shortcode_handler(Array, ”, ‘av_masonry_entr…’, Array)
#3 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_masonry_entr…’)
#4 [internal function]: do_shortcode_tag(Array)
#5 /home1/enginendo/public_html/cjm/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(av_but…’, ‘do_shortcode_ta…’, ‘[av_slidesho…’)
#6 /home1/enginendo/public_html/cjm/wp-includes/class-wp-hook.php(324): do_shortcode(‘[av_slidesho…’)
#7 /home1/enginendo/public_html/cjm/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[av_slidesho…’, Array)
#8 /home1/enginendo/public_html/cjm/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(137): apply_filters(‘the_content’, ‘May 22, 2025 at 5:54 am #1484550Hey panoptic2012,
Thank you for the inquiry.
Based on the errors, it appears to be an issue with the avia_wc_clear_catalog_ordering_args_filters function in the Masonry element. Did you also enable Woocommerce? What happens when you remove the Masonry element from the home page?
Best regards,
IsmaelMay 22, 2025 at 7:34 am #1484564Thanks so much for your reply!
WooCommerce is not installed, so I don’t think it’s enabled.
I removed the Masonry block and the page works now.
Will that happen wherever Masonry appears? If so, I’ll have to remember to not use it, which kinda sucks. Is there something I can add to functions that will override or bypass that?
Thanks in advance!May 22, 2025 at 7:40 am #1484565Hi,
Will that happen wherever Masonry appears?
Yes, for some reason, it executes a function intended for Woocommerce. Try editing the file at enfold/config-templatebuilder/avia-shortcode-legacy/av-helper-masonry.php and look for the following code around line 1273:
if ( function_exists( 'WC' ) ) { avia_wc_clear_catalog_ordering_args_filters(); $avia_config['woocommerce']['disable_sorting_options'] = false; }
Replace it with:
if ( function_exists( 'WC' ) && ! class_exists( 'BigCommerce' ) ) { avia_wc_clear_catalog_ordering_args_filters(); $avia_config['woocommerce']['disable_sorting_options'] = false; }
Let us know if the issue persists.
Best regards,
IsmaelMay 22, 2025 at 8:02 am #1484567Should I copy that file to the child theme (in the same folder structure) so that the fix doesn’t go away on the next update?
May 22, 2025 at 8:47 am #1484569Hi,
For now, you will have to add the modifications directly to the parent theme. We may include it in the next patch if it works.
Best regards,
IsmaelMay 22, 2025 at 9:35 am #1484572Thanks again for your help. It works!!
May 23, 2025 at 6:55 am #1484597 -
AuthorPosts
- You must be logged in to reply to this topic.