Home › Toolset Professional Support › [Escalated to 2nd Tier] Views stop BeaverBuilder Archive page for Woo shop working
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)
Tagged: Content Templates, How to build a site with Toolset, Views plugin, WooCommerce, WordPress Archives
Related documentation:
This topic contains 33 replies, has 4 voices.
Last updated by Shane 3 years, 3 months ago.
Assisted by: Shane.
3 week anniversary!
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
Over 5 weeks now! Come on!
And now 6 weeks. This is embarrassing!
Soon 2 months, congrats!!
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.
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
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; }
OK, will try that instead.
Hi Kristian,
Doing some follow up here on this ticket. Has the workaround that christian provided able to resolve the issue for you ?
Nope, can't get to page 2 in the shop!
Nope, can't get to page 2!
????
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
Still not working!!!!