The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
AI Assistant
Compatibility issue...
 
Notifications
Clear all

Compatibility issue between wpDiscuz and GTranslate subdomain proxy mode

1 Posts
1 Users
0 Reactions
14 Views
(@willybob)
Posts: 23
Eminent Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#11380]

I would like to report a compatibility issue we identified between wpDiscuz and GTranslate when GTranslate is used in translated subdomain proxy mode.

We noticed that after visiting a translated version of the site such as en.example.com, wpDiscuz comment behavior on the original site can break because of nonce cookie conflicts.

After investigating, we found the following:

  • wpDiscuz itself appears to generate its nonce cookies correctly as host-only cookies

  • in wpDiscuz code, the cookies are created with an empty domain

  • however, on translated subdomains using GTranslate, the AJAX response from wp-admin/admin-ajax.php is returned with rewritten Set-Cookie headers

  • GTranslate changes the wpDiscuz nonce cookies to use domain=example.com, which makes them shared across the original and translated subdomains

In our case, the response headers on the translated subdomain looked like this:

  • server: gtranslate

  • set-cookie: wpdiscuz_nonce_...; domain=example.com; HttpOnly; SameSite=Strict

  • set-cookie: wpdiscuz_nonce_exp_...; domain=example.com; SameSite=Strict

This creates a conflict because a nonce cookie generated on a translated subdomain can then interfere with the original site version.

From what we observed, wpDiscuz is not the component introducing the shared cookie domain. The issue seems to come from GTranslate rewriting the Set-Cookie headers at proxy level. Still, I wanted to report this to you in case it is useful for compatibility tracking or future documentation.

It may be helpful for other users if wpDiscuz documentation mentions that translation proxy solutions which rewrite cookie domains can cause nonce conflicts, especially with subdomain-based translated versions.

If you have any recommendation for this kind of setup, I would be glad to hear it.

Thank you.


 
Posted : 04/04/2026 1:48 pm