Title: Error: function is_trial() on freemius
Last modified: March 18, 2018

---

# Error: function is_trial() on freemius

 *  Resolved [samuelbernardo](https://wordpress.org/support/users/samuelbernardo/)
 * (@samuelbernardo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/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.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10087992)
 * Hello [@samuelbernardo](https://wordpress.org/support/users/samuelbernardo/)
 * Thank you for using our plugin and sorry you are encountering such error. We 
   cannot replicate the error ourselves so can you please answer the below questions
   so we can troubleshoot and solve this issue?
 * 1) When is such error happening, during activation or when you do something specific?
 * 2) Is this error a “show stopper” or you can still use the website / plugin?
 * Looking forward to hearing from you.
 *  Thread Starter [samuelbernardo](https://wordpress.org/support/users/samuelbernardo/)
 * (@samuelbernardo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10088605)
 * 1) Error is happening after activation when accessing dashboard of any site of
   multisite wordpress
 * 2) This error 500 prevent the administration of sites from wp-admin, but viewing
   the site contents work normally. This is related to the activation of freemius
   and sending feedback. My proposed patch don’t allow that activation, but keeps
   working wp-security-audit-log plugin as before.
 * Feel free to contact me if you require further details.
 * Thanks
 *  [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10095023)
 * [@samuelbernardo](https://wordpress.org/support/users/samuelbernardo/) my name
   is Vova and I’m from the [Freemius](https://freemius.com) team. The error mentioned
   is thrown from our SDK, hence, our responsibility. Could you please install and
   activate our [troubleshooting plugin](https://github.com/Freemius/freemius-fixer),
   then download a data dump of the stored Freemius data, and send it to us for 
   an investigation to [support AT freemius DOT com]. Thanks!
 *  Thread Starter [samuelbernardo](https://wordpress.org/support/users/samuelbernardo/)
 * (@samuelbernardo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10100854)
 * I run troubleshooting plugin and download data dump of stored freemius data.
   
   I’ll send the email now.
 *  anonymized-15076626
 * (@anonymized-15076626)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10141621)
 * I’m still experiencing this issue in 3.1.4. Will there be a patch to this issue
   soon?
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10141684)
 * Hello @ksaylor11
 * Can you please help [@svovaf](https://wordpress.org/support/users/svovaf/) with
   troubleshooting this, by sending him the required data (as explained [here](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10095023))?
 * Thanks a lot for your cooperation.
 *  [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10145391)
 * @ksaylor11 please contact me directly via [support AT freemius DOT com] while
   referring this issue.
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10148991)
 * Hello @ksaylor11,
 * [@samuelbernardo](https://wordpress.org/support/users/samuelbernardo/) had got
   back to us and confirmed that after running the cleanup script given by Vova 
   and installing the latest update of the plugin his issues were solved.
 * So can you please contact Vova and advise us?
 * Thank you.
 *  anonymized-15076626
 * (@anonymized-15076626)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10169931)
 * [@wpwhitesecurity](https://wordpress.org/support/users/wpwhitesecurity/) and 
   [@svovaf](https://wordpress.org/support/users/svovaf/)
 * I just updated wp-security-audit-log to Version 3.1.5 on a site today and I’m
   not noticing any issues. I’ll try later today with another site.
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10171284)
 * Glad it is sorted @ksaylor11.
 * Should you encounter any other issues do not hesitate to get in touch.
 * Thank you for using our plugin.
 *  anonymized-15076626
 * (@anonymized-15076626)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10239464)
 * Just a heads up. I finally got back around to one of the sites I manage and when
   you reinstall wp-security-audit-log and network activate it craps out with the
   vague error:
 *     ```
       Error thrown
       Call to member function is_trial() on boolean
       ```
   
 * If you deactivate and then go to the root site plugins and activate it, it appears
   to work fine. Something about the network activate?
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10240603)
 * Hello @ksaylor11,
 * A few weeks ago you reported that all is running well for you.
 * So what happened here? Did you try to install the latest version (3.1.7) on a
   new site and you experienced this problem?

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error: function is_trial() on freemius’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 12 replies
 * 5 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/error-function-is_trial-on-freemius/#post-10240603)
 * Status: resolved