Closed (fixed)
Project:
Panels
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2012 at 15:57 UTC
Updated:
16 Jun 2014 at 16:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidHere's the the full export of $variables after template_process_panels_add_content_modal() has run: https://gist.github.com/b94af0642fb40614e3e9. Even if I add $vars['columns'] = array() to the begginning of template_process_panels_add_content_modal() we still get the AJAX error.
Comment #2
dave reidWell I'm at a loss here. :/
Comment #3
xeniak commentedI'm having the same problem.
Comment #4
dave reidSo after some more debugging it appears that the XHProf module doesn't disable it's output on ajax callbacks.
Comment #5
dave reidSeems that this problem resides in Panels. Other page callbacks that use 'ajax_deliver' as the 'deliver callback' in their respective hook_menu() such as file/ajax do not have XHProf output in their JSON output.
Comment #6
dave reidConfirmed that a Panel AJAX response does not return the correct Content-Type header for JSON content (
application/json; charset=utf-8) and therefore confuses modules like XHProf when it returns the incorrect Content-Type header of text/html.Comment #7
dave reidPatch against 7.x-3.2. Let's see if it applies against 7.x-3.x.
Comment #8
dave reidpanels_ajax_theme_callback() is unnecessary now too.
Comment #9
merlinofchaos commentedCommitted and pushed.
It's worth noting that CTools probably also suffers from this problem, with a great deal of ajax_render() calls of its own.
Comment #10
merlinofchaos commentedCreated a CTools issue: #1710710: ajax_render should not be used; ajax_deliver should be used instead.