• Resolved fagworio

    (@fagworio)


    Hello guys,

    I am having a issue with my website.

    The site is showing a warning tex.

    I tried disabled all plugins enabled but not find the solution for this problem.`

    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-opengraph.php on line 46
    
    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 72
    
    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 323
    
    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 323
    
    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 106
    
    Warning: Illegal string offset '@id' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 168
    
    Warning: Illegal string offset '@type' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 170
    
    Warning: Illegal string offset 'isPartOf' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 492
    
    Warning: Illegal string offset 'publisher' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 508
    
    Warning: Illegal string offset 'image' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 475
    
    Warning: Illegal string offset 'inLanguage' in /www/wwwroot/www.unicorniohater.com.br/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 463
    
    • This topic was modified 2 years, 11 months ago by fagworio.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @fagworio,

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

    It seems like the Schema is broken on the page where you are getting this error. The @type which is a required field is missing on the page.

    Deleting the Schema on the page and adding it again should fix the issue since by default we add @type to all the Schema types.

    Looking forward to helping you.

    Thread Starter fagworio

    (@fagworio)

    I deleted all my schema and the plugins is not working.

    Thread Starter fagworio

    (@fagworio)

    I manually deleted all Rank Math related tables in my database and reinstalled, getting the same error. I did this process 3 times

    After that I thought about installing Yoast, when installing Yoast I went to the import option and in this option there is an option to clear all rankmath data. I made it.

    Deactivated Yoast and installed Rank Math again and it worked. And finally I stopped the Fatal Error. So now I thought about importing the data I exported from Rank Math and presto, all the data will be imported into Rank Math, happy thoughts.

    I wanted to say that I had a happy ending, but I lost all the data except some. I believe that exporting from Rank Math only exports basic data. But the good news is that I will be able to use Rank Math, the bad news is that I have over 6,000 posts on my site.

    I wish it had had a happy ending and made it easier to correct the error, in the end the response from Support was very general.

    Like: “It seems like the Schema is broken on the page where you are getting this error. The @type which is a required field is missing on the page.”

    Solution: “Deleting the Schema on the page and adding it again should fix the issue since by default we add @type to all the Schema types.”

    The problem is I have more than 6 thousand posts, anyway I think I worked on deleting the Schema. I just need to restart from zero now and recreate all my schema.

    Could be useful if the plugin shows what posts have a wrong Schema that way we could fix it.

    This is now the 4th site I’ve had this issue on and this solution fixes the problem for me however installing and using yoast to fix the problem should not be the Solution.

    Every time I have this issue the page becomes unrecoverable and it crashes every time I try to recover it, even deleting the schema does not work and as Fagworio mentions I have to install Yoast and export and import back the data is not the right solution to this problem.

    Can you please fix this problem Rank Math as it’s getting annoying coming across bugs with very silly work arounds.

    • This reply was modified 2 years, 10 months ago by jamiehall16.
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @jamiehall16

    Sorry for the trouble you are facing.

    Which plugin did you use to import the Schema data? Or did you use Yoast for the same as well?

    Looking forward to helping you. Thank you.

    P.S. Please open a new support topic so we can assist you better.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘RankMath is showing Illegal string offset ‘@type’ in intext:’ is closed to new replies.