Custom Date Attribute not working.
Permalink
Hi can anyone help me. I am having a very odd issue when trying to use a Custom Date Attribute.
When I add a page I pick a start date using the Custom Date Attribute I have created. The page is then published fine. The issue I am having is, if I come back to the page and want to make changes to the Attributes, I can't the panel wont open. I also cannot open the page up in composer.
It just keeps loading. Pus composer just opens blank.
Whats going on?
When I add a page I pick a start date using the Custom Date Attribute I have created. The page is then published fine. The issue I am having is, if I come back to the page and want to make changes to the Attributes, I can't the panel wont open. I also cannot open the page up in composer.
It just keeps loading. Pus composer just opens blank.
Whats going on?
Hit F12 to pop up the developer tools. Then look for errors in "Console" tab or leave the "Network" tab open when you open up composer and see if you get a request which is red (meaning it got errors).
Thanks for your quick reply.
This is the error i get.
GEThttps://uat.sapphiresystems.com/index.php/ccm/system/dialogs/page/at... 500 (Internal Server Error)
Network Error: {"error":{"message":"Can't convert '31\/03\/2017, 11:30' to a \\DateTime"},"errors":["Can't convert '31\/03\/2017, 11:30' to a \\DateTime"]}
Im not sure why that is or how to fix it. any ideas?
This is the error i get.
GEThttps://uat.sapphiresystems.com/index.php/ccm/system/dialogs/page/at... 500 (Internal Server Error)
Network Error: {"error":{"message":"Can't convert '31\/03\/2017, 11:30' to a \\DateTime"},"errors":["Can't convert '31\/03\/2017, 11:30' to a \\DateTime"]}
Im not sure why that is or how to fix it. any ideas?
This is the Attribute I have created and trying to use. See attached.
I have cleared the cache many times.
I have cleared the cache many times.
Well, no idea what code you run. But the string given, can't be converted to a date time. Did you create the code yourself, did you download it, where can it be found?
No I just created in using the add Attribute within Attributes on Concrete5
Your datetime string is "31/03/2017, 11:30". Seems like that can't be converted to a proper "time". Not sure why though... Maybe someone else can help you with that.
Okay thank you for your help. Lets hope someone else will see this post and can help :)
It was a problem with the translation file, that should have been fixed for British English locales (if you download the correct translation file fromhttps://translate.concrete5.org... ). But maybe this problem exists for other languages too.
A more generic solution for this issue ishttps://github.com/concrete5/concrete5/pull/5240...
A more generic solution for this issue ishttps://github.com/concrete5/concrete5/pull/5240...