-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language needs to be shown in url #1068
Comments
In theory, the assert can be commented. But this means we are in a bad state that could lead to all kind of issues. I left such asserts intentionally to understand better this kind of issues. This error means:
Your request appears as "doing_front_end: true" but who is triggering this? Maybe the problem comes from "cookie_front_or_admin_found": false. |
It surely comes from the missing cookie. In that case it will try to detect the language from the browser or HTTP_REFERER, or take the default language. The error means that the resulting language does not match the URL settings. Let's say you have I suppose you have the front cookies enabled but why isn't the cookie set in that case? This may depend on how this request is triggered. Maybe that should be considered as a REST request? Currently it's not. |
I think . Instead of this message "Language needs to be shown in url" plugin must automaticaly add Default language to url and all. Url /?wc-api=wc_gateway_paysera - make Payment plugin and impossible change this. Now i turned on - Detect the language of the browser and redirect accordingly. If i comment line 446 in qtranslate_core.php what will happen ? or do this: or replace line 446 to: I just need no errors to appear. |
Related to #1326. |
Fix released in 3.14.2. |
How disable message - "language needs to be shown in url " ?
Payment gateway Paysera.com dont work and send error:
'
Warning: assert(): language needs to be shown in url - cancelled by can_redirect, url_info={ "cookie_front_or_admin_found": false, "scheme": "https", "host": "kruvid24.ee", "path": "/", "query": "wc-api=wc_gateway_paysera", "original_url": "/?wc-api=wc_gateway_paysera", "path-base": "", "doing_front_end": true, "wp-path": "/", "doredirect": "language needs to be shown in url - cancelled by can_redirect", "language": "et", "set_cookie": true } failed in /home/kruvidee/public_html/wp-content/plugins/qtranslate-xt-master/qtranslate_core.php on line 105
OK'
The text was updated successfully, but these errors were encountered: