Autocomplete doesn't seem to be working. When I try to write a new message, and type the recipients name which I know is there, it seems to be trying to list users as the widget is spinning but then gives an Http Error:0
"An HTTP error 0 occurred.
http://example.com/messages/user-name-autocomplete"

Comments

ctello’s picture

Priority: Normal » Critical

I get the same nasty error.

In a production environment a regular user won't even try to write a private message when He/She sees this message...

...So this error message mainly shuts down the private message capability in a production environment.

I hope someone finds a way to solve this.

ctello’s picture

I found the solution to this.

Go and edit your settings.php file and in the base URL remove the www from http://www.yoursitename.com

That small fix got it working for me!

Regards,

dafreak’s picture

I tried but this did not resolve the issue for me. Does anyone know why the AJAX is getting HTTP error 0?
Please help.

soundboy89’s picture

I started getting this error all of a sudden, and then I realized it was when I included a redirect in my .htaccess from my non-www domain to the canonical www-domain. So just like ctello mentioned, most of the time this error is caused by a mismatch between the base_url in the settings.php and the actual URL of the site. Make sure they are the same.

berdir’s picture

Priority: Critical » Normal
ptmkenny’s picture

Status: Active » Closed (cannot reproduce)

As per #4, this appears to be caused by incorrect .htaccess configuration, which is outside the scope of Privatemsg.