i'm getting an alert box which says

An HTTP error 0 occurred.
http://localhost/?q=finder_autocomplete/autocomplete/1/1

this happens when there is no results

Comments

dinoopm’s picture

this issue shows in firefox

danielb’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

This means the ajax was interrupted, either by your http connection, or by you pressing 'enter' or clicking your mouse on something. Nothing I can do about this, it is a feature of Drupal.

neurer’s picture

Component: Finder Node » Finder Autocomplete

This is a huge usability issue for average users -- Firefox only though.

Suggested fix should work with all versions:

Open .../finder/modules/finder_autocomplete/finder_autocomplete.js:

At around line 295 change this:

 },
      error: function (xmlhttp) {
        alert(Drupal.ahahError(xmlhttp, db.uri));

to this:

 /*},
      error: function (xmlhttp) {
        alert(Drupal.ahahError(xmlhttp, db.uri));*/

While it's not a perfect solution, I prefer this to a confused user.

dave_______1’s picture

Hi Jant,

Just used this on my site and it works fine.
None of my uses wan't to see I have a Java script error, they are likely not to buy anything!
I can confirm this error on Google Chrome and Firefox.

Thanks for the help with one of the best usability modules out there.

Dave.

valderama’s picture

Status: Closed (won't fix) » Active

hmm, in version 6.x-1.7 from (2010-Feb-02) this "issue" still exists. For me this behaviour is not wanted, so i would put my vote to remove the alert in the next release. this error message helps no one, imho.

so why "won't fix"?

danielb’s picture

Status: Active » Closed (won't fix)

As I have quite clearly stated, this is a problem in Drupal. Yes, the problem is replicated in Finder, but the fix posted above will only cover a small number of use-cases where finder's own js file is used (and that only happens when one particular optional setting is turned on). It is not appropriate to introduce inconsistencies in finder's js just because we don't like how drupal works.
More info http://drupal.org/node/627834

eileenmcnaughton’s picture

Sigh, so about 5 times I have set that 'one particular optional setting ' and had it be unset again and each time I discover it I can't remember what the setting is!

So, I'm going to go with the script hacking approach

stefan81’s picture

Hi
When I hit enter before finder offered me some suggestions, I get the error.
After suggestions loaded, everything ok.

#3 helped me out. Thanks jant.