• Resolved Denis Pintilie

    (@denisflorin197)


    Hello,

    I’m seeing a PHP error on this URL /wp-admin/admin.php?page=rank-math-status&view=status. Below is the error:

    sh: 1: gs: not found
    [28-Feb-2023 08:34:12 UTC] PHP Recoverable Error: Uncaught exception 'TypeError' with message 'array_slice(): Argument #1 ($array) must be of type array, bool given' in /app/web/wp-content/plugins/seo-by-rank-math/includes/modules/status/class-error-log.php on line 126, request: GET /wp-admin/admin.php?page=rank-math-status&view=status, request_id: 078858502cbce469416cb793830b012f
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @denisflorin197,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please confirm if you have custom permissions in your WordPress files and folders? It seems that Rank Math wasn’t able to parse the error log.

    Please ensure that you are using the latest version of Rank Math plugin. If not yet, please do update them. You may refer to our changelog page here: https://rankmath.com/changelog/

    If that doesn’t work, please head over to your WP Dashboard > Rank Math > Status & Tools > System Status and click the “Copy System Info to Clipboard” button, and paste it here so we can further analyze the issue.

    Looking forward to helping you.

    Thread Starter Denis Pintilie

    (@denisflorin197)

    Hello,

    The error is shown exactly on that page.

    Image here.

    Thanks,<gwmw style=”display:none;”></gwmw>

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @denisflorin197,

    The error 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.

    The issue most likely occurred 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 the WP filesystem nor Rank Math can read it on your site.

    We would 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.

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