Title: Fatal error:
Last modified: May 19, 2026

---

# Fatal error:

 *  [rovalt](https://wordpress.org/support/users/rovalt/)
 * (@rovalt)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-4981/)
 * I set up a filter on the page and specified the search criteria. Products matching
   the search criteria were displayed. I clicked on any product, and the product
   page opened. When I tried to go back, I got an error:
 * **Fatal error**: Uncaught TypeError: explode(): Argument #2 ($string) must be
   of type string, array given in /var/www/u1712452/data/www/lexunit.ru/wp-content/
   plugins/super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.
   php:50 Stack trace: #0 /var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.php(50):
   explode(‘-‘, Array) #1 /var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/init.php(19): include(‘/
   var/www/u17124…’) #2 /var/www/u1712452/data/www/lexunit.ru/wp-includes/shortcodes.
   php(434): Super_Woocommerce_Product_Filter_Shop_Builder::shop_builder(Array, ”,‘
   swpf_shop_build…’) #3 [internal function]: do_shortcode_tag(Array) #4 /var/www/
   u1712452/data/www/lexunit.ru/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   swpf_s…’, ‘do_shortcode_ta…’, ‘\n<div class=”wp…’) #5 /var/www/u1712452/data/
   www/lexunit.ru/wp-includes/class-wp-hook.php(341): do_shortcode(‘\n<div class
   =”wp…’) #6 /var/www/u1712452/data/www/lexunit.ru/wp-includes/plugin.php(205):
   WP_Hook->apply_filters(‘\n<div class=”wp…’, Array) #7 /var/www/u1712452/data/
   www/lexunit.ru/wp-includes/post-template.php(256): apply_filters(‘the_content’,‘
   <!– wp:columns…’) #8 /var/www/u1712452/data/www/lexunit.ru/wp-content/themes/
   hq-pages/page.php(34): the_content() #9 /var/www/u1712452/data/www/lexunit.ru/
   wp-includes/template-loader.php(132): include(‘/var/www/u17124…’) #10 /var/www/
   u1712452/data/www/lexunit.ru/wp-blog-header.php(19): require_once(‘/var/www/u17124…’)#
   11 /var/www/u1712452/data/www/lexunit.ru/index.php(17): require(‘/var/www/u17124…’)#
   12 {main} thrown in **/var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.php**
   on line **50**

Viewing 1 replies (of 1 total)

 *  Thread Starter [rovalt](https://wordpress.org/support/users/rovalt/)
 * (@rovalt)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-4981/#post-18912211)
 * **The error also occurs when refreshing the page with filters applied.**
 * **Fatal error**: Uncaught TypeError: explode(): Argument #2 ($string) must be
   of type string, array given in /var/www/u1712452/data/www/lexunit.ru/wp-content/
   plugins/super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.
   php:50 Stack trace: #0 /var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.php(50):
   explode(‘-‘, Array) #1 /var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/init.php(19): include(‘/
   var/www/u17124…’) #2 /var/www/u1712452/data/www/lexunit.ru/wp-includes/shortcodes.
   php(434): Super_Woocommerce_Product_Filter_Shop_Builder::shop_builder(Array, ”,‘
   swpf_shop_build…’) #3 [internal function]: do_shortcode_tag(Array) #4 /var/www/
   u1712452/data/www/lexunit.ru/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   swpf_s…’, ‘do_shortcode_ta…’, ‘\n<div class=”wp…’) #5 /var/www/u1712452/data/
   www/lexunit.ru/wp-includes/class-wp-hook.php(341): do_shortcode(‘\n<div class
   =”wp…’) #6 /var/www/u1712452/data/www/lexunit.ru/wp-includes/plugin.php(205):
   WP_Hook->apply_filters(‘\n<div class=”wp…’, Array) #7 /var/www/u1712452/data/
   www/lexunit.ru/wp-includes/post-template.php(256): apply_filters(‘the_content’,‘
   <!– wp:columns…’) #8 /var/www/u1712452/data/www/lexunit.ru/wp-content/themes/
   hq-pages/page.php(34): the_content() #9 /var/www/u1712452/data/www/lexunit.ru/
   wp-includes/template-loader.php(132): include(‘/var/www/u17124…’) #10 /var/www/
   u1712452/data/www/lexunit.ru/wp-blog-header.php(19): require_once(‘/var/www/u17124…’)#
   11 /var/www/u1712452/data/www/lexunit.ru/index.php(17): require(‘/var/www/u17124…’)#
   12 {main} thrown in **/var/www/u1712452/data/www/lexunit.ru/wp-content/plugins/
   super-woocommerce-product-filter/public/inc/shop-builder/layouts/layout.php**
   on line **50**

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-4981%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/super-product-filter/assets/icon-256x256.png?rev=3141021)
 * [Super Product Filter for WooCommerce](https://wordpress.org/plugins/super-product-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/super-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/super-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-product-filter/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [rovalt](https://wordpress.org/support/users/rovalt/)
 * Last activity: [1 month, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-4981/#post-18912211)
 * Status: not resolved