Closed codex-m closed 2 months ago
Indeed, a critical one which holds us back, updating our plugins with v2.7.1. Waiting for a fix @swashata
Thank you for reporting. @DanieleAlessandra would be working on it.
This should solve the issue https://github.com/Freemius/wordpress-sdk/pull/708
Please give me a feedback
π bug report
Behavior:
What is the issue? (*)
While testing Freemius SDK 2.7.1 - we noticed there is a new fatal error when user activates the product and optin to Freemius (by clicking "Allow and Continue"). I think this issue is critical because even free user ignores this (by refreshing or navigating away from the Account page). The same error occurs again after user purchase (right after checkout) when user is redirected back to Account. This can confuse new customers and even give them poor user experience.This is not reproducible with Freemius SDK 2.7.0.
Steps to reproduce:
Actual result: User sees a critical error on account page. It is not accessible.
What is the expected behavior?
No fatal error - user can still see the Account page.Versions: (*)
Freemius SDK Version:
2.7.1WordPress Version:
6.5.2PHP Version:
7.4 (and also reproducible even with PHP 8.1)Plugin / Theme: (*)
Name:
Prime MoverSlug:
prime-moverFreemius ID:
3826Additional Information:
Browser Type: (*)
AnyBrowser Version: (*)
n/aOS: (*)
Linux and also reproducible with Windows using Local by FlywheelStack Traces:
23-Apr-2024 13:18:59 UTC] PHP Fatal error: Uncaught Error: Call to a member function is_expired() on bool in /home/emerson/sourcecode/testplatform/wp-content/plugins/prime-mover/freemius/includes/class-freemius.php:21352
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.