Sorry if this is a duplicate issue. I'm getting a pop up dialog box reporting an AJAX error when using autocomplete, but HTTP status code is 200.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://******/taxonomy/autocomplete/field_variety
StatusText: OK
ResponseText: {"Pear":"Pear"}

I created a new vocabulary called Produce. In it I have...
-Fruit
--Pear
-Veggies
--Radish

Then I set up a new content type also called Produce. I added a Term Reference field called "Variety" using the Produce vocabulary. It uses the autocomplete widget. Then I created new Produce content called "D'Anjou". When I start typing a term and let autocomplete do its work, the error-that-is-not-an-error pops up.

Comments

Sborsody’s picture

Project: Drupal core » Devel
Version: 7.0-alpha1 » 7.x-1.x-dev
Component: other » devel

This looks like a problem with the Devel module (7.x-1.x-dev), which is appending a div onto the end of the JSON response. When I disable the module, the autocomplete error-that-is-not-an-error does not appear.

GET /taxonomy/autocomplete/field_variety/pear

Results in:

{"Pear":"Pear"}<div class="dev-query"></div>
moshe weitzman’s picture

Status: Active » Fixed

was fixed a day or two ago.

Sborsody’s picture

How funny. I must have picked up the last dev build right before that fix.

Status: Fixed » Closed (fixed)

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

Yorgg’s picture

I wasn't using taxonomy and I have the same error on a clean D7 Beta 2 while generating 5000 nodes
This happened in about 3 minutes of intensive CPU/HD time . I am curious how this issue will be viewed. Once this has been fixed, I'll be looking at checking in admin/content.

It didn't create a single node.

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /d7b2/batch?render=overlay&id=2&op=do StatusText: OK ResponseText: Fatal error: Cannot access empty property in /var/www/d7b2/modules/field/field.attach.inc on line 198

Where should I post this issue? Drupal 7 Beta 2?

vikastyagi87’s picture

Priority: Normal » Critical
bryancasler’s picture

Ran into the same error myself

Csabbencs’s picture

I have the same issue when writing into an autocomplete field. (user reference)
It's just came from nothing.
The ResponseText of the AJAX HTTP error 200 message contains the current webpage (header, menus, body, comments, etc... and stuff like @import url("http://localhost/modules/system/system.base.css?lfqo7i"); ) in plain text.
(Although, devel module was active before, I have the same error after disabling and deleting it.)

sammyframson’s picture

I was running into the same issue when trying to manage display of fields within my content types. It doesn't seem to be content type specific. Any attempt to change the display of fields within a content type initiated this error and when I tried to save changes, nothing was changed. My site was at a standstill and then I tried disabling Firebug for Drupal and I was able to proceed. Thought that additional info may help...

ytsurk’s picture

subscribe

gfxguru’s picture

subscribe... same issue here Drupal 7 fresh install

yugongtian’s picture

alpha4 same

Geijutsuka’s picture

I think this might be a Drupal 7 core issue because I don't even have the Devel module installed and I keep running into this issue when I want to change an argument in an existing view or when I want to change the display settings in a content type's fields (same as with sammyframson in comment #9).

Subscribe.

vkarmo’s picture

Status: Closed (fixed) » Active

I'm having the same problem in Drupal 7.

I had Devel installed but I uninstalled it, yet I'm still getting AJAX errors.

What is the actual solution to this?

cjwest’s picture

I was getting the same error (AJAX HTTP error occurred. HTTP Result Code: 200) for Drupal 7 when I tried to
1) add content to a panel (Panels)
2) edit a view (Views)
It cleared up after I disabled the Drupal for Firebug module.

dstacey’s picture

Drupal 7.0, 2011-01-05 - Same
The fix for me was turning off "Taxonomy translation" - 7.x-1.0-beta2. Under Multilingual in Modules. My error happened when trying to autocomplete a taxonomy CCK field. I also tried the dev version of Ctools and turning off Devel but those weren't the issue.

alex737’s picture

I was getting the same error (AJAX HTTP error occurred. HTTP Result Code: 200) for Drupal 7 when I tried to
run core module testing in localize drupal-7 (Russian), module simpletest. Maybe that is core fatal error of
locale module!

andrebonfanti’s picture

I have not Devel module installed but I am getting a similar error too, working with content type field display (but not with views). It happens when I try to click the field gear icon in the "manage display" form of my custom content type. I'm trying to configure an image field to be a "thumbnail" in teaser display, while the default is "original". The error is:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /?q=system/ajax
StatusText: OK
ResponseText:
Fatal error: Function name must be a string in /home/(my domain)/public_html/modules/field_ui/field_ui.admin.inc on line 143

The error happens even if I try to drag field to hidden section.
My content type has only the default "body" field and an "image" field.
I have installed other modules which provide fields ("term reference", "node reference"), but the error was there before. I changed the admin theme from Seven to Bartik but the error remains.

In my logs I find these two errors:

Error 1:

Location http://(my domain)/?q=system/ajax
Message Notice: Undefined index: #value in field_ui_table_pre_render() (line 134 of /home/(my domain)/public_html/modules/field_ui/field_ui.admin.inc)

Error 2:

