For some reason, when I’m going back in to the weblog entry to edit the dates, after initial input, the date fields are empty… any ideas why this is happening?
Looking in the dbase, an entry has been posted in the field id, but it’s not being parsed upon edit.
I’m using v1.04 on EE 1.6.7.
It’s set to ‘dd/mm/yy’, ‘smoothness’ and ‘show button’.
Dbase field shows:
a:3:{i:0;a:5:{i:0;s👎"";i:1;s👎"";i:4;s:17:"test pricing only";i:2;s:3:"400";i:3;s:3:"200";}i:1;a:5:{i:0;s👎"";i:1;s👎"";i:4;s:19:"test pricing only 2";i:2;s:3:"800";i:3;s:3:"500";}i:2;a:5:{i:0;s👎"";i:1;s👎"";i:4;s:19:"test pricing only 3";i:2;s:3:"900";i:3;s:3:"300";}}
Matrix weblog input is shown in attached screenshot.
Thanks, that’s the same setup I have on my current test. But in your example no datestamps are being stored in the DB. Could you select a date in any or all the fields, save the entry (don’t us Quick Save just in case that’s the issue), then look at the DB again. If it’s still blank, the issue is when it’s saving.
You should be looking at something like this in the DB:
a:3:{i:0;a:5:{i:0;s:0:1005264000;i:1;s:0:1257033600;i:4;s:17:“test pricing only”;i:2;s:3:“400”;i:3;s:3:“200”;}
i:1;a:5:{i:0;s:0:1005264000;i:1;s:0:1257033600;i:4;s:19:“test pricing only 2”;i:2;s:3:“800”;i:3;s:3:“500”;}
i:2;a:5:{i:0;s:0:1005264000;i:1;s:0:1257033600;i:4;s:19:“test pricing only 3”;i:2;s:3:“900”;i:3;s:3:“300”;}}Your DB copy is showing “” instead of the timestamp.
Edit: What version of FieldFrame are you using?
Update:
I seems there’s a problem with FFMatrix saving dates (unix timestamp) under certain conditions.
If you have “Automatically Convert High ASCII Text to Entities” set to Yes, then no date will ever be saved.
The option can be found here: Admin › Section Administration › Global Section Preferences “Automatically Convert High ASCII Text to Entities” should be set to No.
If Brandon doesn’t solve it beforehand, I’ll try and dig deeper into FFMatrix and look at solutions.
OK. I can clear the site with things as they are, but I’ve no doubt the high-ASCII issue will resurface at some point in the future, by which time it will hopefully have been sorted.
Many thanks for your help in getting to the bottom of this.
Would’ve thought Brandon would want to get this cleared or at least find out why it’s happening, in case it has implications for others developing fieldtypes. Date info is pretty important. It’s probably a data validation issue somewhere, I guess.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.