In some environments where Clean URLs will in fact work,
the Clean URLs test shows the page with the test button and no tick-box
(giving the false impression of a failed test result)
if called from
"http://www.example.com/?q=admin/config/search/clean-urls"
but gives a Clean URLs enabling page with tick-box (the correct result) if called from
"http://www.example.com/admin/config/search/clean-urls" (note clean address).

I think the affected environments must be fairly rare in the overall scheme of things, otherwise it would be a more famous bug. But I don't know exactly what the critical difference is.

I encountered it when using D7.0 in conjunction with an "add-on domain" (method of cut-price hosting, involving a sort of redirect). A non-addon-domain trial install similar in most other ways did not show the bug. See discussion at http://drupal.org/node/1167698. Any questions not already answered there, feel free to ask.

(I've only just seen that there's a D7.2 now, and haven't yet done my upgrade. I don't see anything relating to Clean URLs in the notes for 7.2, so I think that means it will be the same. But that's yet to be tested.)

I was eventually clued in to the solution by others' previous experience as reported at http://drupal.org/getting-started/clean-urls#comment-2526658 and http://drupal.org/getting-started/clean-urls#comment-4511508. (The earlier of those referred to D6, the later to D7.)

Other comments further down that thread, http://drupal.org/getting-started/clean-urls#comment-4153652 and http://drupal.org/getting-started/clean-urls#comment-4222904, look to me like they might also be the same thing. I say that because the commenter reports a clean address actually working even though the test says no.

http://drupal.org/getting-started/clean-urls#comment-4007886 reports a similar thing but with the added factor of overlays. In my case I had already ditched the overlay and was still getting false negatives with the unclean direct address.

I'm setting this to major because of the "significant repercussions" to the few people who are affected - a wrong test result is very very misleading and time-consuming! But an interim fix would simply be to warn people to try the alternative address before believing the test result. I'd suggest adding it high up on the handbook page immediately, and on the settings page in future updates (unless the bug can be tracked down and fixed straight away).

Extensive discussion of the Clean URLs settings page already exists at http://drupal.org/node/881376 and http://drupal.org/node/423196, including mention of a false negative tentatively attributed to a clash with overlays. (I've copied the "component" label "base system" from one of those as I couldn't find any component in the drop-down list actually called "Clean URLs".) But neither of those threads is specifically about this particular bug, and I'm not finding it elsewhere in the issue queue either, hence creating new issue. Hope that was the right thing to do.

Comments

Jennifer_M’s picture

Additional points:

a) During the testing process I had switched off JavaScript. But I've got it back on now and I can confirm that going to the page via the overlay also produces the false negative.

b) With or without JavaScript turned on, once the clean address has been visited & the checkbox has come up, it persists till the end of the session even if the box is not ticked. (i.e. Drupal continues to "know" that Clean URLs work.) Logging out & in again with Clean URLs off reverts to no box. (consistent with session variable storing the result, which I gather from the other issue threads is what happens.)

