• Resolved travelavenger

    (@travelavenger)


    Dear Support,

    Thank you for the follow up on the issue:
    https://www.ads-software.com/support/topic/php-fatal-error-with-version-1-0-68/

    However the new version is still having php fatal error, and the apache error log shows the following:

    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 /plugins/seo-by-rank-math/includes/modules/robots-txt/class-robots-txt.php(94): WP_Filesystem_FTPext->exists()\n#2 /plugins/seo-by-rank-math/includes/modules/robots-txt/options.php(14): RankMath\\Robots_Txt::get_robots_data()\n#3 /plugins/seo-by-rank-math/includes/admin/class-options.php(168): include('...')\n#4 /wp-includes/class-wp-hook.php(303): RankMath\\Admin\\Options->register_option_page()\n#5 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()\n#6 /wp-includes/plugins.php(470): WP_Hook->do_action()\n#7 /plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php(26): do_action()\n#8 /plugins/seo-by-rank-math/vendor/cmb2/cmb2/init.php(165): cmb2_bootstrap()\n#9 /wp-includes/class-wp-hook.php(303): CMB2_Bootstrap_290->include_cmb()\n#10 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()\n#11 /wp-includes/plugins.php(470): WP_Hook->do_action()\n#12 /wp-settings.php(578): do_action()\n#13 /wp-config.php(100): require_once('...')\n#14 /wp-load.php(50): 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, referer: https://www.somesitexxxx.com/

    I think it is a similar issue with 1.0.68, to give you more information to debug, I am using php 8 . Hope that this issue can be solve as I like using this plugin very much!!

    Thank you for your assistance!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 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.

    Can you please share the system information as requested earlier?

    Here is a screencast on how to fetch that:
    https://i.rankmath.com/pY1pV7

    Looking forward to helping you.

    There is some potentially helpful information about this issue here, along with a Trac ticket reference and the suggestion to add the following code into your wp-config.php file:

    if ( !defined( 'FS_METHOD' ) ):
        define( 'FS_METHOD', 'direct' );
    endif;
    Thread Starter travelavenger

    (@travelavenger)

    Dear Gal Baras,

    Thank you for the workaround solution.

    I am wondering if it is possible for changing the logic in the plugin not restricted to have ‘FS_METHOD’ to ‘direct’, for example add a checking to see if ‘FS_METHOD’ is direct , if not by pass the function and work normally instead of causing fatal error and shut down the site.

    Some company’s servers really have restriction on turning up some settings/functions and have firewall monitoring the traffic, if rankmath could add a if else checking on the setting would be great for this case.

    Thank you!

    Plugin Author Rank Math

    (@rankmath)

    Hello @travelavenger

    Please update to the latest version where we included a fix for this issue.

    Hope that helps. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP fatal error 1.0.69.1’ is closed to new replies.