• Resolved wendriftwood

    (@wendriftwood)


    Hi, recently the “SSH SFTP Updater Support” started showing an error all of a sudden, it had to be deactivated so the admin could log in WP dashboard.

    The full error message displayed was:

    Fatal error: Uncaught Error: Call to a member function stat() on bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:262 Stack trace: #0 /var/www/html/wordpress/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-style-manager.php(121): WP_Filesystem_SSH2->is_dir() #1 /var/www/html/wordpress/wp-includes/class-wp-hook.php(301): RMP\Features\Inc\Style_Manager->save_style_css_on_file() #2 /var/www/html/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #3 /var/www/html/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action() #4 /var/www/html/wordpress/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-rmp-migration.php(103): do_action() #5 /var/www/html/wordpress/wp-includes/class-wp-hook.php(303): RMP\Features\Inc\RMP_Migration->migrate() #6 /var/www/html/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #7 /var/www/html/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action() #8 /var/www/html/wordpress/wp-co in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 262

    We are using the latest 0.8.4 version. Any idea what could have caused this?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Anderson

    (@davidanderson)

    The source of the error is in the plugin wp-content/plugins/responsive-menu – it uses the WP filesystem API incorrectly. Specifically, it makes calls without checking whether they succeed. And when they don’t succeed, it just carries on, causing the fatal error. This can only be rectified in that plugin, so you will want to speak to its authors.

    Thread Starter wendriftwood

    (@wendriftwood)

    Thanks @davidanderson

    We’ve downgraded the problematic plugin “Responsive Menu” and the PHP error is now resolved.

    However during update process for plugins or WP, the SSH SFTP Updater plugin displays the following error messages:

    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 263
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 263
    The update process is starting. This process may take a while on some hosts, so please be patient.
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 263
    Enabling Maintenance mode…
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 263
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 258
    
    Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 263

    The updates do get applied at the end, just wondering what could have caused the error messages?

    Plugin Author David Anderson

    (@davidanderson)

    The cause is the same – attempting to do file operations on a link that was not successfully set up. The calling software should first check that the link was successfully set up, before attempting to use it. Otherwise, you get error messages (which is the proper behaviour, since that behaviour is erroneous and the caller will want to fix it).

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP – Fatal error: Uncaught Error’ is closed to new replies.