-
Hi,
When I try to install Rank Math I get this error:
Deprecated: Required parameter $i follows optional parameter $args in /wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php on line 34
My servier config:
PHP8
MySQL
Apache
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/Only the site admin would know and your users won’t be affected by this troubleshooting.
If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated 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/
Please do take a complete backup of your website before sharing the information with us.
Thank you, and we really look forward to helping you.
Thank you for your response.
I installed the rank math on fresh wordpress site and got this error. No any plugins or themes.
Could you fix it?
Hello,
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.
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.
I replaced this line:
public function list_input( $args = array(), $i ) {
with this one
public function list_input( $i, $args = array() ) {
and it works but then I got a new error:
Warning: Array to string conversion in /wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Types.php on line 466
How to fix that?
I am working on localhost environment.
I found on your wordpress forum another user discussing a similar error related to the cmb2 package:
Deprecated: Required parameter $field_id follows optional parameter $type
It was resolved by updating to new version of the rank math.
I installed the rank math to a fresh wordpress site with no settings.
Hello,
Thank you for keeping in touch with us.
Please note that currently, we do not recommend users to switch to the PHP8 version yet.
With the new version of WordPress, there will still be security flaws with PHP 8, it’s intended that the future version should be able to work with the version without issues but as for now it will work only in “beta compatible with PHP 8”.
This means that most core WordPress functionality will work, but unexpected bugs may still occur for some time, even without the presence of additional plugins or themes.
Even so, we would love to further investigate this issue on your website but since you are in localhost, it would be difficult for us to troubleshoot the issue and provide a proper solution.
Do you mind if you create a temporary staging site so we can further check why the issue is happening?
We are looking forward to helping you.
Hi,
I got errors because I use PHP 8.0.2.0 on my localhost.
I tested the rank math on localhost and production server with PHP 8.0.3.0 and now it works fine.
Thank you very much for your support!
Hello,
We are super happy that your issue is resolved. 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.
The ticket ‘PHP 8 function deprecated’ is closed to new replies.