PHP Fatal error: Freemius::get_api_user_scope_by_user()
-
Hi,
Suddenly I’m receiving a PHP error in the premium plugin
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Freemius::get_api_user_scope_by_user() must be an instance of FS_User, bool given called in ***/woo-permalink-manager-premium/freemius/includes/class-freemius.php on line 20787 and defined in ***/woo-permalink-manager-premium/freemius/includes/class-freemius.php:20801
I’ve temporarily fixed this by removing the Class definition ‘FS_User’ for the argument in the private function
/**
* @author Vova Feldman (@svovaf)
* @since 2.0.0
*
* @param \FS_User $user
*
* @return \FS_Api
*/
//FS_User
private function get_api_user_scope_by_user( $user ) {
return FS_Api::instance(
$this->_module_id,
‘user’,
$user->id,
$user->public_key,
! $this->is_live(),
$user->secret_key,
$this->get_sdk_version()
);
}PHP version: 7.3.6
WooCommerce version: 3.6.4
Wordpress version: 5.2.1
Plugin version: 2.1.12Do you know what’s wrong? Thanks!
- The topic ‘PHP Fatal error: Freemius::get_api_user_scope_by_user()’ is closed to new replies.