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