• Resolved badslayer1

    (@badslayer1)


    Hello, When we activate the plugin we get a fatal error:

    [17-Feb-2022 07:53:14 UTC] PHP Fatal error:  Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type resource, null given in /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php:212
    Stack trace:
    #0 /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput()
    #1 /home/example/wp-content/plugins/xwp-reviews-plugin-for-google/trustindex-plugin.class.php(556): WP_Filesystem_FTPext->put_contents()
    #2 /home/example/wp-content/plugins/xwp-reviews-plugin-for-google/trustindex-plugin.class.php(513): TrustindexPlugin->handleCssFile()
    #3 /home/example/wp-includes/class-wp-hook.php(307): TrustindexPlugin->plugin_loaded()
    #4 /home/example/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #5 /home/example/wp-includes/plugin.php(474): WP_Hook->do_action()
    #6 /home/example/wp-settings.php(450): do_action()
    #7 /home/example/wp-config.php(103): require_once('...')
    #8 /home/example/wp-load.php(50): require_once('...')
    #9 /home/example/wp-admin/admin-ajax.php(22): require_once('...')
    #10 {main}
      thrown in /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Adam from Trustindex

    (@adam140299)

    Hello @badslayer1!

    We have new version of our plugin, you can upgrade yours to it. There will be notifications about your problem. Possibly, the problem is coming from your FTP settings, please check it as well.

    Please let me know your results about it.

    Adam,
    Trustindex

    Thread Starter badslayer1

    (@badslayer1)

    Hello,

    Unfortunately it does not work yet. after the update we get this error

    Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type resource, null given in /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php:212 Stack trace: #0 /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput() #1 /home/example/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(571): WP_Filesystem_FTPext->put_contents() #2 /home/example/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(514): TrustindexPlugin_google->handleCssFile() #3 /home/example/wp-includes/class-wp-hook.php(307): TrustindexPlugin_google->plugin_loaded() #4 /home/example/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /home/example/wp-includes/plugin.php(474): WP_Hook->do_action() #6 /home/example/wp-settings.php(450): do_action() #7 /home/example/wp-config.php(103): require_once('...') #8 /home/example/wp-load.php(50): require_once('...') #9 /home/example/wp-blog-header.php(13): require_once('...') #10 /home/example/index.php(17): require('...') #11 {main} thrown in /home/example/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212

    Plugin Support tomwolf

    (@tomwolfhun)

    Hello @badslayer1 ,

    It seems you have connection errors when WordPress tried to connect via FTP.
    You can set/modify it here: wp-config.php. Search for the line: define(‘FS_METHOD’,...); (Maybe you should eace the FTP method. To do that, just use this config line: define(‘FS_METHOD’, ‘direct’);

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