Title: PHP error when trying to delete Updraftplus backups
Last modified: July 10, 2021

---

# PHP error when trying to delete Updraftplus backups

 *  Resolved [wpunder1sec](https://wordpress.org/support/users/wpunder1sec/)
 * (@wpunder1sec)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/)
 * Hi,
 * Firstly, thank you for creating the plugin 🙂
 * It slows down Updraftplus when taking a backup
 * When I try to delete backups it gives this error:
 * > PHP Fatal error (TypeError) has occurred during deleteset subaction. Error 
   > Message: Cannot access offset of type string on string (Code: 0, line 783 in/
   > var/www/vhosts/wpunder1sec.com/httpdocs/wp-content/plugins/docket-cache/includes/
   > src/Tweaks.php)
 * and the backup deletion process hangs with this message:
 * > Deleting… Please allow time for the communications with the remote storage 
   > to complete.
 * Please help, thank you! And have a great day!
 * yours sincerely,
 * Nick
    -  This topic was modified 4 years, 9 months ago by [wpunder1sec](https://wordpress.org/support/users/wpunder1sec/).
      Reason: formatting
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-when-trying-to-delete-updraftplus-backups%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/#post-14646003)
 * Hi Nick,
 * Thank you for your report. Please disable “Configuration -> HTTP Request Expect
   header tweaks”. for quick fixs.
 * Will try to fix this issue after test it with Updraftplus.
 * Thanks.
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/#post-14646675)
 * [@wpunder1sec](https://wordpress.org/support/users/wpunder1sec/)
 * Please download and try dev version here [https://docketcache.com/devtest/docket-cache-21.02.08-dev1.zip](https://docketcache.com/devtest/docket-cache-21.02.08-dev1.zip).
 * Thanks.
 *  Thread Starter [wpunder1sec](https://wordpress.org/support/users/wpunder1sec/)
 * (@wpunder1sec)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/#post-14647524)
 * Hi Nawawi,
 * Firstly thank you for the quick reply. Secondly, thank you once again for the
   tweak, that works fine. I think I will wait till its fixed instead of installing
   the dev version (its a test site so no rush).
 * Questions:
 * 1. Can Docket Cache be used with redis?
    2. What about with varnish? 3. What 
   are the ideal settings for a regular website and for a woocommerce store? 4. 
   Lastly, Docket Cache shows OPcache not available, but I checked and it’s enabled
   on the server
 * I’m running it on a DO droplet with plesk (phpfpm apache). Thank you once again
   for creating this plugin, it’s amazing! Waiting to test a few things before leaving
   a review 🙂
 * Have a great day!
 * yours sincerely,
 * Nick
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/#post-14648109)
 * Thank you for your question, try to answer the best I can.
 * > 1. Can Docket Cache be used with redis?
 * No. Docket Cache is an alternative to Redis/Memcache or any in-memory cache. 
   Both Docket Cache and Redis plugins use WordPress object-cache.php drop-in file.
   Currently, it is not possible to use both.
 * > 2. What about with varnish?
 * Yes, it is possible. Varnish is a Web Proxy that operates the same as [Squid](http://www.squid-cache.org/)
   or Cloudflare and it is for front-end (page cache). Docket Cache works on the
   back-end (object cache).
 * > 3. What are the ideal settings for a regular website and for a woocommerce 
   > store?
 * The default settings are suitable for regular or woocommerce websites. For specific
   optimisation settings, it depends on website setup theme, plugins and others.
 * You may try to start with disable all settings and leave only “Advanced Post 
   Caching”, “Optimize WP Query” and “Optimize Term Count Queries”. For WooCommerce,
   enable all settings in “WOO TWEAKS” sections.
 * Use Ramdisk/Tmpfs to store the cache files. Please refer to [https://docs.docketcache.com/faq#what-is-a-ram-disk-in-docket-cache](https://docs.docketcache.com/faq#what-is-a-ram-disk-in-docket-cache).
 * > 4. Lastly, Docket Cache shows OPcache not available, but I checked and it’s
   > enabled on the server
 * Docket Cache detect if OPcache enables or not by using this logic function:
 *     ```
       public function is_opcache_enable()
       {
           try {
               return @ini_get('opcache.enable') && \function_exists('opcache_reset');
           } catch (\Throwable $e) {
               // rare condition on some hosting
               nwdcx_throwable(__METHOD__, $e);
           }
   
           return false;
       }
       ```
   
 * File: [https://github.com/nawawi/docket-cache/blob/master/includes/src/Filesystem.php#L505](https://github.com/nawawi/docket-cache/blob/master/includes/src/Filesystem.php#L505)
 * – If OPcache enables by setting “opcache.enable” to “1” at php.ini or other method
   configuration.
    – If OPcache extension (opcache.so) loaded and ready to use by
   checking “opcache_reset” function exists.
 * You may try to run the command below to confirm the server setting and try to
   restart the apache/nginx and php-fpm service.
 * # php -m |grep -i opcache
    Zend OPcache Zend OPcache
 * # php -i |grep opcache.enable
    opcache.enable => On => On opcache.enable_cli 
   => Off => Off opcache.enable_file_override => Off => Off
 * Thanks.

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

The topic ‘PHP error when trying to delete Updraftplus backups’ is closed to new
replies.

 * ![](https://ps.w.org/docket-cache/assets/icon-256x256.png?rev=2425893)
 * [Docket Cache - Object Cache Accelerator](https://wordpress.org/plugins/docket-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/docket-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/docket-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/docket-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/docket-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/docket-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-when-trying-to-delete-updraftplus-backups/#post-14648109)
 * Status: resolved