WordPress.org

Ready to get started?Download WordPress

Forums

UpdraftPlus Backup and Restoration for WordPress
[resolved] Big Bug - fread() Param Error Fills Error Log (3 posts)

  1. This bug crashed my server twice this week by generating a 40GB error log in < 24 hours.

    This is literally 10-seconds of logging:
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543
    [30-Jan-2013 13:34:55 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/charlesu/public_html/wp-content/plugins/updraftplus/includes/S3.php on line 543

    Even worse, the process gets stuck in RAM via wp-cron.php and deactivating/delete the UpdraftPlus plugin does not kill the process. You have to forcibly hard kill (kill -9) the wp-cron.php process or the error log will run indefinitely.

    $15 for VaultPress after 2 days of having my primary sales website offline is money well spent. As a plugin author I appreciate the effort but this was a fatal error and lost sales the past 48 hours = a full year (or more) of the VaultPress subscription.

    If you cannot reproduce the problem I can try on my dev box, but I am leery of re-installing on my live server (as you can imagine). You can reach me here or at http://www.charlestonsw.com/mindset/contact-us/. If there is anything else I can do to help with the plugin let me know... even though I'm not using it now I may re-visit this for various client projects as not everyone wants to spend the $15/month for VaultPress.

    Good luck David!

    - LC

    http://wordpress.org/extend/plugins/updraftplus/

  2. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for the report, and sorry to hear about that. Unfortunately UpdraftPlus users don't donate enough to give us time for testing (not even close!). I wish they did... we're going to launch a Premium version to give the support that people (who are willing to pay for it) deserve. Watch this space.

    Having said that, if your web hosting company doesn't have checks to terminate run-away processes, and can't fix a simple problem like that inside 2 days, then you should fire them immediately. That's gross incompetence. Otherwise, you'll be permanently living in fear that any accidental loop in the code could crop up and bring everything down, any time. My own web hosting company and any decent one would have killed the process inside minutes (and resource-limited it so that it wouldn't affect other processes anyway).

    I've found the relevant section of code and fixed it in UpdraftPlus 1.3.20.

  3. Hi David -

    I hear you about the donations. I've been there. They are non-existent. If you are to earn a living at this you MUST have premium add-on packages. I do very well with my add-on packs for Store Locator Plus. After 3 years of "working the formula" I've found a free functional base plugin with the hooks & filters to allow for a series of separate premium add-on packs works well for me. From plugin-author to plugin-author I can share my journey & what worked/didn't work if you're interested.

    As for the process... yeah, I hear you. I wasn't sure how well this new venture would do so I went with "top of the line shared server" with a large firm I've used in the past. Needless to say the service is WAY below the level I expect. I am evaluating options and planning a move soon. I've been offline way too often in the past 6 months for my liking, first time for a crashed hard drive. Supposedly the system is full RAID 5-0, but obviously that was not the case.

    Glad you found the issue and patched it. If you ever want to talk "premium plugins" please feel free to ping me any time.

    - Lance

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Charleston Software Associates
  • Latest reply from Charleston Software Associates
  • This topic is resolved
  • WordPress version: 3.5.1