Hi there,

I get these errors when I click in the file name field and start typing on the "demo create snapshot page".

An error occurred. 
http://localhost/Drupal_Projects/drupal6/demo/autocomplete
{ "before_content_access": "before_content_access", "before_support": "before_support", "withcontentprofile": "withcontentprofile" }<div class="dev-timer"> Page execution time was 659.91 ms. </div>

An error occurred. 
http://localhost/Drupal_Projects/drupal6/demo/autocomplete
[  ]<div class="dev-timer"> Page execution time was 605.79 ms. </div>

I think the problem is coming from the devel module. I have the devel timer enabled which adds this information to all requests including ajax.

Perhaps this page might give a solution:
http://www.ixis.co.uk/blog/drupal-footer-output-ajax-calls

Hope that helps,
-Glenn

CommentFileSizeAuthor
#2 demo_json_autocomplete.patch321 byteseMPee584

Comments

sun’s picture

Status: Active » Closed (works as designed)

Devel's debug settings break most AJAX/AHAH functionality.

eMPee584’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Category: support » task
Status: Closed (works as designed) » Needs review
StatusFileSize
new321 bytes

Actually, what's needed to fix it is to replace drupal_to_js() with drupal_json() and all is good* :)
#367022: Autocomplete error - conflict with Devel module

*set's the correct js content header:
http://api.drupal.org/api/function/drupal_json/6

sun’s picture

Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to D6.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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