WPIntell

Source evidence

PHP Fatal error: Uncaught Error

SSH SFTP Updater Support · support · 2022-03-01T20:56:00+00:00

mixedsentiment
highseverity
0.88relevance
2replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
jamie601 resolved
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 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). 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.

Comments

2 shown
David Anderson / Team Updraft 2022-03-04T15:58:00+00:00

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).

David Anderson / Team Updraft 2022-03-04T16:00:00+00:00

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.