• Resolved travelavenger

    (@travelavenger)


    Hi there,

    After upgraded to 1.0.67, my site is down and the apache error log has the follow php fatal error:

    PHP Fatal error:  Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php:420\nStack trace:\n#0 
     /wp-admin/includes/class-wp-filesystem-ftpext.php(420): ftp_nlist()\n#1 /seo-by-rank-math/includes/modules/robots-txt/class-robots-txt.php(94): WP_Filesystem_FTPext->exists()\n#2 /seo-by-rank-math/includes/modules/robots-txt/options.php(14): RankMath\\Robots_Txt::get_robots_data()\n#3 /seo-by-rank-math/includes/admin/class-options.php(168): include('...')\n#4 /wp-includes/class-wp-hook.php(292): RankMath\\Admin\\Options->register_option_page()\n#5 
     /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()\n#6 /wp-includes/plugin.php(484): WP_Hook->do_action()\n#7 /seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php(26): do_action()\n#8 
     /seo-by-rank-math/vendor/cmb2/cmb2/init.php(165): cmb2_bootstrap()\n#9 /wp-includes/class-wp-hook.php(292): CMB2_Bootstrap_290->include_cmb()\n#10 
     /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()\n#11 
     /wp-includes/plugin.php(484): WP_Hook->do_action()\n#12 
     /wp-settings.php(560): do_action()\n#13 /wp-config.php(100): require_once('...')\n#14 /wp-load.php(37): 
     require_once('...')\n#15 /wp-admin/admin.php(34): require_once('...')\n#16 
     /wp-admin/update-core.php(10): require_once('...')\n#17 {main}\n  thrown in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 420

    please advise, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @travelavenger,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    We couldn’t reproduce this issue on our setup. We checked with both Apache & Nginx servers with FS_METHOD direct & FTP.

    Can you please share the Site info? You can copy the Site Info from Database >> Tools >> Site Health >> Info tab.

    Looking forward to helping you.

    Thread Starter travelavenger

    (@travelavenger)

    Hi there,

    Just want to confirm if the new version needs to use the server’s ftp, if so what is the purpose? thank you for your assistance!

    Plugin Author Rank Math

    (@rankmath)

    Hello @travelavenger

    The new version doesn’t need the server’s FTP. We show an option to edit the htaccess file in the admin when FS_METHOD is set to direct. When this constant is set to FTP we simply show there the message that the .htaccess file is not writable.

    Hope that helps. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php fatal error after upgrade to 1.0.67’ is closed to new replies.