PHP 8.1 Warning

#556777
  • Resolved Burak Sahin
    Rank Math free

    Hi,

    I use php 8.1 and latest versions of wordpress and woocommerce.
    I see this warning.

    Warning: Uninitialized string offset 0 in /srv/htdocs/wp-content/plugins/seo-by-rank-math/vendor/mythemeshop/wordpress-helpers/src/helpers/class-str.php on line 235

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

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

    This error usually occurs if there is a whitespace or special characters in starting or ending of the SEO title. Please try checking for that on the affected page and if it’s there, please remove that and update the page. After that, the issue should be resolved.

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

    Thank you.

    Hi,
    I have thousands of products. How I can find that one easily?

    Hello,

    If you see the warning upon opening your product, then you may need to check its title for whitespace or special characters.

    However, since it’s only a notice, it should not be displayed on your front end. This happens when the debug mode is enabled on your site.

    In this case, please follow the steps in this link to ensure that those messages are not appearing on your website’s front end.

    Hope that helps.

    Thank you.

    Hi there,
    I want to keep my website with zero warning or error.
    If this is a bug can you fix it?

    If it is not a bug, can you tell me how to fix?

    Hello,

    As mentioned here,
    https://support.rankmath.com/ticket/php-8-1-warning/?view=all#post-557090

    Please edit the affected post/product, and check the SEO Title if it’s containing any whitespace or any special character at the start or ending in the Rank Math SEO Meta box.

    If you’re unable to do so, please edit the first post on this ticket and include your WordPress & FTP logins alongside the affected URLs in the designated Sensitive Data section, and we’ll check that for you.

    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/

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘PHP 8.1 Warning’ is closed to new replies.