Open araeubig opened 1 year ago
Can you check the Freemius debug page?
Normally, you can access it via /wp-admin/admin.php?page=freemius
I tested with another new made license key and there it works. So the "no activation" depends on "$fs->is_registered()". If the user has opt-in before it doesn't work.
Perhaps you could check this? But i will send you a screenshot of the freemius license page too.
In my last tests, I could deactivate the license from the admin account page, and it got reactivated successfully.
Can you change this line
to
if (is_object($fs) && $fs->is_premium() && $fs->has_api_connectivity() && !$fs->has_active_license()) {
Let me know if this fixes the issue for you so I can release it.
I will test it today and give you feedback
I tested in my codespace dev-environment and it doesn't work. I will repeat until tomorrow evening in my local test environment and will give you a new reply.
If you want to share the debug data, please email me via support at cleanplugins.com
I tried in a second environment but it doesn't work.
And here is the debug screenshot:
Ok, can you also share the config you used?
in my main plugin file:
` function dpf_fs() {
global $dpf_fs;
if ( ! isset( $dpf_fs ) ) {
require_once __DIR__ . '/includes/libraries/freemius/start.php';
$dpf_fs = fs_dynamic_init(
array(
'id' => '11777',
'slug' => 'digital-picture-frame-free',
'premium_slug' => 'digital-picture-frame',
'type' => 'plugin',
'public_key' => 'pk_ccb3f3f161cc2a6663f609a115565',
'is_premium' => true,
'is_premium_only' => true,
'has_addons' => true,
'has_paid_plans' => true,
'is_org_compliant' => false,
'has_affiliation' => 'selected',
'navigation' => 'menu',
'menu' => array(
'slug' => 'dpf',
'contact' => false,
'support' => false,
'affiliation' => false,
),
'secret_key' => xx',
)
);
}
return $dpf_fs;
}
dpf_fs();
do_action( 'dpf_fs_loaded' );
}`
and in wp-config.php:
`define( 'WP_FS__DEV_MODE', true );
/ Define Freemius licenses in the format: 'plugin_id' => 'license key' / $fs_auto_activate_licenses = array( '11777' => 'sk_bY:;7xSb7!1bU4TZdXR#IL4AjU;Tt', // Digital Picture Frame );`
Is the site live? I can't figure out what's wrong without doing some debugging.
No its my development codespace - but i could build a live copy for you until tomorrow
@erropix I do have the same issue, but I've installed it as mu-plugins. Some time ago it work as expected, currently it doesn't work anymore.
I don't have any "fremius-debug" page in the WP-Backend, even the link you noticed /wp-admin/admin.php?page=freemius
shows an error-page.
I've done some debugging (var_dump) in the script and found, that
$fs->has_api_connectivity() == NULL
help, please. 🙏🏼
@xstable I think you have api connectivity issues, also, it's weird that the debug page does't show in the admin by accessing the direct link as it should be included with the FS sdk.
@erropix how can I fix api connection? Which api is meant?
I mean the Freemius API is not accessible from your server, thats is why $fs->has_api_connectivity()
return NULL as you stated in above message.
Anyway, with the Freemius SDK, the page /wp-admin/admin.php?page=freemius shouild be always accessible unless you use a plugin that forcefully disabled it.
Can list all plugins you installed that uses the Freemius SDK?
If you do have other sites, can you try accessing the debug page on them?
I installed the plugin in two wordpress environments and used my own plugin (in development) but no activation is done.
The plugin id and license key is present in wp-config.php.
After inserting some debug outputs i came to -> "$fs->is_registered()" which returns true in my case on my local install and there it was previously activated manually und before testing the plugin deactivated.
But in my codespace new install it was not activated before.
What can i do?