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.

Comments

alexander allen’s picture

Title: Using drupal_set_header() causes HTTP Error 500 (Internal Server Error). » Substitute drupal_set_header() with drupal_add_http_header()
Status: Needs work » Needs review
StatusFileSize
new1.04 KB

Attached patch.

Thank you!

alexander allen’s picture

BTW, committed to my sandbox version of views datasource: [commit #00bafd8]

pasqualle’s picture

Status: Needs review » Fixed

looks good, please commit. thanks

pasqualle’s picture

Status: Fixed » Reviewed & tested by the community

wrong status

alexander allen’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed [#00bafd8].