I was using this plugin on a few websites but I had an incompatibility with Kadence Blocks. The developer there said the problem is in this plugin as WordPress made new rules on loading blocks. Is there any way to get an update? I was given this link for you by the other programmer and hope I can help if there is anything I can do. The Kadence programmer also said your plugin breaks Co Blocks as well because of the same loading problem.
This is the support chat link from Kadence Blocks: https://www.ads-software.com/support/topic/this-block-has-encountered-an-error-and-cannot-be-previewed-17/
]]>This may be related to another support issue previously posted, but is not specific to compatibility with just one plugin … unfortunately the error I’m seeing from your plugin breaks a whole host of other blocks.
Within any page or post editor, the following JS error is shown in the browser console:
react-dom.min.js:117 TypeError: Cannot read property 'includes' of undefined
at block-visibility.js?ver=1.0:1
at Array.map (<anonymous>)
at block-visibility.js?ver=1.0:1
at Td (react-dom.min.js:82)
at hi (react-dom.min.js:102)
at Qg (react-dom.min.js:144)
at Rg (react-dom.min.js:145)
at Sc (react-dom.min.js:158)
at Z (react-dom.min.js:156)
at ah (react-dom.min.js:159)
Is this plugin still actively supported? Is there a GitHub repo where I may be able to contribute a fix?
The idea is great, so I appreciate your hard work! But it’s unfortunately unusable because it breaks almost every other custom block plugin I use due to a JavaScript array error.
]]>It was confusing to use this plugin at first but after a minute or so I figured it out. This is a fantastic plugin. Thank you so much.
At the moment we have to select a lot of options as the plugin says hide from XXXXXXXX instead of show XXXXXXXX and this is where my original problem came from. I just selected everything except Administrator and couldn’t figure out what was happening at first. I quickly figured out we need to have both Administrator and user logged in both unselected, if we wanted to see the block as Administrator only though. If we only leave Administrator unselected nothing happens at all. Maybe the block settings could do with an update.
Advice to make this plugin even better: Having something like the options below would allow more setting combinations and make using the plugin even easier.
Hide from:
Administrator logged both in & out
Administrator logged in
Administrator logged out
Editor logged both in & out
Editor logged in
Editor logged out
Subscriber logged both in & out
Subscriber logged in
Subscriber logged out
Etc…
Just now you can’t select hide from Administrator logged out and Subscriber logged in, etc., at the same time. I realize if you selected both Subscriber logged both in & out and Subscriber logged in or Subscriber logged out the two bottom options wouldn’t have any effect but it would still make the plugin easier to use.
Maybe in the future the options could be hidden if logged both in & out is selected.
If you like, I can help make an icon for this plugin.
Regards,
Glen Rowell
]]>Hi there,
this plugin is not compatible with the Lazy Blocks plugin. Upon activating your plugin, it gives me this error:
TypeError: Cannot read property 'includes' of undefined
at https://***.local/wp-content/plugins/user-block-visibility/dist/js/block-visibility.js?ver=1.0:1:1247
at Array.map (<anonymous>)
at https://***.local/wp-content/plugins/user-block-visibility/dist/js/block-visibility.js?ver=1.0:1:1193
at Td (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:82:11)
at hi (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:102:385)
at Qg (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:144:217)
at Rg (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:145:76)
at Sc (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:158:109)
at Z (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:156:492)
at Zg (https://***.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:159:8)
]]>
When this plugin is active, the native Woocommerce blocks do not function. I will leave my 5 star review for now, despite this issue…
]]>