I recently installed Drupal 6.13 fresh, and Drupal logs and Google Analytics show some people are trying to reach non-existent web pages starting with the URL /es/. Google Analytics indicates visitors on these pages are 50% English (not es/Spanish)!

This happens only on a few pages. For example
WRONG: http://bleachbit.sourceforge.net/es/node/8
RIGHT: http://bleachbit.sourceforge.net/download

Or another example from the Drupal log
Location http://bleachbit.sourceforge.net/es/download/windows <--- does not exist, 404
Referrer http://bleachbit.sourceforge.net/download

I am not sure what triggers it. As I mentioned, half the visitors are English. I even saw this myself once from a very basic Opera setup, but regrettably I deleted the Opera setup.

The module 'locale' is disabled and 'i18' is not installed!

Environment
* Drupal 6.13
* Modules: CAPTCA, HTTP Mail, Better Formats, Comment Notify, Global Redirect, Meta tags, nofollowlist, pathauto, poormanscron
* Modules installed:
* Apache 2.2.3
* MySQL 5.0.51a
* PHP 5.2.8

Potentially-relevant facts
1. I noticed in /admin/content/node/ that a few Pages are English but others are Language Neutral. I don't see how that was set originally or how to change it now.
2. When I installed Drupal, I got this message

user warning: Duplicate entry 'download/windows-en' for key 2 query: UPDATE url_alias SET src = 'node/10', dst = 'download/windows', language = 'en' WHERE pid = 19 in /home/groups/b/bl/bleachbit/htdocs/modules/path/path.module on line 100.

which I fixed by running delete from url_alias where pid=19;

I asked in the Forum, but no one could help
http://drupal.org/node/556140

Comments

andrewz’s picture

Title: Drupal random creates transforms URLs causing 404 errors » Drupal randomly transforms URLs causing 404 errors
andrewz’s picture

Version: 6.13 » 6.19

I still have unexplained /es/ URLs with Drupal 6.19.

Enabled non-core modules
* Better formats
* Comment notify
* Feedburner
* Global Redirect 6.x-1.2
* nofollowlist
* Pathauto 6.x-1.3
* Poormanscron
* Image CAPTCHA

The module 'locale' is still disabled.

These SQL queries only show English and null:
select distinct language from node;
select distinct language from url_alias;

There are /es/ URLs in the tables 'accesslog' and 'watchdog' but not in tables 'node' and 'url_alias'

Google Analytics still shows many of these visitors have English as a primary language (not es/Spanish).

andrewz’s picture

I found that this affects browsers where the language is set to Spanish. In some cases, Drupal redirect visitors from English URLs to /es/ URLs, but in some cases it does not. (I tried using an Apache rule to redirect: at first it seemed to work, then I saw it caused a circular redirect.)

andrewz’s picture

Long story made short, I fixed it like this
UPDATE languages SET enabled = 0, weight = 0 WHERE language = 'es'

So I had the local module disabled, but somehow Spanish existed, was active, and being used.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.