Undefined Index is_connected line 13327 of class-fremius.php
🐞 bug report
Behavior:
-
What is the issue? (*)When you have defined an addon but don't (yet) want it to publicly show on an Add On tab (e.g. pre -release of customer specific add on ) and define 'has_addons' => false,
everything works except you get Undefined Index is_connected line 13327 of class-fremius.php
if ( ! $addon_info['is_connected'] ) { // Add-on is not associated with an install entity. continue; }
-
What is the expected behavior?No PHP Errors or warnings
Versions: (*)
-
Freemius SDK Version:2.3.2 -
WordPress Version:Any -
PHP Version:7.3
Plugin / Theme: (*)
-
Name:Any -
Slug:Any -
Freemius ID:Any
Additional Information:
-
Browser Type: (*)Any -
Browser Version: (*)Any -
OS: (*)Any -
Stack Traces:Not required
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.
I'm now getting this even when 'has_addons' => true,
Is there a fix?
p.s. the usecase is where the addon is installed but the licence on a premium only is not active. It is probably correct that at that point it is not connected but should be checked with isset at least as the notices really muck up test environments with debug display on
Hello, I am getting the same error with latest version of the sdk too. Will it still persist when I released the addon or should I check some other implementation issue on my end?
For anyone that may struggle with this issue in the future, make sure plan and licenses are prepared and published from dashboard and necessary changes made to SDK integration at your plugin/theme. Afterwards, error disappeared for us.