|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76789 site is in wrong language
Submitted: 2018-08-24 03:45 UTC Modified: 2018-11-18 22:33 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: jvanderlingen at mac dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: Next Major Version OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 - 11 = ?
Subscribe to this entry?

 [2018-08-24 03:45 UTC] jvanderlingen at mac dot com
------------ web site consistently uses geolocation to determine the language of the side. No many how many millions of times I specify "English", every page refresh PHP comes up with one of the languages of the location my network service provider happens to be stationed. It doesn't even come up with the language of the region, just a random language spoken in other parts of the location's country.

If you don't know how to correctly code your way around geolocation, stop using it.

Test script:

Expected result:
The website remembers my language by way of a cookie

Actual result:
The comes up in a completely random language every time you go to a new page.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-24 05:14 UTC]
-Status: Open +Status: Feedback
 [2018-08-24 05:14 UTC]
I picked a language and browsed around randomly and it stayed on that language.

What's the value of your LAST_LANG cookie? Is it getting destroyed and recreated? Do you see your COUNTRY cookie changing values? What happens if you refresh the same page?
 [2018-11-18 22:33 UTC]
-Status: Feedback +Status: No Feedback
 [2018-11-18 22:33 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 08:01:27 2024 UTC