Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#15 | 476280.patch | 561 bytes | vkareh |
#14 | 476280.patch | 476 bytes | vkareh |
Comments
Comment #1
scor CreditAttribution: scor commentedmarked #478884: Administration menu disappears as duplicate.
Comment #2
digi24 CreditAttribution: digi24 commentedI 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?
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedthis might be related but this doesn't work
test.php
Test is not outputted.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedabove error happens when "Output an XHTML+RDFa DOCTYPE: " is enabled.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis is also breaking the installation of Open Atrium. I am not sure it is for the same reason but it might.
Comment #6
lelizondo CreditAttribution: lelizondo commentedThe issue #434394: 'HTTP error 0 occurred' on image upload might be related to this since fieldfield breaks when RDFa is enabled.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedEnabling RDFa is also breaking the AHAH functionality of CCK's 'add more items' button for me, at least with the modules that I have enabled.
I have added this to the title of the issue so people may find it more easily.
Comment #8
plasticlax CreditAttribution: plasticlax commentedwhere is this setting?
Turning off the setting Output an XHTML+RDFa DOCTYPE solves the problem.
Comment #9
scor CreditAttribution: scor commentedbrowse to
admin/settings/rdf
(Administer › Site configuration > RDF settings) and open the RDFa fieldset.Comment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWhen I enable rdf, I get WSOD
Fatal error: Call to undefined function ctools_include() in /sites/all/modules/contrib/purl/purl.module on line 631
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedSocialNicheGuru, that is probably a different issue than the one here. This one is specifically related to javascript functionality and the Output RDFa setting of RDF module.
Comment #12
lelizondo CreditAttribution: lelizondo commented@SocialNicheGuro you probably updated to the latest version of Purl and didn't read the instructions, Purl is now dependent from Ctools, and you probably don't have it installed. As @linclark said, that's a different issue than the one here.
Comment #13
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedno, i have ctools installed and it works fine. It only gives me WSOD when I install RDF.
edit- i get no WSOD with an upgrade
Comment #14
vkareh CreditAttribution: vkareh commentedI am using RDFa with FileField and was having the same problem. I created a small patch that should fix it for the FileField and the Add another item buttons.
After applying the patch, try enabling the Output an XHTML+RDFa DOCTYPE.
Comment #15
vkareh CreditAttribution: vkareh commentedI added an extra argument condition
arg(1) != 'js'
, for the coreupload.module
, which has a menu callback forupload/js
.Comment #16
geerlingguy CreditAttribution: geerlingguy commentedSimply confirming this bug – I get an error on CCK 'Add another item' button (among other things) after enabling RDFa.
Comment #17
jyg CreditAttribution: jyg commentedAlso confirming Filefield + RDF issue. With diff version of jQuery it fails differently, but still fails. Broken JSON data seems to be the problem
Comment #18
vkareh CreditAttribution: vkareh commentedDoes it fail with the patch in #15?
Comment #19
jkoprax CreditAttribution: jkoprax commented@vkareh: tnx for the patch!
solved the problem and saved my day :)
Comment #20
joeredhat-at-yahoo.com CreditAttribution: joeredhat-at-yahoo.com commentedThe patch in comment 15 definitely fixes the problem, and makes perfect sense -- there's no need to use output buffering to add the RDFa headers on a javascript request. (For the record, this is *one* of the many causes of the infamous HTTP error 0!)
Any reason this patch can't be incorporated into RDF?
Comment #21
smustgrave CreditAttribution: smustgrave at Mobomo commented