Hello,
We apologize for the issue you are facing with the PHP warning regarding the undefined array key "type" in Rank Math. This warning typically indicates a problem with how data is being accessed in the code, which can sometimes be caused by conflicts with other plugins or themes.
Since you’ve already tried checking compatibility with other plugins, we recommend the following steps to further troubleshoot this issue:
-
Update Everything: Ensure that all your plugins, themes, and WordPress itself are updated to their latest versions. Sometimes, updates can resolve underlying issues.
-
Check for Conflicts: If you haven’t already, you can use the Health Check and Troubleshooting plugin to enable troubleshooting mode. This will deactivate all plugins and switch to a default theme, allowing you to activate Rank Math alone and see if the issue persists. Here’s how:
- Install the Health Check and Troubleshooting plugin from the WordPress repository.
- Navigate to Tools → Site Health → Troubleshooting and enable troubleshooting mode.
- Activate Rank Math and check if the warning still appears.
-
Review Local SEO Settings: Since you mentioned it might be related to the Phone number type, double-check your Local SEO settings in Rank Math to ensure everything is configured correctly.
-
Clear Cache: If you have any caching plugins or server-side caching, clear all caches after making changes.
If the issue continues after these steps, please reply to this ticket with your site URL so that a human agent from our support team can take a closer look at your specific setup and assist you further.
Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue!
Sources:
How to Fix Undefined Offset: 0 Warning » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I tried the steps above, but the issue was not resolved.
Hello,
It seems that you have already marked this as resolved. Could you please confirm?
If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

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/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
It seems the spaces in the phone numbers were triggering that error.
We replaced the spaces with hyphens, and the error stopped occurring. You can remove the hyphens and leave no space.
Please also check that this resolves the error from your end.
We have also shared this issue with the development team to review.
We hope this helps. Please let us know if you have further questions or concerns.
When I opened the site the issue still persisted. As a workaround I did change the code again to define contact type by default if not defined yet. This fixed the issue. Unfortunately once the plugin is updated I will need to apply the workaround again it seems.
Hello,
We released a quick Beta update you can try to see if that helps.
Please enable the Beta update by following this:
https://rankmath.com/kb/version-control/#beta-updates

If you are unable to see an update, please clear Rank Math’s transients from:
WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients

Please clear the caches, server, and WordPress after updating.
You can disable the Beta updates once you update to the latest version and if the issue is fixed.
We are here to assist. Thank you.