• Resolved sigf

    (@sigf)


    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?

    https://www.ads-software.com/extend/plugins/wordpress-move/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mert Yaz?c?o?lu

    (@merty)

    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

    (@sigf)

    similarly for the migration assistant I get the same (now fatal) error for line 100…

    Thread Starter sigf

    (@sigf)

    but I should have said ‘same solution works’

    Thread Starter sigf

    (@sigf)

    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

    (@merty)

    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

    (@sigf)

    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

    (@merty)

    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

    (@nes-native-english-services)

    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

    (@merty)

    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.