Support » Plugin: Easy Updates Manager » Error: [fs_unavailable] Could not access filesystem.

  • Divi premium theme not updating on all sites. (Also where I use the Divi theme with a child theme). If I manually click on the theme update button at …/wp-admin/update-core.php the theme update works and I receive no error messages in php_error_log – the Divi update plugin installer is enabled and correctly configured which means that automatic updates should occur even though this is a premium theme. This issue happens on my live sites and my development (localhost) sites.

    WordPress 5.0.2–en_AU
    Easy Updates Manager 8.0.3
    PHP 7.2.12, 7.2.10, 7.3.0RC1 or 5.6.38 (same issue with every different PHP version)
    Divi theme 3.17, 3.17.2 through to 3.19.2 (every version of Divi that I’ve used since installing Easy Updates Manager has this same issue)

    php_error_log:

    [30-Dec-2018 02:08:39 UTC] PHP Notice:  Undefined property: stdClass::$theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 269
    [30-Dec-2018 02:08:39 UTC] PHP Notice:  Undefined property: stdClass::$theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 300
    [30-Dec-2018 02:08:39 UTC] PHP Notice:  Undefined property: stdClass::$theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 418

    Line 269 is “$context = get_theme_root( $item->theme );”
    Line 300 is “$upgrader_item = $item->theme;”
    Line 418 is “$theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result );”

    Email is:

    WordPress site: http://localhost/www.ancpl.com/
    The following themes were successfully updated:
     * SUCCESS: Divi child theme
    
    UPDATE LOG
    ==========
    
    Divi child theme
    ----------------
      Updating theme: Divi child theme
      The theme is at the latest version.
      Error: [fs_unavailable] Could not access filesystem.

    The issue with the email message is that no error is logging saying that the Divi theme update has failed, just the fs_unavailable message.

    On my localhost dev site the theme root is

    C:\xampp\htdocs\www.ancpl.com\wp-content\themes

    and contains two directories

    Divi
    divi-child-theme

    If I deactivate the child theme I still get this issue. If I install and activate the Twenty Nineteen theme I still get this issue.

    I’ve added some error logging (I’ve never used PHP so please excuse the rough code) to the first error:

    			case 'theme':
    268				$upgrader = new Theme_Upgrader( $skin );
    269				$context  = get_theme_root( $item->theme );
    270				error_log("Issue starts",0);
    271				error_log("item",0);
    272				error_log(print_r($item,true));
    273				error_log("context",0);
    274				error_log(print_r($context,true));
    275				error_log("theme",0);
    276				error_log(print_r($theme,true));
    277				error_log("upgrader_item",0);
    278				error_log(print_r($upgrader_item,true));
    279				error_log("item_name",0);
    280				error_log(print_r($item_name,true));
    281				break;

    Which creates the following in the error log:

    [30-Dec-2018 04:09:58 UTC] PHP Notice:  Undefined property: stdClass::$theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 269
    [30-Dec-2018 04:09:58 UTC] Issue starts
    [30-Dec-2018 04:09:58 UTC] item
    [30-Dec-2018 04:09:58 UTC] stdClass Object
    (
        [new_version] => 3.19.2
        [url] => https://www.elegantthemes.com/api/changelog/divi.txt
    )
    
    [30-Dec-2018 04:09:58 UTC] context
    [30-Dec-2018 04:09:58 UTC] C:\xampp\htdocs\www.ancpl.com/wp-content/themes
    [30-Dec-2018 04:09:58 UTC] theme
    [30-Dec-2018 04:09:58 UTC] PHP Notice:  Undefined variable: theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 276
    [30-Dec-2018 04:09:58 UTC] 
    [30-Dec-2018 04:09:58 UTC] upgrader_item
    [30-Dec-2018 04:09:58 UTC] PHP Notice:  Undefined variable: upgrader_item in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 278
    [30-Dec-2018 04:09:58 UTC] 
    [30-Dec-2018 04:09:58 UTC] item_name
    [30-Dec-2018 04:09:58 UTC] PHP Notice:  Undefined variable: item_name in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 280

    I then added the following error logging:

    			case 'theme':
    313				$upgrader_item = $item->theme;
    314				error_log(print_r($upgrader_item,true));
    315				$theme = wp_get_theme( $upgrader_item );
    316				error_log(print_r($theme,true));
    317				$item_name = $theme->Get( 'Name' );
    318				error_log(print_r($item_name,true));
    319				$skin->feedback( __( 'Updating theme: %s' ), $item_name );
    320				error_log(print_r($skin,true));
    321				break;

    which created this log excerpt with ONLY the Divi theme enabled:

    [30-Dec-2018 05:02:52 UTC] PHP Notice:  Undefined property: stdClass::$theme in C:\xampp\htdocs\www.ancpl.com\wp-admin\includes\class-wp-automatic-updater.php on line 313
    [30-Dec-2018 05:02:52 UTC] 
    [30-Dec-2018 05:02:52 UTC] WP_Theme Object
    (
        [update] => 
        [theme_root:WP_Theme:private] => C:\xampp\htdocs\www.ancpl.com/wp-content/themes
        [headers:WP_Theme:private] => Array
            (
                [Name] => Divi
                [ThemeURI] => http://www.elegantthemes.com/gallery/divi/
                [Description] => Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
                [Author] => Elegant Themes
                [AuthorURI] => http://www.elegantthemes.com
                [Version] => 3.17.2
                [Template] => 
                [Status] => 
                [Tags] => responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
                [TextDomain] => 
                [DomainPath] => 
            )
    
        [headers_sanitized:WP_Theme:private] => 
        [name_translated:WP_Theme:private] => 
        [errors:WP_Theme:private] => 
        [stylesheet:WP_Theme:private] => Divi
        [template:WP_Theme:private] => Divi
        [parent:WP_Theme:private] => 
        [theme_root_uri:WP_Theme:private] => 
        [textdomain_loaded:WP_Theme:private] => 
        [cache_hash:WP_Theme:private] => 9e1f46760860e4d6f868a8159e03f758
    )
    
    [30-Dec-2018 05:02:52 UTC] Divi
    [30-Dec-2018 05:02:52 UTC] Automatic_Upgrader_Skin Object
    (
        [messages:protected] => Array
            (
                [0] => Updating theme: Divi
            )
    
        [upgrader] => 
        [done_header] => 
        [done_footer] => 
        [result] => 
        [options] => Array
            (
                [url] => 
                [nonce] => 
                [title] => 
                [context] => 
            )
    
    )

    Thank you for your assistance, I’m happy to make modifications to my dev site’s php files for testing and or provide you with any information needed.

    Kind regards,
    A.

  • The topic ‘Error: [fs_unavailable] Could not access filesystem.’ is closed to new replies.