Bug #6620

./flow3 cache flush throws Exception in "..../Cache/Backend/FileBackend.php line 197"

Added by Thomas Fritz over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-02-26
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Cache
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 8
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

developer@wda ~ $ ./flow3 cache flush

Uncaught Exception in FLOW3 #1: Warning: Invalid argument supplied for foreach() in /home/developer/vhosts/flow3/www/Packages/Framework/FLOW3/Classes/Cache/Backend/FileBackend.php line 197
thrown in file Packages/Framework/FLOW3/Classes/Error/ErrorHandler.php
in line 82

bug_6620.diff Magnifier (761 Bytes) Thomas Fritz, 2010-02-26 16:24

Associated revisions

Revision 84315748
Added by Karsten Dambekalns over 5 years ago

[+BUGFIX] FLOW3 (Cache): findTagFilesByEntry() now returns an array even if glob() fails. Fixes #6620.

History

#1 Updated by Thomas Fritz over 5 years ago

#2 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns
  • Priority changed from Must have to Should have
  • Target version set to 1.0 alpha 8

Well, glob() usually returns an array, so it seems something with your cache's file structure went wrong. Anyway, I'd rather fix this so that findTagFilesByEntry() always returns an array, even if glob() fails.

#3 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3906.

Also available in: Atom PDF