Title: [Plugin: WordPress Move] Error message on backup &#8211; will it be a problem?
Last modified: August 20, 2016

---

# [Plugin: WordPress Move] Error message on backup – will it be a problem?

 *  Resolved [sigf](https://wordpress.org/support/users/sigf/)
 * (@sigf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/)
 * I get this message when doing a full backup
    Warning: Invalid argument supplied
   for foreach() in /var/www/vhosts/sigfrid.co.uk/httpdocs/holland/wp-content/plugins/
   wordpress-move/libs/functions-file-backup.php on line 69
 * After trying a full backup it shows 1 database zip, and multiple file system 
   backups.
 * Anyone know if this error will cause me problems in the future?
 * [http://wordpress.org/extend/plugins/wordpress-move/](http://wordpress.org/extend/plugins/wordpress-move/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Mert Yazıcıoğlu](https://wordpress.org/support/users/merty/)
 * (@merty)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525252)
 * Find the following in libs/functions-file-backup.php on line 69:
 * `foreach ( glob( $directory . "/*" ) as $file ) {`
 * Replace it with this:
 *     ```
       $f = glob( $directory . "/*" );
       if ( is_array( $f ) )
       foreach ( $f as $file ) {
       ```
   
 * And try again. This should solve it 🙂
 *  Thread Starter [sigf](https://wordpress.org/support/users/sigf/)
 * (@sigf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525412)
 * similarly for the migration assistant I get the same (now fatal) error for line
   100…
 *  Thread Starter [sigf](https://wordpress.org/support/users/sigf/)
 * (@sigf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525413)
 * but I should have said ‘same solution works’
 *  Thread Starter [sigf](https://wordpress.org/support/users/sigf/)
 * (@sigf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525418)
 * although sadly I now get a
    Forbidden You do not have permission to access this
   document. after choosing my files and clicking migrate. I am 99% sure my ftp 
   details are right.
 *  Plugin Author [Mert Yazıcıoğlu](https://wordpress.org/support/users/merty/)
 * (@merty)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525459)
 * You got those PHP Warnings because the plugin was unable to read some of the 
   directories. The solution I provided just makes the plugin ignore unreadable 
   directories so if they were because of unreadable directories, you will most 
   likely have a backup missing some of the directories.
 * Similarly, the last error you mentioned indicates another permission issue. Make
   sure your permissions are set properly so that the plugin can read and write 
   backup files successfully.
 *  Thread Starter [sigf](https://wordpress.org/support/users/sigf/)
 * (@sigf)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525466)
 * Hi Mert,
    In the end, time was a major issue so I just copied it all over manually(
   which was a little easier than I had expected once I’d read all the official 
   guidelines). I did check the permissions and didn’t notice anything obviously
   wrong, but I wasn’t sure exactly what I was looking for. It seemed to have written
   all of the backups to the local server successfully and all the read permissions
   are fine/ Even though I ended up moving it manually, I do really appreciate the
   help. It’s always nice when a developer takes the time to work through these 
   individual issues, Nick
 *  Plugin Author [Mert Yazıcıoğlu](https://wordpress.org/support/users/merty/)
 * (@merty)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525502)
 * I’m deeply sorry to see that it didn’t work well for you. I hope I can manage
   to reproduce the error myself and fix it in the upcoming versions.
 * Thanks for trying WordPress Move and sharing your experience!
 *  [Doug M](https://wordpress.org/support/users/nes-native-english-services/)
 * (@nes-native-english-services)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525515)
 * Good morning…
 * I just had this same error.
 * Yesterday all was fine and backup were working. I don’t understand exactly what
   is happening here and what exactly I should be doing to fix it. I don’t want 
   to not read unreadable files…I’ve gone through hell and high water to get a BP
   site up and running and I’m just about ready to present it to the city and local
   schools…Not a full roll out of course but in a beta format.
 * What exactly am I dealing with here?
    Doug
 *  Plugin Author [Mert Yazıcıoğlu](https://wordpress.org/support/users/merty/)
 * (@merty)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525522)
 * You should not be seeing Forbidden errors and the only solution I can provide
   is to check file permissions and security settings on your server. (mod_security,
   Suhosin etc.)
 * I have been trying to reproduce this error but no luck so far. I will let you
   know when a more specific solution is available.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: WordPress Move] Error message on backup – will it be a problem?’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-move_be2f30.svg)
 * [WordPress Move](https://wordpress.org/plugins/wordpress-move/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-move/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-move/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-move/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-move/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-move/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Mert Yazıcıoğlu](https://wordpress.org/support/users/merty/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-move-error-message-on-backup-will-it-be-a-problem/#post-2525522)
 * Status: resolved