typo3 cleanup stale flexform data

raw

README.rst

When modifying TYPO3 flexform definitions by e.g. renaming fields, stale data pile up in the tt_content flexform data fields.

You can clean them up with the CLI cleaner.

raw

cleanup.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$ ./typo3/cli_dispatch.phpsh lowlevel_cleaner cleanflexform -v 0 -r
*********************************************
cleanflexform
*********************************************
cleanflexform -- Find flexform fields with unclean XML
 
Traversing page tree and finding records with FlexForm fields with XML that
could be cleaned up. This will just remove obsolete data garbage.
 
Automatic Repair:
Cleaning XML for FlexForm fields.
 
---------------------------------------------
[cleanflexform]
 [WARNING]
---------------------------------------------
Array
(
    [ddd2ee5283] => tt_content:10:pi_flexform
)
 
 
$ ./typo3/cli_dispatch.phpsh lowlevel_cleaner cleanflexform -v 0 -r --AUTOFIX
*********************************************
cleanflexform
*********************************************
cleanflexform -- Find flexform fields with unclean XML
 
Traversing page tree and finding records with FlexForm fields with XML that
could be cleaned up. This will just remove obsolete data garbage.
 
Automatic Repair:
Cleaning XML for FlexForm fields.
 
---------------------------------------------
[cleanflexform]
 [WARNING]
---------------------------------------------
Array
(
    [ddd2ee5283] => tt_content:10:pi_flexform
)
 
 
NOW Running --AUTOFIX on result. OK? (Yes/No + return): Yes
Cleaning XML in "tt_content:10:pi_flexform": DONE
 
 
$ ./typo3/cli_dispatch.phpsh lowlevel_cleaner cleanflexform -v 0 -r
*********************************************
cleanflexform
*********************************************
cleanflexform -- Find flexform fields with unclean XML
 
Traversing page tree and finding records with FlexForm fields with XML that
could be cleaned up. This will just remove obsolete data garbage.
 
Automatic Repair:
Cleaning XML for FlexForm fields.
 
---------------------------------------------
[cleanflexform]
 [WARNING]
---------------------------------------------
(None)
 
Christian Weiske Christian Weiske
owner

History