Support » Plugin: Darwin Backup » error after latest update

  • Resolved alangarbett

    (@alangarbett)


    Darwin Backup: v1.2.15.1,
    PHP Version: 5.6.22,
    User Level: 10,
    WP_ALLOW_MULTISITE: false,
    MULTISITE: false,
    Exception::__set_state(array(
       'message' => 'Unable to find writable directory to store backups',
       'string' => 'exception \'Exception\' with message \'Unable to find writable directory to store backups\' in /wp-content/plugins/darwin-backup/classes/Runner.php:94
    Stack trace:
    #0 /wp-content/plugins/darwin-backup/classes/Runner.php(345): AnyWay_Wordpress_Runner->storageDir()
    #1 /wp-content/plugins/darwin-backup/classes/Page/List.php(25): AnyWay_Wordpress_Runner->listBackups()
    #2 /wp-content/plugins/darwin-backup/classes/Page/List.php(35): AnyWay_List_Table->get_recovery_points()
    #3 /wp-content/plugins/darwin-backup/classes/Page/List.php(203): AnyWay_List_Table->prepare_items()
    #4 /wp-content/plugins/darwin-backup/classes/Page/Base.php(208): AnyWay_Wordpress_Page_List->display()
    #5 [internal function]: AnyWay_Wordpress_Page_Base->safe_display(\'\')
    #6 /wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)
    #7 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(\'\', Array)
    #8 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #9 /wp-admin/admin.php(222): do_action(\'toplevel_page_d...\')
    #10 {main}',
       'code' => 0,
       'file' => '/wp-content/plugins/darwin-backup/classes/Runner.php',
       'line' => 94,
       'trace' => 
      array (
        0 => 
        array (
          'file' => '/wp-content/plugins/darwin-backup/classes/Runner.php',
          'line' => 345,
          'function' => 'storageDir',
          'class' => 'AnyWay_Wordpress_Runner',
          'type' => '->',
          'args' => 
          array (
          ),
        ),
        1 => 
        array (
          'file' => '/wp-content/plugins/darwin-backup/classes/Page/List.php',
          'line' => 25,
          'function' => 'listBackups',
          'class' => 'AnyWay_Wordpress_Runner',
          'type' => '->',
          'args' => 
          array (
          ),
        ),
        2 => 
        array (
          'file' => '/wp-content/plugins/darwin-backup/classes/Page/List.php',
          'line' => 35,
          'function' => 'get_recovery_points',
          'class' => 'AnyWay_List_Table',
          'type' => '->',
          'args' => 
          array (
          ),
        ),
        3 => 
        array (
          'file' => '/wp-content/plugins/darwin-backup/classes/Page/List.php',
          'line' => 203,
          'function' => 'prepare_items',
          'class' => 'AnyWay_List_Table',
          'type' => '->',
          'args' => 
          array (
          ),
        ),
        4 => 
        array (
          'file' => '/wp-content/plugins/darwin-backup/classes/Page/Base.php',
          'line' => 208,
          'function' => 'display',
          'class' => 'AnyWay_Wordpress_Page_List',
          'type' => '->',
          'args' => 
          array (
          ),
        ),
        5 => 
        array (
          'function' => 'safe_display',
          'class' => 'AnyWay_Wordpress_Page_Base',
          'type' => '->',
          'args' => 
          array (
            0 => '',
          ),
        ),
        6 => 
        array (
          'file' => '/wp-includes/class-wp-hook.php',
          'line' => 298,
          'function' => 'call_user_func_array',
          'args' => 
          array (
            0 => 
            array (
              0 => 
              AnyWay_Wordpress_Page_List::__set_state(array(
                 'order' => 1,
                 'actions' => 
                array (
                ),
                 'notices' => 
                array (
                ),
                 'shutdown_handler_enabled' => false,
                 'start_time' => 1490098635.29936504364013671875,
              )),
              1 => 'safe_display',
            ),
            1 => 
            array (
              0 => '',
            ),
          ),
        ),
        7 => 
        array (
          'file' => '/wp-includes/class-wp-hook.php',
          'line' => 323,
          'function' => 'apply_filters',
          'class' => 'WP_Hook',
          'type' => '->',
          'args' => 
          array (
            0 => '',
            1 => 
            array (
              0 => '',
            ),
          ),
        ),
        8 => 
        array (
          'file' => '/wp-includes/plugin.php',
          'line' => 453,
          'function' => 'do_action',
          'class' => 'WP_Hook',
          'type' => '->',
          'args' => 
          array (
            0 => 
            array (
              0 => '',
            ),
          ),
        ),
        9 => 
        array (
          'file' => '/wp-admin/admin.php',
          'line' => 222,
          'function' => 'do_action',
          'args' => 
          array (
            0 => 'toplevel_page_darwin-backup',
          ),
        ),
      ),
       'previous' => NULL,
    ))
    • This topic was modified 3 years, 2 months ago by Steve Stern.
    • This topic was modified 3 years, 2 months ago by Steve Stern.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Hello, thank you so much for reporting. It is really weird, the plugin tries to find an appropriate directory starting from system temporary dir, temporary uploads dir, wp-content/darwin-backup and then even a directory inside the plugin itself.

    Which hosting are you using ? Is it Windows-based hosting ?

    WBR,
    ALex

    System report for my set up

    Avada Versions:

    ### Avada Versions ###

    Current Version: 5.0.6
    Previous Version: 5.0.3 5.0.4 5.0.5

    ### WordPress Environment ###

    Home URL: http://rdas.me.uk
    Site URL: http://rdas.me.uk
    WP Version: 4.7.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: en_US

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 5.6.22
    PHP Post Max Size: 100 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    SUHOSIN Installed: –
    ZipArchive: ✔
    MySQL Version: 5.1.63
    Max Upload Size: 100 MB
    DOMDocument: ✔
    WP Remote Get: ✔
    WP Remote Post: ✔
    GD Library: bundled (2.1.0 compatible)

    ### Active Plugins (22) ###

    Darwin Backup: by DarwinApps
    Aleksandr Guidrevitch

    Disable Automatic Updates: by oneTarek
    Fusion Builder: by ThemeFusion
    Fusion Core: by ThemeFusion
    ICIT Weather Widget: by Interconnect IT
    James R Whitehead
    Andrew Walmsley & Miriam McNeela

    Jetpack by WordPress.com: by Automattic
    WooCommerce Product Carousel Slider: by ADL Plugins
    Slider Revolution Particles Effect: by ThemePunch
    Slider Revolution Polyfold Scroll Effect: by ThemePunch
    Slider Revolution Holiday Snow: by ThemePunch
    Slider Revolution: by ThemePunch
    ShortPixel Image Optimizer: by ShortPixel
    Wordpress Facebook: by http://web-dorado.com/
    The Events Calendar: by Modern Tribe
    Inc.

    VFB Pro: by Matthew Muro
    VFB Pro – Form Designer: by Matthew Muro
    VFB Pro – Payments: by Matthew Muro
    WooCommerce Checkout Manager: by Visser Labs
    WooCommerce: by WooThemes
    Yoast SEO: by Team Yoast
    WP-Mail-SMTP: by Callum Macdonald
    MailPoet Newsletters: by MailPoet

    Linux based Hosting just checked my hosting site.
    Regards
    Alan

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Was the plugin working for you previously ?

    Hi Aleksandre yes I have been using the plugin to back up regularly since I installed it .

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Before installing 1.2.17 please download backups you might need, they might be lost after upgrade.

    May I also ask you to check permissions on wp-content/darwin-backup using FTP or your hosting panel and make sure the directory is writeable (eg 0755 or 0775 or 0777). It seems they were reset (write permissions was removed) in a way, not related to the plugin. It might happened for the following reasons:
    1. you might accidentally reset it, especially if you are working through FTP
    2. your hosting panel did it, either reset permissions, or changed owner or adjusted SELinux settings
    3. some staff of your hosting provider did it, either reset permissions or changed owner or adjusted SELinux settings
    4. it was reset during your server upgrade , either reset permissions or changed owner, or adjusted SELinux settings

    Before procceding further, please make sure you cannot fix permissions manually, if you happen to know how to do it.

    I’ve just rolled out 1.2.17 which will try to fix permissions on your default backup directory. If it is a permission problem it might be fixed by the plugin, or might not. If owner changed – you will probably be able to change owner back using your hosting panel. If SELinux settings changed – there is nothing we can do about that, but select different backup directory (wp-content/uploads/darwin-backup most probably). If different backup directory will be selected, you will lose access to your old backups, this is why I asked to download your backups in the first place.

    Thank you so much for your help and please let me know how it went

    WBR,
    Alex

    Hi Aleksandr
    I have looked in wp-content darwin-backup and there are no files i can see marked as “directory” I have taken a couple of screen shots of the files, is there any way i can send them to you? as i can’t attach them to the support message.
    Regards
    Alan

    I Have looked in the Index file but it just says access denied.

    Ive also tried downloading the 3 backups i have, and i get error message.
    502 Bad Gateway and i can’t download them.
    I asked my server people in the last week to raise my php version to 5.6.22 could this have affected things? Im sorry Aleksandr but I’m no expert at this.

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Hello Alan,

    If you are willing to give me access to fix things for you, feel free to write me directly to aguidrevitch@gmail.com.

    WBR,
    Alex

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Hello Alan,

    This must be addressed in the 1.2.18. The plugin will use plugin’s own folder if wp-content and wp-content/uploads are not writable or not safe. However, plugin’s folder gets removed with each plugin upgrade, so you will have a persistent warning about that, if plugin’s folder is selected for storing backups

    WBR,
    Alex

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘error after latest update’ is closed to new replies.