• Resolved ilovewine

    (@ilovewine)


    Hi,

    i have a Webstore with Woocommerce and WPML for two languages. For language 1 all products are shown correctly and SEO Math Rank Metabox previews correctly but for language 2 some products link to critical wordpress error. When editing the broken product the SEO Math Rank Meta Box cant be loaded correctly. The console shows “TypeError: Cannot read properties of undefined (reading ‘isPrimary’)”

    TypeError: Cannot read properties of undefined (reading ‘isPrimary’)
    at rank-math-app.js?ver=1.0.203:1:80303
    at r (lodash.min.js?ver=4.17.19:9:24985)
    at v (lodash.min.js?ver=4.17.19:9:1449)
    at su (lodash.min.js?ver=4.17.19:9:33013)
    at lodash.min.js?ver=4.17.19:9:25004
    at rank-math-app.js?ver=1.0.203:1:80255
    at data.min.js?ver=1504e29349b8a9d1ae51:9:3087
    at data.min.js?ver=1504e29349b8a9d1ae51:9:1957
    at __unstableMarkListeningStores (data.min.js?ver=1504e29349b8a9d1ae51:2:21147)
    at Object.__unstableMarkListeningStores (data.min.js?ver=1504e29349b8a9d1ae51:2:21404)

    var t = e(“rank-math”).getSchemas();
    return {
    schema: (0,
    s.find)(t, (function(e) {
    return !(0,
    s.isEmpty)(e.metadata.isPrimary)
    }

    Sry for the unformated copy paste but i couldnt find a code tag here and screenshots are not allowed.

    I hope some one can help me

    • This topic was modified 1 year ago by ilovewine.
    • This topic was modified 1 year ago by ilovewine.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @ilovewine,

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

    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/

    Here is a video you can follow as well:
    https://www.youtube.com/watch?v=FcIWRhcUP2c

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

    Let us know how that goes.

    Thread Starter ilovewine

    (@ilovewine)

    Hi @rankmathsupport

    i deactivated every plugin but Rank Match SEO, Woocommerce and WP Staging because i was working on a stage page. I changed the theme to twenty twenty four and reinstalled the current version of WP. The error is still available.

    All plugins have the newest updates

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @ilovewine,

    From the error message, there seems to be a corrupted schema applied to your product.

    Could you please confirm if you have imported or added a custom schema via a filter to your products?

    If you have used the Schema Templates, please temporarily disable schema templates on your website and check if you can edit posts. You can disable the schema template by sending it to the trash.

    If disabling schema templates work, you will have to delete and regenerate the schema templates one by one until the error stops occurring.

    Let us know how this goes.

    Thread Starter ilovewine

    (@ilovewine)

    Hello @rankmathsupport

    thanks for the advice it is a problem with the schema. I just deactivated them via Rank Math Seo > Dashboard > Modules > Schema. I didnt send anything to trash.

    I check function.php and WPCode for Snippets which could change Schema Stuff but i didnt find anything. Is there an other way to customize/add Schema Templates ?

    EDIT: I just resetted all settings in Title&Meta > Global, Title&Meta>ContentType>Product, Title&Meta>Product>ProductCategory etc.

    this didnt fixed the problem ??

    • This reply was modified 1 year ago by ilovewine.
    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @ilovewine,

    Have you tried just removing the Schema Templates from the website and checking the issue once again?

    If the issue is related to the Schema Templates and this being a functionality of the paid plugin, please reach out to us at [email protected] so we can help. On www.remarpro.com, we can offer support only for the free plugin.

    Looking forward to helping you.

    Thread Starter ilovewine

    (@ilovewine)

    Hello @rankmathsupport

    Yes deactivating the Schema Module in Dashboard fixing the issue.

    I dont know what you mean by removing the Schema Templates where do i find them ?

    We use only the free plugin

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @ilovewine,

    The Schema Templates are part of the PRO plugin. Since you are only using the Free version, you won’t be able to access them. The issue is coming from an incorrect Schema markup. Since you are not using Schema Templates, the issue must be related to the Schema applied on the affected pages.

    So, to get around this issue, you need to get rid of any entry that starts with rank_math_schema_ in the postmeta table associated with the ID of the pages that are throwing this error.

    Let us know how that goes. Looking forward to helping you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘TypeError in Math Rank App’ is closed to new replies.