Bug #51800
closed6.1.4 Update wizard fails at step "Migrate all file links of RTE-enabled fields to FAL" for pdf documents
Added by Johannes Engel about 11 years ago. Updated about 6 years ago.
100%
Description
Update wizard 6.1.3 -> 6.1.4 fails for all pdf documents with an error message like this:
fileadmin/user_files/XYZ.pdf not found in referenced element (uid: 42 of table tt_content in field bodytext). Reference index was probably out of date.
Updated by Ernesto Baschny about 11 years ago
- Status changed from New to Needs Feedback
- Assignee deleted (
Helmut Hummel) - Target version deleted (
next-patchlevel) - Is Regression set to No
The Upgrade Wizard requires an up-to-date refindex, so before upgrading you need to go to DB Tools and "Check Reference Index".
Note that you don't need to run the Upgrade Wizard when you are updating a patchlevel version (6.1.3 -> 6.1.4), only if you are migrating from a minor version (6.0 -> 6.1 or 4.7 -> 6.2).
Can you please re-check if this is really a problem and give us more information of your scenario in case you think it is?
Updated by Johannes Engel about 11 years ago
The reference index was checked before, result was:
******************************************* Reference Index being TESTED (nothing written, use "-e" to update) ******************************************* Record sys_file:404 had 1 added indexes and 0 deleted indexes Record sys_file:405 had 1 added indexes and 0 deleted indexes Record tt_content:267 had 1 added indexes and 1 deleted indexes Record tt_content:270 had 1 added indexes and 1 deleted indexes Record tt_content:271 had 1 added indexes and 1 deleted indexes Record tt_content:276 had 1 added indexes and 1 deleted indexes Record tt_content:277 had 1 added indexes and 1 deleted indexes Record tt_content:279 had 1 added indexes and 1 deleted indexes Record tt_content:281 had 1 added indexes and 1 deleted indexes 45993 records from 33 tables were checked/updated. Updates: 9
I did not think so far that this was the intended behaviour, thus reported it in order to get it fixed.
Updated by Markus Klein almost 11 years ago
- Status changed from Needs Feedback to New
Updated by Satish Maurya over 10 years ago
- Assignee set to Markus Klein
Hi,
I am getting same issue after upgrading from 4.7 to 6.1.7. Is there any solution to fix it?
Thanks
Johannes Engel wrote:
The reference index was checked before, result was:
[...]
I did not think so far that this was the intended behaviour, thus reported it in order to get it fixed.
Updated by Markus Klein over 10 years ago
- Status changed from New to Needs Feedback
Updated by Anonymous over 10 years ago
I had the same issue upgrading from 6.0 to 6.1
I found, that the script is doing a preg_match with $</link ... in line 211 of typo3/sysext/install/Classes/Updates/RteFileLinksUpdateWizard.php
$regularExpression = '$<(link ' . $reference['ref_string'] . ').*>$';
In the database, where it fails to update, the entry had an uppercase LINK, so the regular expression failed.
Changing line 211 to an case insensitive search
$regularExpression = '$<(link ' . $reference['ref_string'] . ').*>$i';
resolved the problem for over 94 entries which were all like this.
I hope this helps.
Oli
Updated by Tizian Schmidlin over 10 years ago
The final solution to this issue should look like this:
$regularExpression = '$<(link ' . str_replace('%2F','/',urlencode($reference['ref_string'])) . ').*>$';
Updated by Markus Klein over 10 years ago
Tizian, but your solution is not case insensitive anymore.
Updated by Marcel Gaetje over 10 years ago
I had the same Issue with upgrading from 4.5.32 to 6.2.3.
Setting the search in line 207 in RteFileLinksUpdateWizard.php to case insensitive worked for me.
old code:$regularExpression = '$<(link ' . str_replace(' ', '%20', $reference['ref_string']) . ').*>$';
new code:$regularExpression = '$<(link ' . str_replace(' ', '%20', $reference['ref_string']) . ').*>$i';
Updated by Gerrit Code Review over 10 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30820
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30882
Updated by Markus Klein over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 08ab8684ce8cd38f2369a5efd697d0dce66efec3.