Date Archives Critical Errors with PHP8+

#558546
  • Resolved Anonymous
    Rank Math free

    Recently moved a site to Rank Math, and everything was working great, with the exception of Date Archives. Any time I would try to access the date archives, WordPress would show a critical error page.

    Date Archives was enabled in RM.

    When I disabled RM, date archives worked good. Something about RM was causing this error.

    Enabled the WP debug log, and kept getting this fatal error for the date archive pages — “/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 428”

    Tried enabling and disabling Breadcrumbs within the RM settings, but that did not work.

    The site was running PHP 8.2 when these problems happened.

    Changed to PHP 8.0 and same problems.

    Changed to PHP 7.4 and now everything works good.

    The RM Date Archives and Breadcrumbs needs to be updated for PHP 8.0+ please.

    Running WP 6.2 if it matters.

    Thank you. Love your product!

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

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

    That means that the archive formats you have for the breadcrumbs are incorrect. Please make sure to head over to WordPress Dashboard > Rank Math > General Settings > Breadcrumbs and set the Archive Format to the following:

    
    Archives for %s
    

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    That worked!

    Changed the Archive Format and the Search Results Format, and no more errors on PHP 8.2

    Thank you soooo much!

    Hello,

    We are super happy that this resolved your issue. 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.

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

The ticket ‘Date Archives Critical Errors with PHP8+’ is closed to new replies.