Skip Navigation

[Closed] Reusable PatterN issue with Blockmeister and WP Rocket Issue with version 1.5

This support ticket is created 3 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2021397

I found a couple of bugs when upgrading to Version 1.5 today and wanted to follow up on a previous support request that was closed before we were done with it.

1. Having defer javascript checked on WP Rocket broke our layouts for posts and categories unless we were logged in. Everything worked fine when we had this option checked with the previous version.

2. The bigger issue was a conflict or error with reusable patterns and the blockmeister plugin. That may have to do with custom categories for the patterns. When we tried to add reusable patterns to posts we would get kicked out of the post and given an error message and told we could try to recover the block, which did not work, or copy the error message. The following is the error message:
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at l.value (hidden link)
at Wt (hidden link)
at Qt (hidden link)
at hidden link
at hidden link
at $r (hidden link)
at hidden link
at Ur (hidden link)
at Array.map (<anonymous>)

I was able to find a workaround by moving our reusable patterns into the existing default categories but would like to be able to use these in the future.

3. We are still not able to get images or galleries to show up using custom fields with our archives. We were able to get a simple text field to show up - here is a link to our initial support request. https://toolset.com/forums/topic/creating-an-archive-that-use-custom-archive-fields/. I was hoping that accessing custom fields for archives would be in the 1.5 release. Can you let me know how I can bring images and galleries into our archives using custom fields or when the feature is likely to be included? Here is an example page hidden link

Thanks,

Mark

#2021781

Hello,

Q1) Please try these:
In the settings for WP Rocket, under deferred Javascript, exclude the following file

/wp-content/plugins/toolset-blocks/vendor/toolset/common-es/public/toolset-common-es-frontend.js

Q2) It seems to be a compatibility issue with the "blockmeister" plugin
Please provide a copy of your website in below private message box, you can put the package files in your own google drive disk, share the link only, also point out the problem page URLs, and describe detail steps to reproduce the same problem.
https://toolset.com/faq/provide-supporters-copy-site/

Q3) In the taxonomy archive page, you can get current term's custom field with Types shortcodes directly, for example, your custom taxonomy image field is "my-image-field", you can display it with below shortcode:

[types termmeta="my-image-field"][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
click link "Repeater attributes, User attributes, Term attributes, Usage examples"
There is an example code in section "term meta shortcode:"

The topic ‘[Closed] Reusable PatterN issue with Blockmeister and WP Rocket Issue with version 1.5’ is closed to new replies.