Error: function is_trial() on freemius
-
With latest 2 updates using multisite configuration with wordpress 4.9.4 the following error happens:
[error] 28387#28387: *831149 FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to a member function is_trial() on boolean in xxx/wp-content/plugins/wp-security-audit-log/sdk/freemius/includes/class-freemius.php on line 9006” while reading response header from upstream, client: xxx, server: xxx, request: “GET /wp-admin/network/update-core.php?action=do-plugin-upgrade HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “xxx”To temporary solve the situation I just edited plugin code and change the following code line (temporary solution to bypass the error):
– return $this->_site->is_trial();
+ if ( ! is_object( $this->_site ) )
+ return true;
+ else
+ return $this->_site->is_trial();It seems that with recent update of FS_SITE there is no object for _site since it appears to be false. But when testing on wordpress single site mode it works as expected.
The topic ‘Error: function is_trial() on freemius’ is closed to new replies.