WordPress technical problem with plugin

#510757
  • Resolved Amalia Coriani
    Rank Math free

    Hi,
    I have installed Rank Math and published my website, as soon as i did it i received an e-mail from wp claiming there was a fatal error with your plugin and my site may have problems. I checked and I can log in, I see everything as designed and nothing is wrong but they still send me notification about it.
    I can see an alert in my backend RankMath>Status and tools ( https://imgur.com/a/9g2HjEy )

    How do I fix this?

    Thank you

    Error Details:
    ====================
    Un errore di E_ERROR è stato causato nella linea 126 del file /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php. Messaggio di errore: Uncaught TypeError: array_slice(): Argument #1 ($array) must be of type array, bool given in /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php:126
    Stack trace:
    #0 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php(126): array_slice()
    #1 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php(76): RankMathStatusError_Log->get_error_log_rows()
    #2 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php(60): RankMathStatusError_Log->display_copy_button()
    #3 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-system-status.php(32): RankMathStatusError_Log->display()
    #4 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-status.php(105): RankMathStatusSystem_Status->display()
    #5 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/status/views/main.php(37): RankMathStatusStatus->display_body()
    #6 /web/htdocs/www.delmonteparisoli.it/home/wp-content/plugins/seo-by-rank-math/vendor/mythemeshop/wordpress-helpers/src/admin/class-page.php(259): include_once(‘…’)
    #7 /web/htdocs/www.delmonteparisoli.it/home/wp-includes/class-wp-hook.php(307): MyThemeShopAdminPage->display()
    #8 /web/htdocs/www.delmonteparisoli.it/home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #9 /web/htdocs/www.delmonteparisoli.it/home/wp-includes/plugin.php(476): WP_Hook->do_action()
    #10 /web/htdocs/www.delmonteparisoli.it/home/wp-admin/admin.php(259): do_action()
    #11 {main}
    thrown

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    The error log you shared is originating because our plugin is not able to retrieve the contents of the debug file on your website.

    To retrieve this we make use of the function get_contents_array() and pass the log file path but on your website, this is returning false, which means that it can’t find the log file.

    This won’t cause any issue with SEO and the only thing that this does is the impossibility of checking the log file from within our plugin.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Great, thank you!

    Hi,
    I should have fixed a problem with the LOG ERROR/ Debug file with my host but I still get the notice of Fatal Error and WP sends me notification every day about it.
    It should find and pass the log file now?
    Thank you

    Hello,

    The issue most likely occurring due to the error log’s folder placement. As the value is returning false, instead of an array of data, the system fails and due to that, neither WP filesystem or Rank Math can read it on your site.

    Since we can’t fix issues in the PHP configuration, I’d suggest you to get in touch with your hosting provider in order to fix this issue.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

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

You must be logged in to reply to this ticket.