We're encountering a recurring fatal error caused by the installer_theme_upgrade_check() method in the file:
/types/vendor/otgs/installer/includes/class-installer-theme.php
The issue occurs when get_site_transient('update_themes') returns false. The method assumes the $the_value parameter is always an object and tries to access the response property, which results in:
PHP Fatal error: Uncaught Error: Attempt to modify property "response" on bool
To resolve the issue, we manually patched the function by adding a type check at the top of the method:
public function installer_theme_upgrade_check( $the_value ) {
// Ensure $the_value is an object before proceeding
if ( !is_object( $the_value ) ) {
return $the_value;
}
// Existing logic continues here...
}
This small change prevents fatal errors and ensures compatibility when other plugins or custom code short-circuit the theme update transient and return a boolean instead of an object.
Please consider including this fix in your next plugin update, as it's a safe and minimal safeguard that would improve overall plugin robustness.