Freemius / wordpress-sdk

https://freemius.com
GNU General Public License v3.0
258 stars 76 forks source link

[Freemius SDK 2.7.1] PHP Fatal error: Uncaught Error: Call to a member function is_expired() on bool using #707

Closed codex-m closed 2 months ago

codex-m commented 2 months ago

🐞 bug report

Behavior:

This is not reproducible with Freemius SDK 2.7.0.

Steps to reproduce:

  1. Create blank /fresh installed WordPress site with a user email not yet registered or associated with Freemius.
  2. Activate a Freemius powered plugin using SDK 2.7.1 (e.g. the latest Prime Mover FREE 1.9.9-beta6)
  3. In the opt-in dialog click "Allow and Continue" to optin.
  4. While it waits the email to be received - click on "Account" (this is accessible in Prime Mover -> Account).

Actual result: User sees a critical error on account page. It is not accessible.

Versions: (*)

Plugin / Theme: (*)

Additional Information:

Stack trace: #0 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(21093): Freemius->_sync_plugin_license() #1 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(6755): Freemius->_sync_license() #2 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(6667): Freemius->_sync_cron_method() #3 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(6737): Freemius->execute_cron() #4 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(6720): Freemius->_sync_cron() #5 /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php(23410) in /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php on line 21352


Note: (*) indicates required information. Without this information, your issue may be auto-closed.

You can find your Freemius SDK version at /freemius/start.php

You can find your Freemius product ID in the Freemius dashboard: SETTINGS -> INTEGRATION.

Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.

flowdee commented 2 months ago

Indeed, a critical one which holds us back, updating our plugins with v2.7.1. Waiting for a fix @swashata

swashata commented 2 months ago

Thank you for reporting. @DanieleAlessandra would be working on it.

DanieleAlessandra commented 2 months ago

This should solve the issue https://github.com/Freemius/wordpress-sdk/pull/708

Please give me a feedback