Invalid argument supplied for foreach() lib Varien Data-Collection-Filesystem line 234

Monday, 21. November 2011

Tried to back up the database view Magento Backup tools and go this error.

Invalid argument supplied for foreach() public_html/dev/lib/Varien/Data/Collection/Filesystem.php on line 234

Typical for older versions i.e 1.3.x and here is how you can fix this:

– Navigate to line 234 of file /lib/Varien/Data/Collection/Filesystem.php

– Then change this line which should like something like:

foreach (glob($folder . DIRECTORY_SEPARATOR . '*') as $node) {

TO :

foreach ((array)glob($folder . DIRECTORY_SEPARATOR . '*') as $node) {


Leave a Reply

You must be logged in to post a comment.