Hello I was hoping someone might be able to help me figure out the following issue...

When using Firefox, we want the user to enter a school value into a cck autocomplete field when the user registers an account via the latest content profile module. When the user starts to type a value into the field, the circle begins to spin and then a dialog box that displays the following error:

An http error 0 occurred
http://site/autocomplete_widgets/profile/field_school

The error does not occur in IE 7 or 8...

However I use the same fields in a different custom content type created via cck without a problem.

I do have Secure Pages installed and tried the work around suggested in an earlier post by including */autocomplete_widgets/*

Any suggestions..
G

Comments

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

I do not use Secure Pages module myself, so I cannot really tell. Maybe the exception to that module should be entered as autocomplete_widgets/* (without the asterisk and slash as prefix) ?

Anyway, please try testing on a site without Secure Pages to see if it works. This should help isolate the problem. I think it is not related to Content Profile.

gsvitak’s picture

Hi Markus

Thanks for responding. I tried to disable secure pages and the same error occurred. Any other suggestions for information I could provide to help diagnose the problem?

Thanks
G

markus_petrux’s picture

hmm... still hard to tell. Autocomplete form elements are implemented by Drupal core itself. This is a regular text element with a bit of javascript code that captures a few events, performs AJAX requests and updates the form element when you choose an option from the list of candidates. This is Drupal core stuff, so it should work on any form. If it doesn't, I think it could be because:

a) Something on the page breaks the autocomplete behavior implemented by Drupal core.
b) The AJAX request fails to return a valid response.

The later can easily be checked by entering the URL in the browser:

http://example.com/autocomplete_widgets/profile/field_school/any string here

As a result, you should be able to see a JSON structure, which is just a javascript object, with properties and values, that are the candidates that would be displayed at the bottom of the autocomplete form element. Note that this test should be performed by the same user that would have seen the "http error 0" reported.

If works, then try to explore a)... maybe there's some javascript on the page that breaks the autocomplete, or who knows... the fact that it seems to work on IE7 and 8 could be an indication that the problem is of this kind. However, it probably is caused by another module because the autocomplete behavior works in other situations. So, try looking at the javascript included in the page, and then try disabling those implemented by other modules one by one until you find the culprit.

gsvitak’s picture

Hi Markus

Thank you for the suggestion. I changed the theme to garland and everything works fine. It must be a javascript error message.

Thanks,
G

markus_petrux’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

Aha! Good to know.

Status: Fixed » Closed (fixed)

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

WiredEscape’s picture

see http://drupal.org/node/801646#comment-3657036

#base_url in settings.php seems to be cause.