Closed kariemil closed 9 years ago
It went away on its own, so it's probably not a huge issue but it might still be worth checking into?
$old_caches
was not an array, thus the warning.
On 06 Oct 2014, at 16:04, Kári Emil Helgason notifications@github.com wrote:
After updating a page, the index is now displaying:
Warning: Invalid argument supplied for foreach() in /var/www/virtual/kaffivagninn.is/htdocs/app/cache.inc.php on line 36
at the top.
Line 36 of cache.inc.php says:
foreach($old_caches as $file) unlink($file); I don't see the problem.
— Reply to this email directly or view it on GitHub.
If someone has this problem again and wants it fixed indefinitely, substitute the following code on line 36 of cache.inc.php:
foreach($old_caches as $file) unlink($file);
to:
foreach((array)$old_caches as $file) unlink($file);
After updating a page, the index is now displaying:
at the top.
Line 36 of cache.inc.php says:
I don't see the problem.