-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parseString() error #1287
Comments
Hi, thanks for getting in touch. I’m having a hard time reproducing this error. Could you please share a snippet of your feed that triggers this error and maybe a screenshot from the mapping screen that shows the options you selected for the post date? |
@i-just Below is a snippet of the XML feed showing the date layout and a screenshot of the settings. This error does not occur in Craft 3, only in Craft 4. If it makes a difference, the element type for the feed is Commerce Product. Let me know if there's any additional info I can provide to help. <?xml version="1.0" encoding="UTF-8"?>
<products>
<product>
<Product_Name___EN><![CDATA[Nitrile Mechanic's Gloves]]></Product_Name___EN>
<Post_Date><![CDATA[2017-11-17 13:49]]></Post_Date>
...
</product>
</products> |
Perfect, thank you. That helped me reproduce the issue. PR has been raised. |
One more thing - once released, you will need to re-save your feed so that the date fields get the formatting option (currently missing from the mapping screen for Commerce Products). |
Fixed in #1296 for the next v4 and v5 releases. |
We just released Feed Me 4.6.3. and 5.1.3 with this fix. |
Description
Running into an error when trying to import a string representation of a date to an element's Post Date. Date strings follow the format
2023-04-18 10:00:00
. Getting the following error and stack trace:Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: