Title: PHP function is disabled; abort expected: gzopen updraft
Last modified: August 22, 2016

---

# PHP function is disabled; abort expected: gzopen updraft

 *  Resolved [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/)
 * Hi,
 * I just made a fresh install on Digital Ocean Ubuntu 14.04 32bits server
 * Everything runs ok, but Updraft Plus database backup can’t be done.
 * If i set to not backup DB all is fine.
 * But selecting DB returns the error in the topic title.
    “PHP function is disabled;
   abort expected: gzopen updraft”
 * Reading about i found this:
    “because of large file support, gzopen() has been
   replaced by gzopen64()” Link: [http://www.dotdeb.org/2012/03/01/php-5-4-0-preview-packages/#comment-23656](http://www.dotdeb.org/2012/03/01/php-5-4-0-preview-packages/#comment-23656)
 * Looks like the gzopen() function is no longer available on new versions..
 * System: Ubuntu 14.04 32bits
    Wordpress: 4.0 PHP: PHP Version 5.5.9-1ubuntu4.4
   MySQL: 5.5.40
 * Thanks for any help..
 * [https://wordpress.org/plugins/updraftplus/](https://wordpress.org/plugins/updraftplus/)

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

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405355)
 * Hi,
 * The removal of the gzopen() function and its replacement with gzopen64() is a
   Ubuntu-specific change. i.e. They decided, in certain versions, to change the
   PHP language. This has not been done in any official PHP release, and is not 
   supported by the PHP group.
 * So – you’d need to raise a support issue in an Ubuntu forum about the issue, 
   to find out the official reasoning on what you are meant to do with applications
   using the PHP function that they removed.
 * Or just add this to your wp-config.php, to bring the gzopen() function back:
 * function gzopen( string $filename , $mode, $use_include_path = 0 ) { return gzopen64(
   $filename, $mode, $use_include_path); }
 * David
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405356)
 * P.S., Though, my memory was that they reversed this in a later bugfix for their
   PHP package – ???
 *  Thread Starter [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405374)
 * WoW it works!
 * Many thanks for this.
 * The correct code is:
    function gzopen($filename , $mode, $use_include_path = 
   0 ) { return gzopen64($filename, $mode, $use_include_path); }
 * No “string” before $filename
 * I hope people find this post to fix on their install too..
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405494)
 * You’re welcome!
 * If you find UD useful, then please give us a positive review:
 * [https://wordpress.org/support/view/plugin-reviews/updraftplus?rate=5#postform](https://wordpress.org/support/view/plugin-reviews/updraftplus?rate=5#postform)
 * P.S. You might want to wrap that code with an “if (!function_exists())” call,
   to prevent your site going down if and when you update to a PHP version in which
   Ubuntu have restored the gzopen() function… e.g.
 *     ```
       if (!function_exists('gzopen')) {
       function gzopen($filename , $mode, $use_include_path = 0 ) { return gzopen64($filename, $mode, $use_include_path); }
       }
       ```
   
 * Best wishes,
    David
 *  Thread Starter [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405500)
 * Nice. Thanks again David.
 * Rated the plugin. It’s a great one and i hope you guys keep this tool for a long
   time yet.
 *  Thread Starter [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405502)
 * I also moved the function to theme’s child functions.php.
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405504)
 * Hi,
 * Thanks for the review!
 * I prefer using an mu-plugin to functions.php – unless it’s theme-dependent stuff.
   Or unless you know you’ll never change your theme (or will remember, when you
   do!). I mentioned wp-config.php only as its the quickest.
 * Best wishes,
    David
 *  [reega](https://wordpress.org/support/users/reega/)
 * (@reega)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405716)
 * > I hope people find this post to fix on their install too..
 * LET ME KISS YOU!!!!!!!!!!!

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

The topic ‘PHP function is disabled; abort expected: gzopen updraft’ is closed to
new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [reega](https://wordpress.org/support/users/reega/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/php-function-is-disabled-abort-expected-gzopen-updraft/#post-5405716)
 * Status: resolved