I have Upgraded typo3 from 9.5.5 to 10.4.19 and DCE from 2.03.x to 2.6.2
After the DCE upgrade, the Image upload field configuration seems wrongly changed (https://nimb.ws/slTyH8). The images are not in those fields and in Frontend the images are present which is the cache.
I have tried changing the old configuration of DCE to the new one. The field is okay now, But the website is refreshed and old images are gone.
I have more than 200 pages. So impossible to reupload. I have uploaded my backup and now I am at the previous state.
Checked the install tool, Unfortunately, there are no Upgrade wizards present for DCE. How can I make it correct without losing images?
Help me!
It is the change from old image handling to FAL-based referencing images. In former versions of DCE, the filename has been saved in
tt_content.pi_flexform
and there was a predefined/configured path, where this file should be searched. For some time, in TYPO3 files are handled via FAL and so as a relation to an entry of tablesys_file
...A few weeks ago, a migrated some DCE elements for a customer. Instead of programming an upgrade-wizard, some lines of PHP were used.
Step 1: Export relevant data
Export the 'uid' of your content elements and filename within your DCE.
For the DCE with UID=2 whre the files field is called "image" this can be done via:
Export the result as CSV.
Step 2: Create releation in
sys_file_reference
and updatett_content
Now we have to manage the changes to the database:
sys_file
-entries (in form ofsys_file_reference
-records)pi_flexform
of existing DCE content elementsFor these steps, I generated SQL-Queries with a PHP function:
Now, we need to combine the CSV with the code:
This will not change anything, but only print out the necessary SQL-queries, which can be reviewed, copied and fired.