Warning: class-settings.php on line 182 (WPML)

#42534
  • Resolved Leon
    Rank Math free

    Hey Rank Math Support,

    thanks for the great plugin!

    Since the WordPress main update 5.4 we receive the following debug error message:

    Warning: Cannot assign an empty string to a string offset in /var/www/vhosts/[Domain]/httpdocs/dev/wp-content/plugins/seo-by-rank-math/includes/class-settings.php on line 182

    We use WPML.
    This error message appears on the posts page when switching from German (main language) to English via the toolbar.

    • This topic was modified 5 years, 4 months ago by Leon.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

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

    I am not able to replicate this on my end.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), would you please check for 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/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Leon
    Rank Math free

    Hi Michael,

    many thanks for your response!

    After further analysis, I found that it is a “triangle issue” with our server-side Redis Cache:
    WPML <–> RankMath <–> Redis Object Cache

    For the integration we use the plugin ‘Redis Object Cache‘ by Till Krüss. As soon as I deactivate the plugin, the error message disappears. Is RankMath compatible with Redis Cache?

    Do you have any idea what I can do?

    Hello,

    I cannot reproduce this issue on my setup. Please check this screencast from my setup: https://i.rankmath.com/Nc4VVZ

    Can you add your site’s admin and FTP access in the 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.

    Leon
    Rank Math free

    Hi Pratik,

    many thanks for your response!

    I have set up a sandbox environment for you.

    Important:
    The error occurs when you switch from German to English on the post page (/wp-admin/edit.php).

    Leon
    Rank Math free

    Hello,

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

    Thank you.

    Todd
    Rank Math free

    Hi Leon,

    It appears you had enabled the WP_Debug in your wp-config.php file. That is why you were seeing that message.

    I have disabled the debug mode now and the warning is gone.

    You can ignore the error message unless you are seeing any issues on your website.

    In the meantime, we are working on getting rid of this in a future release of Rank Math.

    Hello,

    having the same problem at my translation from English to German.

    Cannot assign an empty string to a string offset

    wp-content/plugins/seo-by-rank-math/includes/class-settings.php:182
    Rollbar\H\ErrorHandler->handle()

    wp-content/plugins/seo-by-rank-math/includes/class-settings.php:182
    RankMath\Settings->normalize_it()

    wp-content/plugins/seo-by-rank-math/includes/class-settings.php:69
    RankMath\Settings->add_options()

    wp-content/plugins/seo-by-rank-math/includes/class-settings.php:51
    RankMath\Settings->init()

    wp-includes/class-wp-hook.php:287
    do_action(‘wpml_loaded’)

    wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:497
    SitePress->init()

    wp-includes/class-wp-hook.php:287
    do_action(‘plugins_loaded’)

    wp-settings.php:409

    WP_Debug in my wp-config.php file is on false.

    Hope you find the proplem.

    Hello,

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

    Could you please create a new ticket and share some access so we can look into the issue.

    Looking forward to helping you. Thank you.

    ​​​​​​​

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

You must be logged in to reply to this ticket.