Skip Navigation

[Escalated to 2nd Tier] Views stop BeaverBuilder Archive page for Woo shop working

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Author
Posts
#2107271

3 week anniversary!

#2108691

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristian,

I checked on the escalated thread for you given that Christian is currently on vacation. I can see that our development team is still investigating the issue and can take some time.

Right now there is not much we here in support can do as this issue needs to be investigated thoroughly by the development team before a fix can be proposed.

As christian mentioned we will keep you up to date with any progress on the ticket.

Thanks
Shane

#2119639

Over 5 weeks now! Come on!

#2128059

And now 6 weeks. This is embarrassing!

#2137215

Soon 2 months, congrats!!

#2146149

Hi, my 2nd tier team took another look at this since we didn't get feedback yet from our developers. Though we are still not clear why the problem happens, we understand how to work around the symptoms. Here is a filter that solves the problem in our local copies of the site:

/**
 * Enforce the shop rewrite rule (to workaround an issue where it is mistakenly translated to butik)
 * Reference: https://toolset.com/forums/topic/views-stop-beaverbuilder-archive-page-for-woo-shop-working
 */
add_filter( 'product_rewrite_rules', 'ts_enforce_shop_rewrite' );
function ts_enforce_shop_rewrite( $rules ){

	if ( is_array( $rules ) ){
		$rules["shop/?$"] = "index.php?post_type=product";
	}

If you would like to try this workaround, please add the code in your child theme's functions.php file, or in a custom code snippet. You can then test the Product archive (the shop) in all languages to confirm this is working correctly.

#2146307

The code lacks a parenthesis and doesn't work any way.

This is what I get when I try to edit a page with BB. 2 months!!!!!!!

Warning: array_merge(): Expected parameter 2 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1441

Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1172

Warning: array_merge(): Expected parameter 2 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1201

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1436

Warning: array_merge(): Expected parameter 1 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php on line 1441

Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1172

Warning: array_merge(): Expected parameter 2 to be an array, null given in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1201

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/bb-plugin/classes/class-fl-builder.php on line 323

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/bb-plugin/classes/class-fl-builder.php on line 324

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/bb-plugin/classes/class-fl-builder.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/bb-plugin/classes/class-fl-builder.php on line 326

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-content/plugins/bb-plugin/classes/class-fl-builder.php on line 327

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/pluggable.php on line 1340

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/class-wp-rewrite.php:1436) in /srv/users/serverpilot/apps/corydoraszone/public/wp-includes/pluggable.php on line 1343

#2146643

Looks like I made a copy + paste error, my apologies. Obviously that won't work. The full code should be:

/**
 * Enforce the shop rewrite rule (to workaround an issue where it is mistakenly translated to butik)
 */
add_filter( 'product_rewrite_rules', 'ts_enforce_shop_rewrite' );
function ts_enforce_shop_rewrite( $rules ){

	if ( is_array( $rules ) ){
		$rules["shop/?$"] = "index.php?post_type=product";
	}

	return $rules;
}
#2149293

OK, will try that instead.

#2151337

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristian,

Doing some follow up here on this ticket. Has the workaround that christian provided able to resolve the issue for you ?

#2152353

Nope, can't get to page 2 in the shop!

#2152355

Nope, can't get to page 2!

#2155165

????

#2155545

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristian,

Our 2nd tier team as revised the code to account for the rewrite rules for the pagination.
[php]
/**
* Enforce the shop rewrite rule (to workaround an issue where it is mistakenly translated to butik)
*/
add_filter( 'product_rewrite_rules', 'ts_enforce_shop_rewrite' );
function ts_enforce_shop_rewrite( $rules ){

if ( is_array( $rules ) ){
$rules["shop/?$"] = "index.php?post_type=product";
$rules["shop/page/([0-9]{1,})/?$"] = "index.php?post_type=product&paged=$matches[1]";
}

return $rules;
}

</codE>

Please try this and let me know if the pagination works now.

Thanks,
Shane

#2162057

Still not working!!!!