fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Error: Trying to access array offset on value of type bool

Inna Koyfman

I am getting error message in grid:

[03-Sep-2023 22:25:58 UTC] PHP Warning:  Trying to access array offset on value of type bool in /home/theele27/store.theelegantyou.com/wp-content/plugins/woo-variation-swatches-pro/includes/class-woo-variation-swatches-pro-product-page.php on line 256

To reproduce the error, go to address
https://www.theelegantyoustore.com/product-category/women/?per_page=24
and scroll down to the 5th row. You will see it below product images

Thanks

Hakik Zaman

Hi Inna,

Thanks for reaching out to us. You have an initial console error Uncaught TypeError: $ is not a function

Can you please fix this: https://paste.pics/P9AT0?

Can you please share the versions of the plugins you are using on your site?

I have tried to log in to your site but it is not responding:

Thank You

Inna Koyfman

Hi,

I don’t know, how to fix this “Uncaught TypeError: $ is not a function

Versions:

Variation Swatches for WooCommerce – 2.0.23
Variation Swatches for WooCommerce – Pro – 2.0.25

Sorry, I didn’t check the first password.
Here is the new one (verified) for the same account:
L274YEpZQrTlYvq&F!PNIZNY

Hakik Zaman

Hi Inna,

Could you update your free and premium version of the WooCommerce Variation Swatches plugin?

The current version of Swatches plugins is the following.

Variation Swatches for WooCoommerce – Version 2.0.25

Variation Swatches for WooCommerce Pro – Version 2.0.25

Please make sure you are using the same version and let me know if your reported issue has been fixed or not in this latest update.

Thank You

Inna Koyfman

It was a typo, both plugins are 2.0.25

I have just updated all plugins, theme, php and WordPress – everything is up to date

Hakik Zaman

Hi Inna Koyfman,

Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Swatches Plugin.

=> See if the problem persists.

=> If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

Looking forward to hearing from you soon.

Thank you

Inna Koyfman

Hi,

If I deactivate all plugins, this action will destroy the site is some unrestorable way, I already have this experience.

To prevent this problem, I have built a staging copy of the main site to implement this error. Here I can experiment.

I will let you know, Inna

 

Inna Koyfman

Hi, Hakik.

I was right by not destroying main site. I did it with a copy, digging and digging plugins.

That error has nothing to do with any of plugins, it associated with theme WOODMART. I can say even more – I believe now, it is coming from jQuery library. As I realize, many people are suffering with it, but cannot do anything real to fix it. If you open the javascript code, you will easily see a typo error – 1 parenthesis is in a wrong place, something associated with product popup. But it was there forever and does nothing with your plugin.

To prove this, I have changed the theme in staging copy and got the same errors from Swatches Pro.

You can see it for yourself by using new link

https://staging.theelegantyou.com/product-category/women/page/2/?per_page=36

Now you can take this site as administrator (staging.theelegantyou.com) with account, I’ve already sent you and do what you want with it, it is safe

 

Thanks, Inna

Hakik Zaman

Hi Inna,

Thanks for digging deep inspection. You could use the Health & Check plugin to perform the compatibility test.

By the way, a staging site is the best way to perform a plugin compatibility test.

Unfortunately, the login credentials are not working from my side: https://paste.pics/P9LRG

Please revise your login credentials for the staging site. Before posting the login credentials again, please check it yourself first.

Looking forward to hearing from you soon.

Thank You

Inna Koyfman

Dear Hakik, I don’t know what is going on with this password.

If you can provide me with your direct email address, I can push system to send you “Password Reset Request”

 

Best, Inna

Hakik Zaman

Hi Inna,

I have found the password from the ticket thread. Sorry for the last reply. I have added your staging credentials inside the Additional Info of this ticket.

It seems like the warning is displaying for the out-of-stock variations. So, I have tried to replicate the issue as you set it up on your staging site. The strange issue is I couldn’t set it up like your staging. All the things are working well on the staging I have created.

I have already sent your staging to our development team. In the meantime, will you help me replicate the issue on this staging for only one product?

https://wptestbox.com/wvserr/wp-admin/

Username: admin

Password: demo

Thank You

Hakik Zaman

Hi Inna,

We have released version 2.0.26 for both free and premium.

Can you please check and confirm whether everything is working as expected or not?

Hope to hear from you soon.

Thank You

Inna Koyfman

Hi, ok. And I have just received a message that new version of our theme WOODMART is available.

I will update all tomorrow and let you know, I am very sleepy already.

It is important that your plugin is working with our theme.

Also:

the staging is jumping between themes? showing error for Woodmart and not showing for alternative. I think it is caching, but it is clear – the problem appear only with Woodmart.

And I updated your staging, product BELT, it is set identically to the Bag (with error)

 

Best, Inna

Inna Koyfman

I have update Swatches, both plugins, and this action fixed the problem.

But, then I updated the Woodmart theme to the latest version on staging, I see those errors again. I cannot keep outdated theme forever

 

Thanks

Hakik Zaman

Hi Inna,

Did you also update the Woodmart theme on your staging?

I have enabled the Swatches plugin on the staging site but couldn’t find the error.

Can you please give me an exact link where I can see the error on the staging site?

Hope to hear from you soon.

Thank You

Inna Koyfman

Hi, Hakik,

The link is simple – “WOMEN” link in main menu, 5th row if you use 4 per row products.

So, production link is https://www.theelegantyoustore.com/product-category/women/

Staging is https://staging.theelegantyou.com/product-category/women/

On both sides both Swatches plugins are updated to the latest. When I updated production and received no errors, I was so happy! And, before updating the theme, I’ve decided to test it. Not because of swatches, but because it looses all the settings. They have to be accurately exported before update and then imported back in. That is what I wanted to test. And got errors again. If I received this theme’s new version 2 days later – I would close the ticket and had to open new one.

 

Thanks, Inna

Inna Koyfman

Yes, you were right. The error is fixed, thanks.

You can close this ticket

 

Regards, Inna