Public Ticket #3671427

Undefined array key "label"

Closed
Comments
4 Tickets
Bert started the conversation 2 years ago on June 21, 2024 at 1:40pm

Hi there,

the message:

Warning: Undefined array key "label" in/homepages/26/d963816289/htdocs/qo-neu/wp-content/plugins/shopengine/utils/helper.phpon line530

is shown within the checkout. But it disappears when I disable the b2bKing Pro. I need both plugins. Any ideas what to do. Additionally I get a Server 500-message but no hint from the server-down-monitor and no entry in the error logs. Last but not least the installation is very slow at all. Can you help? I added a list of all plugins.
Best wishes
Bert

2,762
KingsPlugins replied 2 years ago on June 22, 2024 at 4:26am

Hello Bert,

I'd be glad to assist,


(1) Regarding this error: Warning: Undefined array key "label" in/homepages/26/d963816289/htdocs/qo-neu/wp-content/plugins/shopengine/utils/helper.phpon line530

It seems like there is some kind of conflict there with a B2BKing checkout feature.

I believe we can find a fix for it, we would like to troubleshoot the error further to understand where it comes from. Would it be possible to share a backend login to the site (or a staging clone site) with us, so we can investigate this in more detail?


(2) Generally regarding speed, are you using the B2BKing visibility feature?

If so, please try going to B2BKing -> Settings -> Other and enabling the 'Product Visibility Cache' setting - it can make a big difference.


Also regarding a 500-error message, does that happen on a specific page, or in specific situations?


Kind regards,

Stefan

4 Tickets
Bert replied 2 years ago on August 22, 2024 at 1:34pm

Hi Stefan,

sorry for the late answer. But I did not recognized, you answered. The Backend credentials are:

(1)
Host: neu.quantumoptik.de/wp-admin
User: sab2b
Password: ^9Y%*Uw2Ym8r6w)1F8eG(UHo

(2)
In the meanwhile I moved the installation to another server and the problems with the speed reduced itself. Also the server 500 disappeared completely, but the warning

Warning: Undefined array key "label" in/var/www/clients/client66/web301/web/qo-neu/wp-content/plugins/shopengine/utils/helper.phpon line530

is still shown.

Thanks for your help
Best wishes
Bert

2,762
KingsPlugins replied 2 years ago on August 26, 2024 at 11:29am

Hi again,

Thank you for the access details,


(1) I reviewed the respective line of code that is showing that error: https://www.loom.com/i/1efe327f65854523b41b50d077d31c32

My understanding is that the shopengine plugin is going through checkout fields and expecting certain values. B2BKing adds some hidden checkout fields that do not have a 'label', so that results in an error in the other plugin.

I believe this does not have any negative effects on functionality. The other plugin could add a small check there to prevent the error (for that, kindly please contact the shopengine team), but in any case I do not believe it has any actual effects technically. 



(2) Regarding the way this displays during checkout:

https://www.loom.com/i/1b55322fbdad4ce28d1957ef6856f4a4

The problem here is that the site has "debug display mode" enabled - which is why that error shows that way to customers. This mode should only be used while the site is in development, it should not be enabled on a live production site.

I have disabled it on the site, by editing wp-config.php. I took a quick video of what I did: https://www.loom.com/share/0ea84f4ec5774a5eaed194dee140a9f1?sid=311fa787-a1bd-4ff4-adf1-2365b8e2a747


Kind regards,

Stefan

1

Sign In