Freemius / wordpress-sdk

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

Undefined Index is_connected line 13327 of class-fremius.php #425

Open alanef opened 4 years ago

alanef commented 4 years ago

🐞 bug report

Behavior:

if ( ! $addon_info['is_connected'] ) { // Add-on is not associated with an install entity. continue; }

Versions: (*)

Plugin / Theme: (*)

Additional Information:


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.

alanef commented 4 years ago

I'm now getting this even when 'has_addons' => true,

Is there a fix?

alanef commented 4 years ago

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

erdembircan commented 4 years ago

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?

erdembircan commented 4 years ago

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.

LC43 commented 1 week ago

confirmed this and solutions in 2024