I encountered an issue where the “Block on this Page/Post” checkbox in the Proxy & VPN Blocker plugin was not appearing in the sidebar for custom post types (CPTs). Additionally, a JavaScript error appeared in the console due to an undefined meta value.
Problem:
_pvb_checkbox_block_on_post
is not always defined for custom post types, causing the script to throw an error./wp-content/plugins/proxy-vpn-blocker/assets/js/pvb-block-editor-script.js
Solution:
By modifying the script, I added checks to ensure that the meta
object exists before trying to access _pvb_checkbox_block_on_post
. This prevents the JavaScript error and ensures the checkbox works on all post types, including CPTs.
Here is the link to the fixed script:
https://github.com/goran712/proxy-vpn-blocker-fix/tree/main
Suggested Action:
Please consider implementing this fix ( or improved version of this fix ) in the next plugin update so the checkbox works correctly for all post types.
Thanks!
]]>basically I am a big fan of this module, it makes it so easy to create product feeds for Google Shopping.
But recently, it causes a JavaScript error which crashes all my images – ALL.
And I really want to turn it on again Would you be able to help me out?
Best regards from Switzerland,
Anias
]]>An error occurred while running ‘mapSelect’: Cannot read properties of undefined (reading ‘forEach’)
The error may be correlated with this previous error:
TypeError: Cannot read properties of undefined (reading ‘forEach’)
at https://trinityua.com/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-modules-analytics-4-e7215bb257eaff98a241.js:130:106266
at Array.forEach ()
I would like to resolve this error so that Google Analytics 4 data can be displayed correctly in the Site Kit dashboard.
]]>After updating the Additional Variation Images Gallery for WooCommerce plugin to version 1.3.26, I get the following error in the browser console:
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: div
Ancestor with aria-hidden:<div class=?"slick-slide slick-cloned slick-center" data-slick-index=?"-1" id aria-hidden=?"true" style=?"width:? 123px;?" tabindex=?"-1"> ... </div>
BR
]]>Today, I uninstalled the previous reCAPTCHA-based login security plugin on several Woocommerce sites and set up Simple Cloudflare Turnstile. The plugin works well on all but the older, non-block-enabled Twenty Ten and Arcade Basic themes which were using the Cart Block. On those sites, when the Cart page was visited, all the user got was the spinning throbber and the Cart did not display.
It looks like the problem is a JavaScript conflict with the Cart Block on those themes:
Uncaught (in promise) TypeError: turnstileItem is null
unsubscribe https://thedomain.com/wp-content/plugins/simple-cloudflare-turnstile/js/integrations/woocommerce.js:28
r https://thedomain.com/wp-includes/js/dist/data.min.js:2
instantiate https://thedomain.com/wp-includes/js/dist/data.min.js:2
v https://thedomain.com/wp-includes/js/dist/data.min.js:2
k https://thedomain.com/wp-includes/js/dist/data.min.js:2
a Redux
U https://thedomain.com/wp-includes/js/dist/data.min.js:2
D https://thedomain.com/wp-includes/js/dist/data.min.js:2
s https://thedomain.com/wp-includes/js/dist/data.min.js:2
setTimeout handler*s https://thedomain.com/wp-includes/js/dist/data.min.js:2
i https://thedomain.com/wp-includes/js/dist/data.min.js:2
v https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
p https://thedomain.com/wp-includes/js/dist/data.min.js:9
__unstableMarkListeningStores https://thedomain.com/wp-includes/js/dist/data.min.js:2
a https://thedomain.com/wp-includes/js/dist/data.min.js:2
p https://thedomain.com/wp-includes/js/dist/data.min.js:9
Je https://thedomain.com/wp-includes/js/dist/data.min.js:9
Qe https://thedomain.com/wp-includes/js/dist/data.min.js:9
Ye https://thedomain.com/wp-includes/js/dist/data.min.js:9
v https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
b https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
React 11
i https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
l https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
l https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
a https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
d https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:33
u https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-cart-checkout-base-frontend.js:1
8349 https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
l https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
n https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
O https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
<anonymous> https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
<anonymous> https://thedomain.com/wp-content/plugins/woocommerce/assets/client/blocks/cart-frontend.js:1
woocommerce.js:28:17
On other sites the Cart Block works just fine.
The workaround on the affected sites was to switch the Cart Page from the Cart Block to the Woocommerce Cart shortcode:
[woocommerce_cart]
Using the shortcode, the JavaScript error didn’t occur and the Cart displays fine.
The Checkout Block appears to be working fine.
I’d like to be able to use the Cart Block and Simple Cloudflare Turnstile even on these old, non-block-enabled themes.
]]>main.js?ver=6.7.1:256 Uncaught TypeError: Cannot read properties of undefined (reading ‘prepend’)
at Object.banner (main.js?ver=6.7.1:256:11)
at Object.init (main.js?ver=6.7.1:35:9)
at main.js?ver=6.7.1:1027:15
at main.js?ver=6.7.1:1029:3
I will be happy, if anyone can give me some proposals on what might cause the issue and any possible solutions would be appreciated. Thank you in advance
]]>https://drive.google.com/file/d/17yxpZsWHPk-81EgbklUfZS83QTLYV8Ws/view?usp=sharing
]]>When i inspect the url, i see this error
wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘mark’)
at Object.p (wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1:2600)
at Object.impression (wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1:3762)
at wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1:3171
at Array.forEach ()
at Object.init (wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1:3096)
at wpjm-stats.js?ver=07904eeaa2cdf65ab5ef:1:4500
Kindly advise on how i can solve the issue
Thank you
Andrew
]]>Uncaught SyntaxError: expected expression, got ','
let map = new google.maps.Map(mapElem, {
zoom: 14,
gestureHandling: 'cooperative',
mapTypeId: 'roadmap',
mapTypeControl: ,
zoomControl: ,
fullscreenControl: ,
streetViewControl: 1,
scrollwheel: false,
center: latlng,
styles: []
});
And the error points to the zoomControl: , line above in the output.
]]>