c) While Clean URLs are set on (box ticked), behaviour is as intended - even if you log out & in again, it stays with Clean URLs enabled. (which makes sense, because this would be stored in the database wouldn't it...)

catch’s picture

Status: Active » Closed (duplicate)

I'm marking this as a duplicate of #881376: "Run the clean URL test" UX is broken, if you strongly feel it's not a duplicate, re-open this but please attach much more information about your hosting environment and the difference between add-on and non add-on domain hosting from your provider.

Jennifer_M’s picture

Component: base system » documentation
Status: Closed (duplicate) » Active

I don't think this issue should be closed until something's been added to the page on Clean URLs at http://drupal.org/getting-started/clean-urls. That other issue/thread about the user experience could run for months yet, and IMO this is more urgent than that.

At the moment, the only way people are likely to get any warning that the test may have lied to them is if they read down the first 50+ comments appended to the Clean URLs page. The way that page is written, I suspect most people will try the possible fixes on the page before they read through all those detailed comments, which if your env. is already OK, is a completely unnecessary waste of time. That's a pretty shoddy way to treat the people affected by the bug. So IMO this is important enough to deserve a place in the documentation page itself, until the test works reliably.

Hence changing component to "documentation" and reopening on that basis.

I think there should be a new paragraph in the "Drupal 7.x" and "Drupal 6.x" sections on that page, and it would say something like:
"Occasionally the test gives a false negative result. To double check, navigate to http://www.example.co.uk/admin/settings/clean-urls (note clean URL)."

Or, slightly more informative but also slightly longer:
"Occasionally the test gives a false negative result. See #1178850 [or #881376]. To double check, navigate to http://www.example.co.uk/admin/settings/clean-urls (note clean URL)."

(Actually, if that page is getting an edit anyway, it wouldn't be a bad idea to add a clarification addressing the "page comes back unchanged with re-check button, what does it mean??" confusion from #881376. Happy to work with someone on improving that documentation.)

==

Once there's some such warning, on that page where people are likely to see it fairly early on in their trouble-shooting, then I don't mind the bugfix itself being treated as a duplicate.

I mean, I think there is a valid argument the other way, in that, to quote myself at http://drupal.org/node/881376#comment-4558386, this thread is primarily about the user experience of a "no" test result, not really related to whether the test is accurate. The title of that issue is currently "Run the clean URL test" UX is broken - note "UX broken", not "test broken".

But it's true that there are other people in that UX thread who have had other weird results with the test itself. So maybe that thread should be renamed instead, to explicitly include all misleading test results.

Either way, though, it's not me that's gonna be fixing the test, because I don't have the knowledge to do so. So if the people who are going to fix it want to treat this as a duplicate (documentation aside), then fine by me :-)

==

While I'm here, a bit more on my hosting environment...

Here are two articles about addon domains.
http://support.hostgator.com/articles/cpanel/please-read-before-creating...
http://www.visn.co.uk/cpanel-docs/addon-domains.html

Here is the advertising for the hosting I'm on.
http://www.compila.com/web-hosting/linux-web-site-hosting/commerce-websi...

That's pretty much the limits of my own knowledge, but if someone wants to ask me other questions specific to my hosting, I could put in a support request to Compila to get the answers.

jhodgdon’s picture

Title: Clean URLs test gives false negative result under some circumstances, but correct result if called from typed-in clean address » Clean URLs test needs better doc
Project: Drupal core » Documentation
Version: 7.0 »
Component: documentation » Correction/Clarification
Priority: Major » Normal

If you want something added to the drupal.org doc page, this needs to go into the documentation project issue queue.

Jennifer_M’s picture

Title: Clean URLs test needs better doc » Clean URLs test needs warning of misleading bug

Oh thanks for that, and sorry to have left it in the wrong place - I'd somehow missed that Documentation had a separate queue.

Changing title again, to be slightly more informative.

I'm deferring to your wider-perspective view on priority, although I remain very uneasy with the present situation. Hope something can be done soon to flag this up for people confused by it.

jhodgdon’s picture

Jennifer_M - do you want to edit the page? That's the fastest way to ensure it gets done. Then mark this "needs review", so someone can go back and review what you wrote.

Jennifer_M’s picture

Yes please! I don't think I've got the necessary editing privileges at present (unless there's a link somewhere that I'm not noticing), but happy to use them if granted.

(sorry for delay in replying - hadn't been back on d.o till now.)

jhodgdon’s picture

Hm. You know, I'm reading through this entire issue again, and I agree with catch in #2 that this is a duplicate of a known issue that is apparently being addressed. We don't normally add documentation of known bugs to the Drupal.org documentation, because once the bug is fixed we would then need to go back and fix the documentation. Might I suggest just adding a comment to that page, since that is more temporary?

Jennifer_M’s picture

a) OK so I did ask on the other thread whether that patch was designed to fix the "false negative" issue I encountered, and it is not; if it gets fixed along the way it'll be by chance. See http://drupal.org/node/881376#comment-4625318 (me asking) and http://drupal.org/node/881376#comment-4664548 (markvangend answering).

b) There already are comments attached to the relevant documentation page. As I've already said, however, it's possible to waste a lot of time before finding those.

I don't think the default policy on bug documentation ought necessarily to be applicable here; most bugs consist of something obviously failing to work, which is a clue to people to look in the issue queue, whereas this one is a lie by the software and therefore more misleading than usual.

Obviously I'm not going to be fooled by this one again! Just thinking of the people about to fall into the same pitfall as I fell into, and of Drupal's reputation.

Therefore I personally still think there ought to be a warning in the text of that page. But I recognise that it's not up to me.

eastface’s picture

I just wasted all that time as Jennifer_M suggested. I've been tweaking various configs, following suggestions, only to discover on page 60 (yes, really) of the comments that http://www.example.com/?q=admin/config/search/clean-urls is giving me a false negative. Please mention this in the documentation - it's not good for new users to be led on a wild goose chase like this. Thanks.

jhodgdon’s picture

The page probably has an Edit button on it, so you can edit it if you want to add something to it.

If it doesn't, please post the text here that you think should be added to the page (also indicate where it should be added), and someone who does have edit privileges on that page can add it to the page.

eastface’s picture

Thanks jhodgdon. That page isn't open for all to edit. Jennifer_M suggested the text to be changed in comment #3 above:

http://drupal.org/node/1178850#comment-4579616

and that looks good to me. Please can someone with the right permissions make the change.

jhodgdon’s picture

The page is now editable by anyone.

It would be great if you wanted to go through the comments and find anything else that should be added to the page, and add it. Then come back here and add a note that the comments can be deleted (or which specific ones), and change the component to "comment moderation", and we can reduce the size of the unwieldy comments on this page. Thanks!

NikLP’s picture

If we're rolling out new releases of Drupal 7.x with this bug still in (incomprehensible really) then why the dickens do we not just put a caveat message and a hard link to the non-?q page in the error message until it's fixed?!

I just wasted 90 minutes on this, and I'm hardly a n00b here. It's really not acceptable to not be made aware and waste all these man hours if this is a known bug...

jhodgdon’s picture

If you want to suggest that, please file a separate issue against Drupal 7. This issue is now about the documentation page on drupal.org.

eastface’s picture

I've added a note to the documentation. Sorry I didn't get to it in time for you NikLP.

jhodgdon’s picture

Status: Active » Fixed

I guess this can be marked "fixed" then. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tinflute’s picture

All this documentation about documentation, and I still can't find any info about my true negative -- I can't get Clean URLs working on D6. I have mod_rewrites on and have followed all .htaccess advice I can find. But no dice.

jhodgdon’s picture

It looks like you need some Drupal support.

This isn't the best place to ask for support, sorry! (This is an issue queue for people working on improving the on-line Drupal documentation.)

There are several support options listed if you click on "Support" at the top of Drupal.org, which will take you to:
http://drupal.org/support

There you can find out about the Drupal IRC channels, and the Forums, which are our two main support mechanisms in the Drupal community.

Good luck with your issue!

karolus’s picture

Thanks, Jennifer

I just got through a rather frustrating experience with this myself. Ironically, it was happening on a shared hosting account where I had a successful launch for another Drupal site a few months back with no such issue--and that in and of itself really had me confounded.

As you stated in a later post, I think it's an excellent idea if the warning about the false positive (and the solution) would be posted in the Clean URLs config page, until the issue is taken care of. It would prevent a lot of unneeded frustration, especially during website launches and rollouts...

cameroncb1’s picture

I am using Drupal 7.19, and I can tell you this issue still exists. I spent many hours today trying to solve the problem before I stumbled across the work-around presented in this thread.

I have several sites sharing a single Drupal installation. Clean URLs worked on all of them after the upgrade with just one exception: on that site, the clean URL test failed repeatedly.

The button to initiate the test does not reveal the URL it is going to: you have to push it before discovering what it was. I was using the Administrative overlay, so the URL looked rather strange:

[site]/#overlay=%3Fq%3Dadmin%252Fconfig%252Fsearch%252Fclean-urls

This one failed. But the following one:

[site]/admin/config/search/clean-urls

worked fine.

Thanks to Jennifer_M for pursuing this with such determination!

Leo Pitt’s picture

There is still no message on the Clean URL test page regarding this?

jhodgdon’s picture

Status: Closed (fixed) » Active

OK, well the page can be edited, so please feel free to edit it and put in the needed documentation.