wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

Fatal Error: Call to a member function is_trial() on null - Multisite

Open Rhytz opened this issue 7 years ago • 3 comments

Actual Behavior:

  • What is the issue? (*)

Fatal error: Call to a member function is_trial() on null in /home/xx/public_html/xx/members/wp-content/plugins/post-to-google-my-business-premium/freemius/includes/class-freemius.php on line 16683

triggered when pressing Sync License from the Account page from the Network manager

  • What is the expected behavior? Getting no fatal error 👍

Versions: (*)

  • Freemius SDK Version: 2.1.3
  • WordPress Version: 4.9.8
  • PHP Version: 5.6.21

Plugin / Theme: (*)

  • Name: Post to Google My Business
  • Slug: post-to-google-my-business
  • Freemius ID: 1828

Additional Information:

  • Browser Type: Firefox
  • Browser Version: -
  • OS: W10
  • Stack Traces:

Rhytz avatar Oct 02 '18 14:10 Rhytz

@Rhytz is it still happening? If so, could you please contact our support via [support AT freemius DOT com] and we'll continue from there.

vovafeldman avatar Oct 06 '18 10:10 vovafeldman

Hi @vovafeldman, It was on a client website, I just asked whether it was still happening but apparently not.

Rhytz avatar Oct 25 '18 11:10 Rhytz

@vovafeldman the same issue happened to a few client of mine, but on is_premium() method helper. It happens after user agreed to get promotion materials. Such warning shows once and then disappears. Most likely it is cache related.

repro:

  • new website + clean db
  • enable debug in wp config to see all errors
  • activate plugin
  • accept promotion
  • somewhere here you should see this notice/warning

bologer avatar Feb 25 '19 16:02 bologer