[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Schema] Wordpress error: "Undefined property: stdClass::$slug"


bladefd
 Share

Recommended Posts

Hello, I bought Schema theme in 2017 but canceled after the year of support. Recently I began receiving the following error in Wordpress:

Warning: Undefined property: stdClass::$slug in /home/u670846744/domains/harshmode.com/public_html/wp-content/themes/mts_schema/functions.php on line 54

 

All I did was update to php 8.2 yesterday and today setup LiteSpeed Cache and Super Page Cache for Cloudflare. Nothing else has been done. I tried to flush cache and disable both plugins, but the error won't go away. Any ideas on what could be wrong?

 

That portion of the theme functions says:

// Disable auto-updating the theme.
function mts_disable_auto_update_theme( $update, $item ) {
    if ( $item->slug == MTS_THEME_NAME ) {
        return false;
    }
    return $update;
}
add_filter( 'auto_update_theme', 'mts_disable_auto_update_theme', 10, 2 );

 

Perhaps it's trying to auto-update? It wouldn't be able to became I no longer have subscription for it. Maybe if I can force it to stop trying to auto-update? I don't want to break the theme so I thought of asking here. Thanks

Link to comment
Share on other sites

  • Support

Hello,

Thank you for contacting MyThemeShop today.

To be able to obtain support, you will need to have an active subscription.

Please re-purchase the theme, it will re-activate your subscription.

Looking forward to helping you. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...