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
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

scor - June 2, 2009 - 12:28
Title:RDFa settings breaks the upload module» RDFa setting breaks json output of some modules

marked #478884: Administration menu disappears as duplicate.

#2

digi24 - July 27, 2009 - 19:47

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

mikeytown2 - August 18, 2009 - 03:15

this might be related but this doesn't work

test.php

<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
echo
"Test";
exit;
?>

Test is not outputted.

#4

mikeytown2 - August 18, 2009 - 06:25

above error happens when "Output an XHTML+RDFa DOCTYPE: " is enabled.

#5

SocialNicheGuru - October 17, 2009 - 23:32

This is also breaking the installation of Open Atrium. I am not sure it is for the same reason but it might.

 
 

Drupal is a registered trademark of Dries Buytaert.