• Resolved Juanzo

    (@jmzolezzi)


    I’m testing SureCart to replace our old WooCommerce, and better manage our subscriptions, but we noticed some errors with it and Slim SEO:

    Undefined property: stdClass::$post_modified_gmt
    wp-content/plugins/slim-seo/src/MetaTags/OpenGraph.php:108

    Undefined property: stdClass::$post_modified_gmt
    wp-content/plugins/slim-seo/src/Schema/Types/WebPage.php:32

    At Slim SEO settings, Post Type, I only see a way of applying a noindex to post type Products, but I do want these posts to be indexed.

    Should I ask SureCart team to fix anything to be compatible with Slim SEO?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @jmzolezzi ,

    Sorry for the late reply. After investigating into this problem, I found that SureCart creates a fake post object for the single product page, see this screenshot:

    https://monosnap.com/direct/5msDQC8bhPamIjDJWIxR1vSXGM52lY

    However, the problem is that this fake object is not a fully compatible WP_Post object. It misses “post_modified_gmt” property, which is used in Slim SEO to output the modified time of the post.

    I think it’s best to make the change in SureCart to improve compatibility with other plugins that use the same post object. If you can contact them for help, please do that. And if you need any further details from me, please let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined property error with SureCart’ is closed to new replies.