Closed (duplicate)
Project:
Juicebox HTML5 Responsive Image Galleries
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2015 at 11:37 UTC
Updated:
4 Sep 2015 at 21:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
josecarlosss commentedI used the explanation of another issue:
juicebox/includes/JuiceboxGallery.inc could be modified in such a way that things still work even if some other module injects whitespace to all Drupal output. The suggestion is to change the end of the renderXml() method on line ~182 from:
return $dom->saveXML();
to:
return $dom->saveXML($juicebox);
and worked
Comment #3
josecarlosss commentedI made the patch with changed line
Comment #5
rjacobs commentedHello,
It looks like this is a duplicate of #2312037: There is whitepspace in your Juicebox XML that causes problems, is there something you can/should do about it?.
If the code modification that you tested made the problem go away then it's almost certain that you have some other module or theme printing extra whitespace in all Drupal responses. The best solution is going to be to locate the source of that extra whitespace and remove it, as that will also help prevent many other problems with your Drupal setup that are unrelated to Juicebox.
If you have any other comment on all this I suggest posting them within #2312037: There is whitepspace in your Juicebox XML that causes problems, is there something you can/should do about it?. I'll mark this as a duplicate of that issue for housekeeping.