Illegal string offset ‘connected’

#35833
  • Resolved Philip Jonas
    Rank Math free

    If I implement a hard coded fix then I get the same errors but for diffent lines of code in options,php

    Warning: Illegal string offset ‘connected’ in /var/www/html/wp-content/plugins/seo-by-rank-math/includes/helpers/class-conditional.php on line 76

    /**
    * Check if the site is connected to the Rank Math API.
    *
    * @return bool
    */
    public static function is_site_connected() {
    $registered = Admin_Helper::get_registration_data();

    return false !== $registered && $registered[‘connected’];
    }

    • This topic was modified 4 years, 8 months ago by Philip Jonas.
Viewing 8 replies - 1 through 8 (of 8 total)
  • it seems that $registered is returned as a string, ie: type of $registered === string…. but it looks like an array that was converted to a string.

    This is all running on the latest version of WP and RankMath

    Hello,

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

    I have submitted this to our dev team for closer investigation and we will be getting back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Legend, let me know…

    Todd
    Rank Math free

    Hi Philip,

    I just wanted to let you know that replies are slower during the weekend. Once our dev. team checks this, they will reply to you.

    Please bear with us.

    Hello,

    Can you please give us some more details of the issue as we are not able to reproduce it on our setup?

    The $registered will either return an array of connected data or null when the site is not connected to the Rank Math. Where exactly do you get this error and is your site connected to Rank Math?

    Looking forward to helping you.

    @Pratik, let me get back to the devs on this side and find out whats cooking, Ill ask them to get me more info on their test case..

    Hi Philip,

    Thanks for the reply.

    We will be looking forward to your response.

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

The ticket ‘Illegal string offset ‘connected’’ is closed to new replies.