I've been working through the arduous process of upgrading an EE site from 1.6.8 to 2.1.3. Before making the EE version upgrade, I went ahead and upgraded Fieldframe 1.x to Matrix 2.1.2 in EE 1.6.8. Then, I updated EE to 2.1.3. I installed Matrix in the EE 2.1.3 control panel, but it did not automatically alter my fieldtypes. In other words ff_select did not become pt_dropdown, etc.
I was able to go into my database and manually alter the fieldtypes, and this fixed nearly everything. For some reason, neither ff_checkbox nor ff_checkbox_group translate to pt_checkboxes. If I open up an entry to edit it that I know has checkboxes selected, they do not appear selected on the edit entry screen. But if I look in the database field, I can see that there is checkbox data there.
For example, I have a list of checkbox options:
Hard Hat
Work Boots
Safety Glasses
Harness, Respirator
The data in the database looks like this when the first three are checked:
a:3:{i:0;s:8:"Hard Hat";i:1;s:10:"Work Boots";i:2;s:14:"Safety Glasses";}
If I open up an entry and check those three boxes and re-save, it alters the data in the database field to simply list the words on separate lines:
Hard Hat
Work Boots
Safety Glasses
Thus, it seems that ff_checkbox_group encoded the data differently than pt_checkboxes does.
Is there a way to manually prompt Matrix to process the fieldframe/matrix fields and update them to the proper current encoding? Or maybe I could run something through SQL to clear out the extra FF code.
-
Hey there,
Take it you were using an older version of FieldFrame than 1.4.1. I just updated P&T Field Pack on GitHub to account for that possibility. So, download the new code from there, and after uploading your files, open up system/expressionengine/third_part/pt_field_pack/pt_fieldtype.php, and set that "$unserialize_data" var at the top to "TRUE".
Let me know if that fixes this! -
-
I'm having a similar issue. I just upgraded an old site from 1.6.7 to the latest build. I installed all of the field types and selected P&T Checkboxes for the fields I was using FF Checkboxes for prior. Am I stuck going through and redoing all of the fields in the Field Options to piece this back together or can I do anything with the serialized data in the FF_Settings column in the table?
Hope that makes sense. -
-
nevermind, i pieced this all together and got it working for the most part. Great job on your backwards compatibility! Glad we have developers like you!
-
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE

