• Resolved srikanthmeenakshi

    (@srikanthmeenakshi)


    We are using Spectra plugin version 2.15.0 (PHP version 8.1.2, WP 6.6.1)

    Upon applying the latest plugin update, CLI WP invocation is resulting in this fatal error:

    Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type resource, null given in /home/prime/home/prime/sites/xyz.in/htdocs/wp-admin/includes/class-wp-filesystem-ftpext.php:212
    Stack trace:

    0 /home/prime/home/prime/sites/xyz.in/htdocs/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput()

    1 /home/prime/home/prime/sites/xyz.in/htdocs/wp-content/plugins/ultimate-addons-for-gutenberg/lib/gutenberg-templates/inc/classes/ast-block-templates-notices.php(32): WP_Filesystem_FTPext->put_contents()

    2 /home/prime/home/prime/sites/xyz.in/htdocs/wp-content/plugins/ultimate-addons-for-gutenberg/lib/gutenberg-templates/ast-block-plugin-loader.php(106): Gutenberg_Templates\Inc\Classes\Ast_Block_Templates_Notices->has_file_read_write()

    3 /home/prime/home/prime/sites/xyz.in/htdocs/wp-includes/class-wp-hook.php(324): Gutenberg_Templates\Ast_Block_Plugin_Loader->load_classes()

    4 /home/prime/home/prime/sites/xyz.in/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/prime/home/prime/sites/xyz.in/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /home/prime/home/prime/sites/xyz.in/htdocs/wp-settings.php(722): do_action() 7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1374): require(‘…’) 8 phar:///usr/local/bin/wp/vendor/wp-cli/eval-command/src/EvalFile_Command.php(56): WP_CLI\Runner->load_wordpress() 9 [internal function]: EvalFile_Command->__invoke() 10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() 11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}() 12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func() 13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(441): WP_CLI\Dispatcher\Subcommand->invoke() 14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(464): WP_CLI\Runner->run_command() 15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(136): WP_CLI\Runner->run_command_and_exit() 16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1228): WP_CLI\Runner->do_early_invoke() 17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process() 19 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 20 phar:///usr/local/bin/wp/php/boot-phar.php(20): include(‘…’) 21 /usr/local/bin/wp(4): include(‘…’) 22 {main}

    thrown in /home/prime/home/prime/sites/xyz.in/htdocs/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    Please fix

Viewing 7 replies - 1 through 7 (of 7 total)
  • Fatal Error

    Spectra version 2.15.0,
    running on WordPress version 6.6.1, PHP version 8.1.2
    has caused a crash on my site.

    Deactivated using wp-deactivate –all, because deactivating ultimate-addons-for-gutenberg returned the following error:
    “Warning: The ‘ultimate-addons-for-gutenberg.php’ plugin could not be found.
    Error: No plugins deactivated”

    Activating plugins until Spectra was determined to be the offending plugin.

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @srikanthmeenakshi ,@jonesre

    Sorry for the inconvenience caused to you.

    I am not able to replicate the issue on my installation. To assist you further, please open a support ticket at Spectra Support. Our support team will investigate the matter thoroughly.

    We appreciate your patience and cooperation.

    Have a nice day!

    Thread Starter srikanthmeenakshi

    (@srikanthmeenakshi)

    Done.

    Paul Ryan

    (@figureone)

    We noticed this too in the latest version. For more information, the error is triggered when using WP-CLI on the server. Information on installing and using WP-CLI is available here: https://wp-cli.org/

    Example error message:

    $ wp plugin list
    PHP Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php:212
    Stack trace:
    #0 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput()
    #1 /var/www/html/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/inc/classes/ast-block-templates-notices.php(32): WP_Filesystem_FTPext->put_contents()
    #2 /var/www/html/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/ast-block-plugin-loader.php(106): Gutenberg_Templates\Inc\Classes\Ast_Block_Templates_Notices->has_file_read_write()
    #3 /var/www/html/wp-includes/class-wp-hook.php(324): Gutenberg_Templates\Ast_Block_Plugin_Loader->load_classes()
    #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /var/www/html/wp-settings.php(722): do_action()
    #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1317): require('...')
    #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1235): WP_CLI\Runner->load_wordpress()
    #9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process()
    #11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #12 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...')
    #13 /usr/local/bin/wp(4): include('...')
    #14 {main}
    thrown in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
    Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php:212
    Stack trace:
    #0 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput()
    #1 /var/www/html/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/inc/classes/ast-block-templates-notices.php(32): WP_Filesystem_FTPext->put_contents()
    #2 /var/www/html/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/ast-block-plugin-loader.php(106): Gutenberg_Templates\Inc\Classes\Ast_Block_Templates_Notices->has_file_read_write()
    #3 /var/www/html/wp-includes/class-wp-hook.php(324): Gutenberg_Templates\Ast_Block_Plugin_Loader->load_classes()
    #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /var/www/html/wp-settings.php(722): do_action()
    #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1317): require('...')
    #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1235): WP_CLI\Runner->load_wordpress()
    #9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process()
    #11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #12 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...')
    #13 /usr/local/bin/wp(4): include('...')
    #14 {main}
    thrown in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @figureone,

    Sorry for the inconvenience caused to you.

    We have fixed this issue, please open a ticket with the support team if you want the dev version on urgent basis.

    Have a nice day!

    Paul Ryan

    (@figureone)

    Awesome! Thanks @mohsinbsf for the quick fix!

    Dear srikanthmeenakshi (@srikanthmeenakshi)
    Sorry, I can’t find a way to resolve the error at the beginning of this post. Could you tell me how you resolved in my case it forces me to deactivate astra-sites

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.