Rank Math SEO causing issues with WP Editor (PHP Fatal error)

#249830
  • Resolved Christian Schaffner
    Rank Math free

    Hi

    We recently experienced problems with editing pages with Elementor Pro. After getting support from them, we identified the problem to be a fatal PHP error, that occurred when we tried to edit a page (independent of wether Elementor was activated or not, but only causing a problem with Elementor…). The error in the apache error_log file was:

    PHP Warning: Undefined array key “posts_per_page” in ~/htdocs/wp-admin/includes/ajax-actions.php on line 3006, referer: https://our-site.url/wp-admin/post.php?post=120&action=edit
    [Thu Aug 26 11:02:46.632192 2021] [php:error] [pid 1947057] [client 10.6.219.40:56145] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in ~/htdocs/wp-admin/includes/ajax-actions.php:3006
    Stack trace:
    #0 ~/htdocs/wp-includes/class-wp-hook.php(303): wp_ajax_query_attachments()
    #1 ~/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #2 ~/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
    #3 ~/htdocs/wp-admin/admin-ajax.php(187): do_action()
    #4 {main}
    thrown in ~/htdocs/wp-admin/includes/ajax-actions.php on line 3006, referer: https://our-site.url/wp-admin/post.php?post=120&action=edit

    Disabling Rank MATH CEO plugin resolved the issue. Do you know what could be the problem here?

    Thanks for your support,
    Christian Schaffner.

    PS: Here is the system Info:

    `
    ### rank-math ###

    version: 1.0.70
    database_version: 1
    plugin_plan: Free
    active_modules: link-counter, analytics, seo-analysis, sitemap, rich-snippet, acf, role-manager, local-seo
    refresh_token: No token
    permissions:
    Search Console: Not Given
    rank_math_404_logs: Created
    rank_math_redirections: Created
    rank_math_redirections_cache: Created
    rank_math_internal_links: Created
    rank_math_internal_meta: Created
    rank_math_analytics_gsc: Doesn’t exists
    rank_math_analytics_objects: Created

    ### wp-core ###

    version: 5.8
    site_language: en_US
    user_language: en_US
    timezone: Europe/Zurich
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: undefined
    environment_type: production
    user_count: 80
    dotorg_communication: true

    ### wp-active-theme ###

    name: NanoSpaceChild (NanoSpaceChild)
    version: 1.0
    author:
    author_website: (undefined)
    parent_theme: NanoSpace (nanospace)
    theme_features: core-block-patterns, tha_hooks, widgets-block-editor, menus, customize-selective-refresh-widgets, custom-header, child-theme-stylesheet, editor-style, title-tag, custom-logo, automatic-feed-links, html5, custom-background, post-thumbnails, widgets
    theme_path: ~/htdocs/wp-content/themes/NanoSpaceChild
    auto_update: Disabled

    ### wp-parent-theme ###

    name: NanoSpace (nanospace)
    version: 1.2.1
    author: Labinator
    author_website: https://labinator.com/
    theme_path: ~/htdocs/wp-content/themes/nanospace
    auto_update: Disabled

    ### wp-mu-plugins (1) ###

    Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2

    ### wp-plugins-active (31) ###

    301 Redirects: version: 2.70, author: WebFactory Ltd, Auto-updates enabled
    Advanced Custom Fields: version: 5.10, author: Delicious Brains, Auto-updates enabled
    Check & Log Email: version: 1.0.2, author: WPChill, Auto-updates enabled
    Child Theme Generator: version: 2.2.7, author: Serafino Corriero, Auto-updates enabled
    Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates enabled
    Defender Pro: version: 2.5.7, author: WPMU DEV, Auto-updates enabled
    Ele Custom Skin: version: 3.1.2, author: Dudaster.com, Auto-updates enabled
    Elementor: version: 3.4.2, author: Elementor.com, Auto-updates enabled
    Elementor Pro: version: 3.3.7, author: Elementor.com (latest version: 3.3.8), Auto-updates enabled
    Element Pack Lite – Addon for Elementor: version: 3.1.1, author: BdThemes, Auto-updates enabled
    EmbedPress: version: 3.1.2, author: WPDeveloper, Auto-updates enabled
    Essential Addons for Elementor: version: 4.8.4, author: WPDeveloper, Auto-updates enabled
    File Manager Advanced: version: 4.0, author: modalweb, Auto-updates enabled
    Filester – File Manager Pro: version: 1.7.3, author: Ninja Team, Auto-updates enabled
    Health Check & Troubleshooting: version: 1.4.5, author: The WordPress.org community, Auto-updates enabled
    Image Hover Effects – Elementor Addon: version: 1.3.4, author: Blocksera, Auto-updates enabled
    LoginPress – Customizing the WordPress Login: version: 1.5.5, author: WPBrigade, Auto-updates enabled
    Polylang: version: 3.1.1, author: WP SYNTEX, Auto-updates enabled
    Polylang Connect for Elementor: version: 1.0.6, author: David Decker – DECKERWEB, Auto-updates enabled
    Rank Math SEO: version: 1.0.70, author: Rank Math, Auto-updates enabled
    Self-Hosted Google Fonts: version: 1.0.1, author: asadkn, Auto-updates enabled
    Shibboleth: version: 2.2.2, author: Michael McNeill, mitcho (Michael čŠ³č²“ Erlewine), Will Norris (latest version: 2.3), Auto-updates disabled
    Ultimate Member: version: 2.2.3, author: Ultimate Member, Auto-updates enabled
    Visibility Logic for Elementor: version: 2.1.7, author: StaxWP, Auto-updates enabled
    WP Downgrade | Specific Core Version: version: 1.2.2, author: Reisetiger, Auto-updates enabled
    WP File Manager: version: 7.1.2, author: mndpsingh287, Auto-updates enabled
    WP Mail SMTP: version: 3.0.3, author: WPForms, Auto-updates enabled
    Wp Maximum Upload File Size: version: 1.0.6, author: CodePopular, Auto-updates enabled
    WPMU DEV Dashboard: version: 4.11.2, author: WPMU DEV, Auto-updates enabled
    WP Rollback: version: 1.7.1, author: Impress.org, Auto-updates enabled
    WP Statistics: version: 13.1, author: VeronaLabs, Auto-updates enabled

    ### wp-server ###

    server_architecture: Linux 4.18.0-305.10.2.el8_4.x86_64 x86_64
    httpd_software: Apache
    php_version: 8.0.8 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 300
    memory_limit: 2048M
    admin_memory_limit: 4096M
    max_input_time: 300
    upload_max_filesize: 2048M
    php_post_max_size: 2048M
    curl_version: 7.61.1 OpenSSL/1.1.1g
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true

    ### wp-database ###

    extension: mysqli
    server_version: 5.1.35-community-log
    client_version: mysqlnd 8.0.8

    ### wp-constants ###

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: ~/htdocs/wp-content
    WP_PLUGIN_DIR: ~/htdocs/wp-content/plugins
    WP_MEMORY_LIMIT: 2048M
    WP_MAX_MEMORY_LIMIT: 4096M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined

    ### wp-filesystem ###

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable

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

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

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Hi,

    Thanks for getting back to us… At the moment I unfortunately can’t give you full access to our site (due to internal regulations). Is there any other way I can help with your analysis?

    Kind regards,
    Christian Schaffner.

    Hello,

    We understand and respect your decision about investigating this issue closely on your site.

    Could you please update Rank Math and let us know if the issue still persists? Here’s the latest version for your reference:
    https://rankmath.com/changelog/free

    I hope that helps.

    Thank you.

    So, indeed, the latest version of the Rank Math SEO Plugin (Version 1.0.71) seems to work with Elementor Pro (Version 3.4.1) when loading… which is good!

    Interesting enough, when existing Elementor (selecting “EXIT TO DASHBOARD”) we again get the following error:

    [Wed Sep 01 21:13:01.974019 2021] [php:error] [pid 2351939] [client 213.55.212.157:60513] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in ~/htdocs/wp-admin/includes/ajax-actions.php:3006
    Stack trace:
    #0 ~/htdocs/wp-includes/class-wp-hook.php(303): wp_ajax_query_attachments()
    #1 ~/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #2 ~/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
    #3 ~/htdocs/wp-admin/admin-ajax.php(187): do_action()
    #4 {main}
    thrown in ~/htdocs/wp-admin/includes/ajax-actions.php on line 3006, referer: https://our-site.url/wp-admin/post.php?post=3105&action=edit

    This doesn’t seem to be a real problem, since it’s after editing a page only… So, I am not sure if this can be considered fixed, or at least improved… šŸ™‚

    Kind regards,
    Christian Schaffner.

    Hello,

    Could you please attempt to conduct the troubleshooting again and enable only Rank Math, Elementor and the default theme (example: Twenty-Twenty)? See if the issue goes away after doing so.

    If the issue persists, we may need to take a closer look at that. Since you aren’t able to provide a login for us. are you able to create a staging site for us instead?

    Looking forward to helping you with this one. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Rank Math SEO causing issues with WP Editor (PHP Fatal error)’ is closed to new replies.