Closed (fixed)
Project:
Views Datasource
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
27 Apr 2012 at 17:44 UTC
Updated:
1 May 2012 at 15:53 UTC
Jump to comment: Most recent file
The file views-views-json-style-exhibit.tpl.php is using drupal_set_header(), a Drupal 6-only function. Using a function that is not defined in Drupal 7 causes this Internal Server Error. Substituting the D6-only function with drupal_add_http_header() solves the issue.
I did a search for drupal_set_header() in the views_datasource module, and apparently this is the only instance where the D6 function was being used.
Will attach patch next.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_datasource-drupal_set_header-1551016.patch | 1.04 KB | alexander allen |
| HTTP Error 500 on views_datasource JSON | 48.42 KB | alexander allen |
Comments
Comment #1
alexander allen commentedAttached patch.
Thank you!
Comment #2
alexander allen commentedBTW, committed to my sandbox version of views datasource: [commit #00bafd8]
Comment #3
pasquallelooks good, please commit. thanks
Comment #4
pasquallewrong status
Comment #5
alexander allen commentedCommitted [#00bafd8].