Forums

Snapshot Backup
Upgrade to 2.0 and new installation of 2.0 error (28 posts)

  1. anjaan79
    Member
    Posted 10 months ago #

    Snapshot 2.0 installs and activates without any problems but when I go to any of the admin options I get the following errors:

    Warning: include(/path/wp-content/plugins/snapshot-backup/includes/snapshot-functions.php) [function.include]: failed to open stream: No such file or directory in /path/wp-content/plugins/snapshot-backup/snapshot-backup.php on line 215

    Warning: include() [function.include]: Failed opening '/path/wp-content/plugins/snapshot-backup/includes/snapshot-functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/wp-content/plugins/snapshot-backup/snapshot-backup.php on line 215

    Fatal error: Call to undefined function snapshot_header() in /path/wp-content/plugins/snapshot-backup/snapshot-backup.php on line 216

    Earlier version of Snapshot was working fine for me.

    Please help.

    Thank you.

    http://wordpress.org/extend/plugins/snapshot-backup/

  2. Jay Versluis
    Member
    Posted 10 months ago #

    I do apologise,

    this happened because some files were not copied into the WordPress repository.

    Hence I've just released 2.0.1 - which is exactly the same version as 2.0 but gives everyone the possibility to upgrade to a fully working version.

  3. anjaan79
    Member
    Posted 10 months ago #

    Hello Jay,

    Getting a new error:

    Warning: Missing argument 2 for snapshot_header(), called in /path/wp-content/plugins/snapshot-backup/snapshot-backup.php on line 274 and defined in /path/wp-content/plugins/snapshot-backup/includes/snapshot-functions.php on line 11

  4. Jay Versluis
    Member
    Posted 10 months ago #

    Crazy stuff...

    It's the function that displays the header picture and headline, should only take one argument. Perhaps something went wrong with the upgrade locally?

    I'd suggest to remove the plugin, then add it again from the repository. Let me know if that works.

  5. robinwyatt
    Member
    Posted 10 months ago #

    Hi,

    This morning, my hosts suspended my website owing to "multiple simultaneous backups" that were impeding other clients' abilities to run their sites. They asked me to disable Snapshot Backup, which I've now done so as to get my site back up. Obviously, this is not a good solution for me, as I now don't have backups running. One thing I noticed before uninstalling was that I had the same error message as anjaan79 describes in his most recent reply above. Are these things connected? In any case, what can I do to ensure this problem is not repeated?

    Thanks!

  6. anjaan79
    Member
    Posted 10 months ago #

    Removed and reinstalled. Still get the same error.

    However, the plugin works fine. Creates backup without any problem.

  7. Jay Versluis
    Member
    Posted 10 months ago #

    That's not good - I agree! Who are you hosting with? I have noticed that the automation impedes a single website's performance during the backup itself, so when you're testing a backup every 2mins then is noticeable (and usually not required for production sites). If you create a backup once a day there should be no problem with other people's websites on a server.

    Anjaan's error doesn't show on my system so I'm pretty much tapping and guessing in the dark on how to fix it. Glad the backup creation works either way. Does the error show in every menu?

  8. anjaan79
    Member
    Posted 10 months ago #

    Yep it shows in every menu.

  9. robinwyatt
    Member
    Posted 10 months ago #

    Hi Jay,

    Thanks for the speedy response. I'm hosting with Hostpapa. Was pretty upset when their e-mail came this morning, as a number of potential clients are trying to look at my work today. I actually had automation disabled. I only wanted to backup my site every now and then, particularly before WP upgrades. This is why I'm confused. Yes, the error appears on every page, and it wasn't there yesterday (before I upgraded to 2.0.1. FYI I have a pretty huge site, some 10 Gb. I'm a photographer, and my images tend to be around 15-25 Mb each. The eCommerce solution I use picks these up from my server when a sale comes through, so the client gets them full size if required.

    Robin

  10. Jay Versluis
    Member
    Posted 10 months ago #

    Thanks for letting me know, I think the problem theis the size of your site. It takes quite some time to copy 10GB over.

    Have you used Version 1.6 before, and did that work for you? Also, are you using the plugin with the FTP option or are you using it for local backups?

    I'm really sorry this has happened to you and I hope Hostpapa will bring you back online.

  11. robinwyatt
    Member
    Posted 10 months ago #

    I've not used 1.6 before. Should I use that instead? I actually installed your plugin for the first time only a couple of days ago. Hostpapa re-activated my site on the condition that I disable your plugin. Not a solution I appreciated! I'm using the FTP option.

  12. Jay Versluis
    Member
    Posted 10 months ago #

    Guys,

    I took a good hard look at the code and have found the problem with the header error message. I've just released 2.0.2 which *should* alleviate this. Please let me know if it does as my server doesn't show the error.

    Thanks for letting me know about your issues by the way, it's much appreciated! Your feedback makes Snapshot Backup better ;-)

  13. robinwyatt
    Member
    Posted 10 months ago #

    Thanks, Jay. Will do. Do you think this will stop the multiple simultaneous backups that Hostpapa said were happening?

  14. robinwyatt
    Member
    Posted 10 months ago #

    PS I'm not seeing an option to upgrade.

  15. Jay Versluis
    Member
    Posted 10 months ago #

    It takes a few minutes to show on WordPress. The upgrade only gets rid of the error message. The earlier versions only had the manual option, that was the only difference.

    I'm a bit puzzled by Hostpapa's multiple backups theory.

    Scenarios that could create multilevel backups are: when you hit the Create Backup button, the plugin executed a TAR command on the server. Say you were in two browser windows of your back end at once, you could theoretically press the button once in each window, which would lead to the backup being created twice at the same time. I'm sure you didn't do this though. Or you could create another backup while one is till in progress. Or the automation would create one in the background while you hit the button to create a backup manually.

    They may be concerned that during a backup Snapshot may hog server resources and understandably they want to protect themselves against this. I'll have a think how I can throttle how the plugin does what it does and will let you know. It'll be another challenge....

  16. robinwyatt
    Member
    Posted 10 months ago #

    Thanks Jay. I often do have multiple backend tabs open, but had not even looked at Snapshot (except to upgrade) today. Moreover, I had automation off. So it seems odd. Still waiting for 2.0.2 to appear... . If my hosts are worried about resources, why do they promise unlimited bandwidth? (Assuming, from my limited knowledge, that this is the same thing.)

  17. anjaan79
    Member
    Posted 10 months ago #

    Hello Jay,

    The errors are gone with the update. Thanks!

    I see the following errors under Manage Snapshots which I think are "normal" since I did not setup FTP:

    Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 18

    Warning: ftp_login() expects parameter 1 to be resource, boolean given in /path/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 21

    Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /path/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 24

    Warning: Invalid argument supplied for foreach() in /path/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 31

    This section helps you keep track of your backups.
    I'll add more functions here in future versions of the Plugin.

    Warning: ftp_close() expects parameter 1 to be resource, boolean given in /path/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 44

  18. anjaan79
    Member
    Posted 10 months ago #

    BTW, when will you release an upgrade with restore option?

  19. anjaan79
    Member
    Posted 10 months ago #

    robinwyatt - with resources your host means CPU, memory, swap file usage. i.e. server resources. If they keep complaining about your site, your next option would be to get a VPS, semi-dedicated, or dedicated server. Though cost would be a factor.

  20. Jay Versluis
    Member
    Posted 10 months ago #

    Anjaan,

    yes those errors are another mystery to me... They were in the previous version too and again don't show up on my server. Did you say the backups are created fine?

    I'm afraid I can't give you a timing on when the restore option will be available, but it'll most likely be a standalone script rather than an integration. I'll see what works. Restore is easy when you're restoring to the same domain and server, but it can get hairy when you want to restore onto a different domain or into a subdirectory - however those would be super cool options. Imagine you have pre-built websites you can roll out to clients at the touch of a button?

    --------------

    Robin,

    I think what Hostpapa are concerned about is not bandwidth but as Anjaan said CPU power and overall responsiveness of their server. When Snapshot creates a backup it hogs the server resources a bit - and I'm sure that's what they've picked up. Shared hosting is a very sensitive environments.

    The good news is that I've found a solution which will slow the process down so it takes longer, but doesn't hog the resources. I'll test it and will let you know - it'll be a feature in 2.1 which I may release early next week.

  21. robinwyatt
    Member
    Posted 10 months ago #

    This is great news, many thanks! (Oddly, 2.0.2 is still not showing as an available upgrade for me.)

  22. Jay Versluis
    Member
    Posted 10 months ago #

    Bizarre--

    try a manual delete and restore. It's definitely on the system:

    http://wordpress.org/extend/plugins/snapshot-backup/

  23. anjaan79
    Member
    Posted 10 months ago #

    Hello Jay, yes the backups are created fine without any errors with 2.0.2 :)

    Looking forward to the restore options...that would be so cool!!!

    Thanks for the quick turnaround.

  24. robinwyatt
    Member
    Posted 10 months ago #

    Hi,

    I got 2.0.2 now, thanks.

    Meanwhile, Hostpapa - who I used to love - are driving me nuts. Here's their latest e-mail to me:

    Hello,

    We noticed that you are using your account to store data not related to your site in

    * /home/robinwya/robinwyatt-org-snapshot-20110715-709.tar
    * /home/robinwya/robinwyatt-org-snapshot-20110715-909.tar

    This is considered Data Warehousing and is a violation of our Terms of Service (http://hostpapa.com/terms-of-service). While we do provide unlimited disk space with our hosting package, that space must be used for data that is essential to the operation of your website.

    Please remove the data as soon as possible to avoid having your account suspended.

    Regards,
    HostPapa Systems Administration Department

    Of course, this is automated. But do you think that if I changed something in the path so that it reads 'site-backup', it would be more acceptable to them?

    Robin

  25. robinwyatt
    Member
    Posted 10 months ago #

    Ok, forget my reply. They already responded:

    Hello,

    Storage of backup files is prohibited as per our Terms of Service.

    "o) Data Warehousing: The servers provided by HostPapa are intended for web services use only. Any use of our servers for file storage, data warehousing, back-up data storage, or any form of data file storage or management is prohibited. HostPapa servers are intended for web enabled services and hosting."

    We recommend that you download and remove backup files in 24 hours after generating them.

  26. Jay Versluis
    Member
    Posted 10 months ago #

    Ah, now it all makes sense:

    It's not the plugin they don't like, they don't want you to store .TAR files anywhere in your webspace. That's very cheeky - like you say - unlimited is unlimited where I come from.

    You can always sign up with one of my FTP packages - they're optimised for speed and backup, no penalties attached, usable immediately:

    http://wpguru.co.uk/hosting/ftp/

  27. diynamic
    Member
    Posted 8 months ago #

    I get:

    Warning: ftp_nlist() [function.ftp-nlist]: listen() failed: Permission denied (13) in /mysitename.com/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 24
    
    Warning: Invalid argument supplied for foreach() in /mysitename.com/wp-content/plugins/snapshot-backup/includes/check-repo.php on line 31

    with version 2.0.2, and I've dropped and reinstalled the plug-in.

    That's just in the Manage Snapshots UI though, not everywhere.

  28. Jay Versluis
    Member
    Posted 8 months ago #

    Some hosts don't allow PHP to execute FTP and shell commands - probably due to security restrictions. Your host seems to be one of them.

    It basically means that the plugin can't do what it needs to in order to work properly.

Reply

You must log in to post.

About this Plugin

About this Topic