Gravity forms upgrade error

Hello When ever I try to upgrade gravity forms on my multisite instance I am getting the following errors:

Fatal error: Uncaught TypeError: ftp_pwd(): Argument #1 ($ftp) must be of type resource, null given in /var/www/sites_htdocs/wp/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
( ! ) TypeError: ftp_pwd(): Argument #1 ($ftp) must be of type resource, null given in /var/www/sites_htdocs/wp/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
Call Stack

Time Memory Function Location

1 0.0000 392608 {main}( ) …/plugins.php**:0
2 0.8111 40500488 do_action( $hook_name = ‘activate_gravityforms/gravityforms.php’ ) …/plugins.php
:194
3 0.8111 40500864 WP_Hook->do_action( $args = [0 => ‘’] ) …/plugin.php
:476
4 0.8111 40500864 WP_Hook->apply_filters( $value = ‘’, $args = [0 => ‘’] ) …/class-wp-hook.php
:331
5 0.8111 40501992 GFForms::activation_hook( ‘’ ) …/class-wp-hook.php
:307
6 0.8119 40768680 GF_Upgrade->maybe_upgrade( ) …/gravityforms.php
:785
7 0.8178 40770576 GF_Upgrade->upgrade( $from_db_version = ???, $force_upgrade = ??? ) …/class-gf-upgrade.php
:96
8 0.8843 40789672 GF_Upgrade->post_upgrade_schema( $from_db_version = ‘2.6.7’, $force_upgrade = FALSE ) …/class-gf-upgrade.php
:166
9 0.8844 40789672 GF_Upgrade->set_upgrade_ended( ) …/class-gf-upgrade.php
:761
10 0.8866 40772160 do_action( $hook_name = ‘gform_post_upgrade’, …$arg = variadic(‘2.6.7’, ‘2.6.7’, FALSE) ) …/class-gf-upgrade.php
:305
11 0.8866 40772536 WP_Hook->do_action( $args = [0 => ‘2.6.7’, 1 => ‘2.6.7’, 2 => FALSE] ) …/plugin.php
:476
12 0.8866 40772536 WP_Hook->apply_filters( $value = ‘’, $args = [0 => ‘2.6.7’, 1 => ‘2.6.7’, 2 => FALSE] ) …/class-wp-hook.php
:331
13 0.8866 40773664 Gravity_Forms\Gravity_Forms\TranslationsPress_Updater->install( $locale = ??? ) …/class-wp-hook.php
:305
14 0.8928 43145640 Gravity_Forms\Gravity_Forms\TranslationsPress_Updater->install_translation( $translation = [‘language’ => ‘fr_FR’, ‘version’ => ‘2.6.7.1’, ‘updated’ => ‘2022-10-18T07:35:21+00:00’, ‘english_name’ => ‘French (France)’, ‘native_name’ => ‘Français’, ‘package’ => ‘https://packages.translationspress.com/rocketgenius/gravityforms/gravityforms-fr_FR.zip’, ‘iso’ => [0 => ‘fr’]] ) …/class-translationspress-updater.php
:287
15 0.8928 43145720 WP_Filesystem_FTPext->is_dir( $path = ‘/var/www/sites_htdocs/wp/wp-content/languages/plugins/’ ) …/class-translationspress-updater.php
:316
16 0.8928 43145720 WP_Filesystem_FTPext->cwd( ) …/class-wp-filesystem-ftpext.php
:450
17 0.8928 43145720 ftp_pwd( $ftp = NULL ) …/class-wp-filesystem-ftpext.php
:**230

We are currently running the latest version of WP Core so not sure what conflict there might be

I found this topic after replying to the ticket you created a few hours ago. Please note that this forum is not an official support channel, so for customers with an active license it’s always recommended to submit a support ticket instead of posting here, to get faster and more accurate support.

Just for the record, for any other visitor landing to this thread looking for a solution, I’m leaving here the link to the WordPress core trac ticket which explains it’s a WordPress issue and how to solve it:
https://core.trac.wordpress.org/ticket/48689#comment:18

If you have any further comments, please reply to the message received for your ticket.