Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 5.76 hours from now. Thank you for your understanding.

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/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Itamar 10 months, 2 weeks ago.

Assisted by: Itamar.

Author Posts
June 8, 2023 at 3:04 pm #13794125

louisN-4

litespeed complains (when we try to speed things up on kideno.com)

that they identified that currency cookie is firing 30+ times

i have added 2 images:

1. litespeed debug from their end showing the multiple - 'Set-Cookie: client_currency_cookie=ILS; path=/',

2. i added potential snippet we have - that we added with your help related to ?Currency=XXX

our developer explanation to this:

I am explaining according to our code see above screenshot where I marked a tick client_currency_cookie is being set.

That code sets client_currency_cookie only if URL is coming like this hidden link and client_currency_cookie is not set for website.

What I see whenever crawler executes these URL crawler see no currency set that's why again and again is being set

snippet code maybe.png
litespeed debug.png
June 11, 2023 at 5:29 pm #13805585

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Can you please send me the link to the ticket where we suggested adding the multicurrency code you show in the screenshot?

It will help me get this ticket advanced.

Thanks,
Itamar.

June 11, 2023 at 5:54 pm #13805635

louisN-4

Hi Itamar - i think it was

https://wpml.org/forums/topic/undefined-index-gbp-json-trying-to-access-array-offset-on-value-of-type-null/

June 12, 2023 at 6:22 am #13806407

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks!

I'm consulting our second-tier supporters and will update you once I have their reply.

Regards,
Itamar.

June 12, 2023 at 7:32 am #13806697

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our Sumit second-tier supporter asks to try the following.

Remove the code you suspect causes this problem and check if the problem persists (the currency cookie is firing 30+ times).

Can you please try that?

Also, please let us know where or on which page we can see this problem.

If access to your site is needed to see the problem, please share the access details to your site. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Thanks,
Itamar.

June 12, 2023 at 8:22 am #13807105

louisN-4

can you open me a box, to upload you the code,
we can't really disable the code, since it will affect users currency

June 12, 2023 at 8:32 am #13807295

louisN-4

here is the code
hidden link

June 12, 2023 at 1:02 pm #13809929

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'm sorry if I was not clear enough. It is not the code itself we need. We have it on the other ticket here.

https://wpml.org/forums/topic/undefined-index-gbp-json-trying-to-access-array-offset-on-value-of-type-null/page/3/#post-13717193

Since you said you couldn't remove the code, I'm consulting our second-tier supporter to see if there is another way we can help in this case.

Regards,
Itamar.

June 12, 2023 at 2:42 pm #13810727

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Sumit, our second-tier supporter, said we know you have a staging site. So please remove that code on the staging site and check if the problem persists.

You presented us with a custom code you added to your site in that ticket. We then helped you with your custom code and suggested a fix to a problem you were having with it. At this point, we are trying to determine if your custom code also creates the issue in this ticket.

Can you please proceed with the test we suggested on your staging site?

Please be aware that we are limited in the help we can provide with custom code. We mention this in our support policy here.

https://wpml.org/purchase/support-policy/

Regards,
Itamar.

June 20, 2023 at 5:41 pm #13862405

louisN-4

still checking this with litespeed

June 20, 2023 at 7:12 pm #13862737

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks for the update. I'll wait to hear if you need more help with this issue.

The topic ‘[Closed] litespeed complains that currency cookie is firing 30+ times’ is closed to new replies.