Location http://(my domain)/?q=system/ajax
Message Notice: Undefined index: #region_callback in field_ui_table_pre_render() (line 142 of /home/(my domain)/public_html/modules/field_ui/field_ui.admin.inc)



I duplicate my issue here: http://drupal.org/node/1075482.
In IE7 the error disappear and I can change display properties.

andrebonfanti’s picture

update: my error has gone for the moment in the content type "manage display" page.

I do not remember the steps I took. I managed to move fields by toggling the "show/hide row weight" option at the top and moving by editing weights (the toggle hides the drag-n-drop handles, so I think the page disable ajax, but I'm not sure).

I disabled the Dhtml menu module, too, which I used to avoid page reload. I'm not sure this caused the issue because a similar error appears when I try to fill the autocomplete field of the state/province Location module.

theliondog’s picture

Assigned: Unassigned » theliondog
Priority: Critical » Major

Hi folks
I'm new to Drupal and hit the same AXAJ 200 error problem in trying to edit "Views" default settings and which I fixed by disabling Drupal for Firebug - thanks Sammy and CJ!
BTW, through the process of elimination, I found the administration navigation and backend work flow was twice as fast using the same theme for admin and default.
As an aside, I moved to Drupal from WordPress for the better taxonomy (and am very happy with this decision), but now have issues modifying themes as Firebug seems problematic???
I used to use Dreamweaver CS5 to edit Wordpress, but have a few issues with Drupal showing dynamically related files .. In wordpress this was usually due to WP "definition of permalinks".
Apologies for heading outside the context of this thread, but if anyone can direct me in another direction for a fix on this...it would be greatly appreciated!
Cheers
TLD

salvis’s picture

Project: Devel » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: devel » ajax system
Assigned: theliondog » Unassigned

AFAICS this is not a Devel issue, nor is it related to any other contrib in particular.

Can the core guys figure out where it belongs?

@theliondog: Don't assign yourself unless you intend to work on an issue.

Sborsody’s picture

It *was* a Devel module issue when I opened it and that was fixed. I think others may be experiencing the same error with a different root cause and landing here.

rfay’s picture

Project: Drupal core » Devel
Version: 7.x-dev » 7.x-1.x-dev
Component: ajax system » devel
Status: Active » Fixed

Sorry, please don't hijack this issue, which was resolved, for other issues. We'll pay attention to other AJAX issues you may open, so please give complete information.

And don't lump them together in one issue just because you get an AJAX HTTP Error. That has no meaning. Explain carefully what you did to create the error, what contrib modules might have contributed to it, etc.

Marking this fixed because it was. New issues to pursue it.

Thanks.

Sborsody’s picture

Title: An AJAX HTTP error occurred. HTTP Result Code: 200 » Div appended onto end of JSON response [SOLVED]

Perhaps an issue title change is in order. New AJAX http error 200 problems should have new issues opened up against the piece of code causing the error.

Status: Fixed » Closed (fixed)

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

sashkernel’s picture

I've got exact same issue as #18.
"An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /?q=system/ajax
StatusText: OK
ResponseText:
Fatal error: Function name must be a string in /home/(my domain)/public_html/modules/field_ui/field_ui.admin.inc on line 143"

I used to be able to create content normally. About a week since I created last content type, I got this issue. I think I also got "content Access" module installed in between.

The strange thing, I have no problem with editing field display for other content types. Only with the one I just created.

Sborsody’s picture

You get AJAX HTTP error code: 200 anytime the response is not valid JSON format. The ResponseText shows that it has nothing to do with this Devel module issue. It could be Content Access, it could be some other module that modifies output, or it could be your field's code if the field is a custom field provided by a module.

geek-merlin’s picture

rol’s picture

suscribing, i get SAME ERROR when trying to ADD CONTENT to a PANEL with both DEVEL and Firebug for Drupal active.

AFTER DISABLING those modules, i could add content to the panel, but when i try to add ACCES RULES, i get again same ERROR.

mhamed’s picture

hello all
this error of ajax happens to me with the modules installations from time to time i got this
but this time i want to embed the google map with the module: location map module i ve go this serial of errors:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: .../authorize.php?batch=1&render=overlay&id=24&op=do StatusText: OK ResponseText: Update manager | WordToSay @import url(".../modules/system/system.base.css?lqlsbf"); @import url("..../modules/system/system.admin.css?lqlsbf"); @import url("..../modules/system/system.menus.css?lqlsbf"); @import url("..../modules/system/system.messages.css?lqlsbf"); @import url("..../modules/system/system.theme.css?lqlsbf"); @import url(".../modules/system/system.maintenance.css?lqlsbf"); @import url("..../themes/seven/reset.css?lqlsbf"); @import url("..../themes/seven/style.css?lqlsbf"); Update manager Status message Installation was completed successfully. locationmapInstalled locationmap successfully Next stepsEnable newly added modules Administration pages

is it a core problem or just an ajax bug ?anyone has an issue ?
athanks

salvis’s picture

Please leave this issue alone!!!

Just because you get an "AJAX" error and HTTP code 200 (which means 'success' BTW, as far as HTTP is concerned) does NOT mean you should append to this issue.