r3v3rb

lerni, which problem the extra spaces in the xml? maybe I'll take a look but afaik the site is in Live mode so source_file_comments shouldn't be getting output

r3v3rb

also, yet again getting SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data when saving and closing any records in the admin

r3v3rb
  1. return $o->customise(['url' => $base_url, 'order' => $o])->renderWith('PostXML');
is the call in PHP
r3v3rb
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <orders>
  3. <% loop $order %>
  4. <order>
is the xml
r3v3rb

Chrome returns

  1. This page contains the following errors:
  2. error on line 1 at column 10: XML declaration allowed only at the start of the document
  3. Below is a rendering of the page up to the first error.

r3v3rb

Anyone have a reason why this would happen

  1. XML Parsing Error: XML or text declaration not at start of entity
  2. Line Number 1, Column 5:
  3. <?xml version="1.0" encoding="UTF-8"?>
The XML template used in customise does not have any spaces before the leading <? but when viewed in FireFox and Chrome it does