PHP Warning seo-by-rank-math

#123683
  • Resolved Dmitry
    Rank Math free

    Today I installed the Rank Math plugin on one of my sites. I see many errors in the web server log. I did it –
    find. -type f -exec chmod 644 {} +
    find. -type d -exec chmod 755 {} +, but the problem remained.
    Debian 10, lighttpd 1.4.57, php-fpm 7.4.

    FastCGI-stderr:PHP message: PHP Warning: ftp_fget() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146PHP message: PHP Warning: Use of undefined constant FS_CHMOD_FILE – assumed ‘FS_CHMOD_FILE’ (this will throw an Error in a future version of PHP) in /www/free/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-cache.php on line 121PHP message: PHP Warning: ftp_fput() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212PHP message: PHP Warning: ftp_chmod() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 28

    I also see a lot of these mistakes.

    (mod_fastcgi.c.495) FastCGI-stderr:PHP message: PHP Warning: ftp_nlist() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420PHP message: PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230PHP message: PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 23

    (mod_fastcgi.c.495) FastCGI-stderr:PHP message: PHP Warning: ftp_nlist() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420PHP message: PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230PHP message: PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230PHP message: xd0x91xd0xb0xd0xb7xd0xb0 xd0xb4xd0xb0xd0xbdxd0xbdxd1x8bxd1x85 WordPress xd0xb2xd0xbexd0xb7xd0xb2xd1x80xd0xb0xd1x82xd0xb8xd0xbbxd0xb0 xd0xbexd1x88xd0xb8xd0xb1xd0xbaxd1x83 Table ‘freedomrussia.wp_rank_math_analytics_gsc’ doesn’t exist xd0xb2 xd0xbexd1x82xd0xb2xd0xb5xd1x82 xd0xbdxd0xb0 xd0xb7xd0xb0xd0xbfxd1x80xd0xbexd1x81 SELECT COUNT(DISTINCT(created)) AS days FROM wp_rank_math_analytics_gsc LIMIT 0, 1, xd0xb2xd1x8bxd0xbfxd0xbexd0xbbxd0xbdxd0xb5xd0xbdxd0xbdxd1x8bxd0xb9 require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, CMB2_Bootstrap_270->include_cmb, cmb2_bootstrap, do_action(‘cmb2_admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, RankMathAdminOptions->register_option_page, include(‘/plugins/seo-by-rank-math/includes/modules/analytics/views/options.php’), RankMathAnalyticsDB::info, MyThemeShopDatabaseQuery_Builder->getVar, MyThemeShopDatabaseQuery_Builder->onePHP message: xd0x91xd0xb0xd0xb7xd0xb0 xd0xb4xd0xb0xd0xbdxd0xbdxd1x8bxd1x85 WordPress xd0xb2xd0xbexd0xb7xd0xb2xd1x80xd0xb0xd1x82xd0xb8xd0xbbxd0xb0 xd0xbexd1x88xd0xb8xd0xb1xd0xbaxd1x83 Table ‘freedomrussia.wp_rank_math_analytics_gsc’ doesn’t exist xd0xb2 xd0xbexd1x82xd0xb2xd0xb5xd1x82 xd0xbdxd0xb0 xd0xb7xd0xb0xd0xbfxd1x80xd0xbexd1x81 SELECT COUNT(id) FROM wp_rank_math_analytics_gsc LIMIT 0, 1, xd0xb2xd1x8bxd0xbfxd0xbexd0xbbxd0xbdxd0xb5xd0xbdxd0xbdxd1x8bxd0xb9 require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, CMB2_Bootstrap_270->include_cmb, cmb2_bootstrap, do_action(‘cmb2_admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, RankMathAdminOptions->register_option_page, include(‘/plugins/seo-by-rank-math/includes/modules/analytics/views/options.php’), RankMathAnalyticsDB::info, MyThemeShopDatabaseQuery_Builder->getVar, MyThemeShopDatabaseQuery_Builder->on

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    1. We wouldn’t suggest modifying the www-data because you need it as a user and group for the entire WordPress folder.

    2. You can disable the SEO Analysis module in Rank Math > Dashboard:
    https://i.rankmath.com/pB7qDv

    3. You’ll get that error in Database tools due to missing tables in your Database.

    I hope that helps. Thank you, and looking forward to your update.

    Dmitry
    Rank Math free

    I’m sorry, but you haven’t answered a question!
    1) Why do I see php errors?
    2) www-data is not a file, it is a lighttpd web server user. Read my questions carefully. 3) I cannot delete SEO Analysis. Spins obliquely on the delete button and nothing happens – the module is not deleted.

    Dmitry
    Rank Math free

    4) I forgot to tell you about another problem. I update plugins, theme and wordpress like this: I refresh the button, a window appears to enter the password of my ftp-user and an update takes place. After installing your plugin, I can’t do it – I see a mistake. Your plugin interferes with the work of the wordpress. Does your plugin want any special rights to the wp-content folder? The php error is associated with/wp-admin/includes/class-wp-filesystem-ftpext.php – what does this mean?

    Dmitry
    Rank Math free

    You didn’t help – I will permanently remove your plugin from the site.

    Hello,

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

    As my colleague mentioned in the first reply, you need to use www-data as user and group for the entire WP folder, so be careful on modifying those.

    There seems to be a conflict within your plugin as well so I suggest doing a plugin conflict test by following this troubleshooting guide: https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Lastly, if the issue is resolved try to re-create the tables and the issue should be resolved:

    Please follow these steps:

    1. Update to the latest version of Rank Math Free & PRO

    2. Ensure that the Advanced Mode is selected:
    advanced mode

    3. Re-create tables by clicking WP Dashboard > Rank Math > Status & Tools > Database Tools and click the Re-create database Table button.
    re-create analytics tables

    Let me know how it goes.

    Looking forward to helping you.

    Dmitry
    Rank Math free

    1) you need to use www-data as user and group for the entire WP folder – You don’t realize it’s not safe?
    https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress

    2) You didn’t say anything about php bugs!
    expects parameter 1 to be resource, null given in /www/free/wp-admin/includes/class-wp-filesystem-ftpext.php
    PHP Warning: Use of undefined constant FS_CHMOD_FILE – assumed ‘FS_CHMOD_FILE’ (this will throw an Error in a future version of PHP) in /www/free/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-cache.php

    3) Yesterday I was fed up with the wanton fight against your plugin and removed it forever.

    Hello,

    1. Sorry about that. We are not experts on server setups or security so we can only answer questions about Rank Math. Please check with an expert or do your own research.

    2. We will need to check this with the dev. team.

    3. We are sorry to see you go.

    If you decide to try Rank Math again, we are here to help.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘PHP Warning seo-by-rank-math’ is closed to new replies.