• Resolved jamie601

    (@jamie601)


    Hello

    I’m encountering a PHP Fatal error: Uncaught Error when updating Gravity Forms. According to Gravity Forms support it is a conflict with the SSH SFTP Updater Support plugin.

    Call to a member function stat() on bool in /usr/share/wordpress/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:262

    Is this a known issue and what can I do to continue using both Gravity Forms and SSH SFTP Updater Support?

    Thanks

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

    (@davidanderson)

    You’ll want to get the full stack trace to find what ultimately triggers the error. It’s tripped in this plugin, but the ultimate cause of that error is always the caller: it’s something that has tried to set up a filesystem connection, but carried on after ignoring an error code, resulting in an eventual fatal error.

    i.e. It tries to use a filesystem link without checking first to see if it’s available. That results in questions that can’t be solved (e.g. “does this file exist?” – you can’t answer either “yes” or “no” if the connection wasn’t made, you can only crash instead).

    So, the issue has to be fixed in the plugin doing that, as the ultimate crash there is actually the correct thing to do programmatically when asked an impossible question that the caller should not have asked (it should instead have checked the connection first).

    Plugin Author David Anderson

    (@davidanderson)

    Having re-read your description, not all of that is necessarily relevant.

    The WordPress updater doesn’t actually call code inside a plugin when updating it. It just unzips the plugin. So there’s probably not an issue inside either plugin – just that your SFTP connection didn’t succeed (and it’s WP that has the issue of carrying on when it shouldn’t, but, that doesn’t ultimately make a difference, since if the connection isn’t there, it can’t update anyway).

    You can also update plugins by unzipping them on your computer and uploading them to wp-content/plugins. If you keep seeing the error, then you will want to speak to the person running the SFTP server as to why connections are failing.

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