RDFa setting breaks json output of some modules
scor - May 29, 2009 - 09:10
| Project: | Resource Description Framework (RDF) |
| Version: | 6.x-1.x-dev |
| Component: | Settings |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When uploading a file with the core upload module, the error An Http error 0 occured occurs. Browsing to upload/js returns:
{ "status": true, "data": "\x3cdiv class=\"messages error\"\x3e\nValidation error, please try again. If this error persists, please contact the site administrator.\x3c/div\x3e\n" }
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">which shows here the RDFa markup being added to the json response.
Turning off the setting Output an XHTML+RDFa DOCTYPE solves the problem.

#1
marked #478884: Administration menu disappears as duplicate.
#2
I can confirm the problem.
Maybe it would be better to only use a replace strategy in _rdf_ob_handler() than the current remove and insert approach?
#3
this might be related but this doesn't work
test.php
<?phprequire_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
echo "Test";
exit;
?>
Test is not outputted.
#4
above error happens when "Output an XHTML+RDFa DOCTYPE: " is enabled.
#5
This is also breaking the installation of Open Atrium. I am not sure it is for the same reason but it might.