Our blog

 

Magento Backup Error Filesystem.php on line 234 + Solution

If you see this error message when trying to access the backups section of Magento Admin:

Warning: Invalid argument supplied for foreach() in /home/*****/public_html/lib/Varien/Data/Collection/Filesystem.php on line 234

Then this simple fix is for you:

replace (line 24):

PHP:
  1. foreach (glob($folder . DIRECTORY_SEPARATOR . ‘*’) as $node) {

with this:

PHP:
  1. foreach ((array)glob($folder . DIRECTORY_SEPARATOR . ‘*’) as $node) {

I saw this here, so all credit to them.

More Reading:

2 Comments

admin
February 8th, 2010

i keep hitting this error - thank god i blogged it,

 

[...] Magento Backup Error Filesystem.php on line 234 + Solution [...]

 

 

Leave a Reply