WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Backup to Dropbox
[resolved] Problem krsort() after the first time... (16 posts)

  1. davydd
    Member
    Posted 3 years ago #

    Hi,

    I'm using this fabulous wordpress plugin for a while now, but I have a problem. I thought it was the version, but seems to have no issue.

    I am on 3.2.1, and backups is on 777 permission. Also, i'm on a dedicated linux server.
    The first backup works very find, all is ok. But after it does a backup (instan backup, or programmed one), I have this errors showing up :

    Warning: krsort() expects parameter 1 to be array, string given in /var/www/vhosts/mysite.fr/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 400
    
    Warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/vhosts/mysite.fr/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 513

    and these ones :

    Warning: krsort() expects parameter 1 to be array, string given in /var/www/vhosts/mysite.fr/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 400
    
    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.fr/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/wp-backup-to-dropbox-options.php on line 149

    And as I said, it shows up only after the first backup. And then, completely imposible to do another backup. So if I want to use it, I have to desactivate and delete the plugin, and then I have to reinstall it again. It's very annoying, I am doing it for a while, I waited to see if anything new would comes out with a new version, but nop ...

    I saw once this topic one this forum, but without solution. I would be very grateful if you could help me on this one, so I can completelly automate the backup process :)

    Thanks again for this amazing plugin, and thanks in advance for your answers!

  2. Michael De Wildt
    Member
    Plugin Author

    Posted 3 years ago #

    Gday Davydd,

    Thanks for the feedback!

    I am in the process of working through a few issues and plan to have a new version to release soon.

    In the mean time I believe I have fixed this issue in the beta that can be downloaded here - https://bitbucket.org/michaeldewildt/wordpress-backup-to-dropbox/downloads

    Let me know if you run into any issues.

    Cheers,
    Mikey

  3. davydd
    Member
    Posted 3 years ago #

    Hi,

    Thank you very much for your feedback.
    I downloaded the beta, installed it, activate it, connected it to dropbox, and clicked on continue.

    Then, I have this new error that appears everywhere like 1000 times, and keep and keep appearing... until, firefox block! Here is the warning :

    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/***/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/class-file-list.php on line 104

    So impossible tu use it at all :). (PD : The other error has not appearded, but I couldn't run the backup so I don't know if there is another)
    Thanks again, and hope you could help me again on this one :)

    thanks!

  4. pepito2k
    Member
    Posted 3 years ago #

    I'm having the same error than davydd.
    Will try to investigate a little more to see if it's something related to another plugin that could be conflicting with yours.

    Thanks for your good plugin.

  5. ialima7
    Member
    Posted 2 years ago #

    Same error too.

  6. ialima7
    Member
    Posted 2 years ago #

    WordPress Backup to Dropbox is obsolete here in WP MU, but functional in a normal installation.

  7. davydd
    Member
    Posted 2 years ago #

    I'm using it in a normal installation.

  8. ialima7
    Member
    Posted 2 years ago #

    Strange. I have two blogs, one of each type. In MU does not work. In normal work.

  9. davydd
    Member
    Posted 2 years ago #

    Yes it is :(
    But I am waiting for the next version of the plugin, it's a very good one :)

  10. Michael De Wildt
    Member
    Plugin Author

    Posted 2 years ago #

    Hey guys,

    Is this still an issue?

  11. ialima7
    Member
    Posted 2 years ago #

    Yes, but the lines are different from the @davydd.

    Before the title and version:

    Warning: krsort() expects parameter 1 to be array, string given in /home/itarcio/public_html/_/iasd/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 398
    
    Warning: array_shift() [function.array-shift]: The argument should be an array in /home/itarcio/public_html/_/iasd/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 528

    And after "Historic":

    Warning: krsort() expects parameter 1 to be array, string given in /home/itarcio/public_html/_/iasd/wp-content/plugins/wordpress-backup-to-dropbox/class-wp-backup.php on line 398
    
    Warning: Invalid argument supplied for foreach() in /home/itarcio/public_html/_/iasd/wp-content/plugins/wordpress-backup-to-dropbox/wp-backup-to-dropbox-options.php on line 191
  12. davydd
    Member
    Posted 2 years ago #

    Hello Michael, thanks for the feedback!
    Yes, as said ialima, I don't have the "ksort" error now, but when I go to the plugin admin, I have this line which is displayed 1 , 2 , 3 , 1000, 2000 .... times, and doesn't stop :

    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/***/httpdocs/wp-content/plugins/wordpress-backup-to-dropbox/class-file-list.php on line 104

    And imposible to do one backup :(

    Thanks!

    PS : It seems my error is also different from him :)

  13. davydd
    Member
    Posted 2 years ago #

    Hi Michael,

    No problem anymore since you put the new version 9.1 on the wordpress plugin base, but now, I have a common one :

    Backup error on 2011-10-24 at 09:42:28: The backup process appears to have gone away. Resuming backup.
    Backup started on 2011-10-24 at 09:41:27
    Backup error on 2011-10-24 at 09:39:14: The backup process appears to have gone away. Resuming backup.
    Backup started on 2011-10-24 at 09:37:39
    Backup error on 2011-10-24 at 09:36:15: The backup process appears to have gone away. Resuming backup.
    Backup started on 2011-10-24 at 09:31:29
    Backup started on 2011-10-24 at 09:31:29

    I am on a dedicated server, and nothing at all happen. The database is not backing up, and nothing is copied to dropbox, after is starts again, and stop again, and still nothing happen.

    I didn't have this problem on the 9.0 version :( and my memory limit is fine. The thing it wasn't working, was the "second backup".

    But I guess this error is a difficult one for you, thanks for the new update, I'll be waiting for the new one, thanks again for this, and I hope I'll can use it at his full potential very soon :)

    Thanks !

  14. ialima7
    Member
    Posted 2 years ago #

    One strange thing:
    I use the 'Dropbox to Backup WordPress' in WPMU, but when the asset on the network, it does not appear in the plugins page from the main site. When I disable in the network, it appears in the plugins page of the main site.

    Does this has to do with the problem of krsort?

  15. voeslav
    Member
    Posted 2 years ago #

    WordPress 3.3.1
    Warning: krsort() expects parameter 1 to be array, string given in ...plugins/wordpress-backup-to-dropbox/Classes/class-wp-backup-config.php on line 60

    Warning: Invalid argument supplied for foreach() in .../plugins/wordpress-backup-to-dropbox/Views/wp-backup-to-dropbox-options.php on line 205

    Fatal error: [] operator not supported for strings in .../plugins/wordpress-backup-to-dropbox/Classes/class-wp-backup-config.php on line 233

  16. ialima7
    Member
    Posted 2 years ago #

    In the new version is working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic