Bug #55614
closedFAL: FileIndexingTask fails to execute in TYPO3 6.2 (current master)
100%
Description
I've got 2 TYPO3 6.2 installations which are pretty new and clean. I didn't delete any file mounts . I've uploaded some images via the filelist module (which was a problem discussed here). All uploaded images are listed by the filelist module. When using the page module and editing a tt_content element I don't see the uploaded images (or just one out of four...).
So I remembered the problem discussed in #44105 and created a new FileIndexingTask. When starting the scheduler task I get the following error message:
Die Ausführung von Task "Datei-Abstraktionsschicht: Indizierungs-Auftrag (scheduler)" ist fehlgeschlagen mit folgender Meldung: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 2
After that I thought I should provide an error message in English so I switched the TYPO3 backend to English. The error message stays the same but there's something slightly different:
Execution of task "[OBSOLETE] File Abstraction Layer: Indexing job (scheduler)" failed with the following message: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 2
As you can see the task is marked as "OBSOLETE". So I've got 2 problems:
- My uploaded files are not shown when editing tt_content (I didn't test other content tables).
- The task seems to be obsolete and is not working as expected.
BTW. I'm using the current master as of today.
Files
Updated by Ralf Zimmermann over 10 years ago
- File patch.diff patch.diff added
The problem is located the FileExtensionFilter
This filter check a lower case file extension array (jpg, gif...) against the extension of the files located in the given folder (pathinfo($fileName, PATHINFO_EXTENSION)).
If there are files with uppercase extension like JPG, the filter won't match and return FALSE. The files are not listed.
It works with the attached patch, but i am not sure about side effects
Updated by TRITUM GmbH over 10 years ago
This was already a problem and fixed in #50568. The code has changed on 6.2 and now the problem occurs again.
Updated by Ralf Zimmermann over 10 years ago
The strtolower fix in #50568 was removed in revision http://forge.typo3.org/projects/typo3cms-core/repository/revisions/f83eddd5027b74d7f4d28a845521bff3b2dd603d (2014-01-15)
Updated by Frans Saris over 10 years ago
- Status changed from New to Accepted
Could you push a patch that adds the strtolower again?
Gr. Frans
Updated by Gerrit Code Review over 10 years ago
- Status changed from Accepted 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/27359
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27359
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27359
Updated by Ralf Zimmermann over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b890e46858d5ec51ea764cca8a754dd88a36a5ff.
Updated by Johannes Busch over 10 years ago
It appears to me that this bug is nocht 100% resolved. It also throws this exeption when my filenames have capital letters for example My-Uplaod.jpg .
I think the patch just resovles the issus with the file extensions.
Updated by Renzo Bauen over 10 years ago
I do not agree that this Issue is solved! (TYPO3 6.2.0 from download source on typo3.org).
If you read the given error carefully, then you can see, that it states, that the FileIndexingTask has failed.
I looked at typo3/sysext/scheduler/Classes/Task/FileIndexingTask.php
Line 91ff:
/**
* Function execute from the Scheduler
*
* @return boolean TRUE on successful execution, FALSE on error
*/
public function execute() {
return FALSE;
}
If you set "return TRUE" the FileIndexingTask doesn't throw any error anymore!
But, with this code, i am not sure, if it does anything at all??? Is there really any index updated by this scheduler task? Or its just a placebo for the user?
Best Regards
Renzo
Updated by Frans Saris over 10 years ago
I think you are looking at the deprecated scheduler task.
Gr. Frans
Updated by Renzo Bauen over 10 years ago
Ok, in Germen, this task is not marked as obsolet!
Thanks for your hint.
Best Regard, Renzo
Updated by Caspar Wahl-vom Bruch over 10 years ago
I got this error today. But I used this updated script. There seems to be a new reason. The Issue isn't solved, indeed.
Updated by Frans Saris over 10 years ago
Are you dure you run the new scheduler job?
There are now 3 FAL jobs, were 1 is obsolute.
Gr. Frans
Updated by Kurt Gusbeth over 7 years ago
I get this error with TYPO3 6.2.29:
Die Ausführung von Task "Datei-Abstraktionsschicht: Indizierungs-Auftrag (scheduler)" ist fehlgeschlagen mit folgender Meldung: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 6
Which sheduler job should be runned before?
Updated by Frans Saris over 7 years ago
Don't think it a different task needs to run. But isn't there any more info about why the task has failed? Maybe in the sys_log. Or else enable debug in install tool and run the task again
Updated by Benni Mack almost 6 years ago
- Status changed from Resolved to Closed