Rank Maths Causes 503 Errors

#259591
  • Resolved Issahaku Adam
    Rank Math free

    I have been experiencing 503 errors caused by RankMath. Whenever it occurs and I check my error log I see the message:

    PHP Warning: trim() expects parameter 1 to be string, -paarray given in /home/sobiaonline/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/classper.php on line 193

    When I check Line 193 above via the RankMath folder (public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/classper.php ) I see this;

    $this->description = $this->do_filter( ‘frontend/description’, trim( $this->paper->description() ) );

    There is something going on with the above line 193 definitely but I do not know what to do.

    This happens for two weeks now until I deactivated the plugins one by one and singled out the Rank Math plugin. It will just happen like 2-3 minutes three to four times a day.

    So when you visit the website you will say everything is ok but it’s not.

    Please help

Viewing 11 replies - 1 through 11 (of 11 total)
  • Ankit
    Rank Math business

    Hello,

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

    Since you didn’t mentioned the email address which is required to login, I am not able to login. Could you please increase the following values in your server:

    PHP Memory Limit: 512M
    Max input time: 180
    PHP time limit: 160
    PHP max input variables: 1000

    Let us know how it goes. Thank you.

    Hello,

    I have updated the sensitive data as requested just in case? I will make your suggested changes and get back to you.

    Thank you so much for the prompt response.

    Hello,

    Are you trying to use the following filter anywhere on your website?
    https://rankmath.com/kb/filters-hooks-api-developer/#change-meta-description

    This error points to an array used within this filter on your website.

    Looking forward to hearing back from you.

    No, please.

    I there somewhere I should look to look in the settings.

    Never added any code concerning RankMath

    I have updated the settings as suggested and will update you by tomorrow if there is no more occurrence. Thank you.

    Thank you.

    Hello,

    We can’t seem to locate any settings on your website that should cause an error. Also, could you please let us know any steps you did to produce that error log?

    Do update us once you have changed the PHP settings and if the error persists.

    We are looking forward to helping you with this one. Thank you.

    It’s gone.

    I used blog2social and I noticed after sharing a post the 503 occurred. But strange enough the error log does not show anything about blog2social. So I used a troubleshooter provided by blog2social and noticed the problem was that I disabled image hotlinking in All One WP Security Plugin. So I did not experience any issues since yesterday after I enabled the image hotlinking. Pray that it remains so

    Thank you for your efforts.

    Regards.

    Anas
    Rank Math business

    Hello,

    We are glad we addressed your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Prabhat
    Rank Math agency

    Hello,

    I logged into your website’s admin area but I was unable to replicate the issue.

    The error is not displayed in the post. Other than the first one, I also checked a few other posts and pages but I was still unable to replicate the issue.

    Please have a look at the screencast in the sensitive data section of this ticket.

    Could you please let us know if you followed any steps to reproduce the issue?

    Looking forward to hearing back from you.

    Thank you.

    I did not know how to reproduce the issue.

    But as mentioned earlier it does not happen all the time. So looking at individual post might not work. When it happens its quite brief one to 2 minutes and the site is back to normal but as you know this has a toll on my traffic for sometime now.

    Whenever the website is down the error log will print the error in line 193 I have already explained above. I was thinking that the ”expect parameter 1 to be string” is the main issue we have to solve based on line 193 but how to figure out the issue is also my problem.

    Dont know what else to do.

    Thank you.

    Ankit
    Rank Math business

    Hello,

    The PHP is showing the warning, and It’s not harmful to your website. It seems like the data is being sent as an array instead of a string value. There is the possibility of the data being corrupted to that individual post only. You can create another page and can paste the content of the post, and try once again?

    Looking forward to helping you. 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 11 replies - 1 through 11 (of 11 total)

The ticket ‘Rank Maths Causes 503 Errors’ is closed to new replies.