Erraneous XML from datasource
This is an open discussion with 4 replies, filed under General.
Search
It looks like the value of the file type
attribute is getting double wrapped in double quotes. What version of Symphony are you using?
If you are using the latest release and the field is a default upload field, I believe the code that adds the type
attribute is in /symphony/lib/toolkit/fields/field.upload.php
.
I'm using Symphony 2.1.2. I'd prefer not to upgrade, unless it would be a seamless transition. Do you know if there is any solution for 2.1 specifically?
UPDATE: I commented out that line and it works fine! The type attributes aren't entirely necessary, correct?
I don't see this problem with the type attribute on my websites. Can you tell me when you downloaded 2.1.2?
I commented out that line and it works fine! The type attributes aren't entirely necessary, correct?
If you're not using that attribute, then you shouldn't need to worry. BUT, this will affect every data source where this field type is used.
More importantly, I'd like to know why that's happening.
Create an account or sign in to comment.
I'm getting some weird XML back from a datasource, and it's throwing a lot of errors. If you look at the "type" attribute in entry/file you will see what I am referring to, the forward slash and the quotes closing early.
How can I fix this? I need support asap, as the site is already live.