Hi @andybrin,
Thank you for contacting us. We hope you are doing well.
We have tested the plugin with PHP 8+ and were unable to reproduce the reported error on our side. The plugin is working without any PHP 8+ deprecation notices in our test environment.
It may be related to a caching issue or a server-specific configuration. We recommend clearing all website, plugin, and server caches and checking again. You can also try temporarily disabling other plugins to rule out a conflict.
For reference, we have attached a screenshot from our PHP 8+ testing environment: https://ibb.co/LdTW3yd7.
Could you share more details about the issue you are reporting? Providing a step-by-step guide to reproduce the same issue on our site would be a great help.
Thanks & regards,
WPExperts Support Team
Hi @muddasirhayat
please check this out
marked with comment: // CHECK THIS -> PHP 8.5+ incompatible
post-snippets/freemius/includes/managers/class-fs-contact-form-manager.php
public function get_standalone_link( Freemius $fs ) {
$query_params = $this->get_query_params( $fs );
$query_params['is_standalone'] = 'true';
// CHECK THIS -> PHP 8.5+ incompatible
$query_params['parent_url'] = admin_url( add_query_arg( null, null ) );
return WP_FS__ADDRESS . '/contact/?' . http_build_query( $query_params );
}
class-freemius-marked.php
function _prepare_admin_menu() {
if ( is_object( $this->_site ) && ! $this->is_registered() ) {
return;
}
/**
* When running from a site admin with a network activated module and the connection
* was NOT delegated and the user still haven't skipped or opted-in, then hide the
* site level settings.
*
* @author Vova Feldman (@svovaf)
* @since 2.0.0
*/
$should_hide_site_admin_settings = (
$this->_is_network_active &&
! fs_is_network_admin() &&
! $this->is_delegated_connection() &&
! $this->is_anonymous() &&
! $this->is_registered()
);
$should_hide_site_admin_settings = $this->apply_filters( 'should_hide_site_admin_settings_on_network_activation_mode', $should_hide_site_admin_settings );
if ( ( false === $this->has_api_connectivity() && ! $this->is_enable_anonymous() ) ||
$should_hide_site_admin_settings
) {
$this->_menu->remove_menu_item( $should_hide_site_admin_settings );
} else {
$this->do_action( fs_is_network_admin() ?
'before_network_admin_menu_init' :
'before_admin_menu_init'
);
$this->add_menu_action();
$this->add_network_menu_when_missing();
// CHECK THIS -> PHP 8.5+ incompatible
$this->add_submenu_items();
}
}
best regards
Andy
Hi @andybrin,
Thank you for pointing this out and for sharing the code references.
We have identified the issue and confirmed that it is related to the bundled Freemius SDK’s compatibility with newer PHP versions. Our development team is currently working on a fix.
We appreciate you taking the time to report this and provide the relevant code snippets—they were very helpful in our investigation.
We plan to include the fix in an upcoming plugin release, which will be made available as soon as it has been thoroughly tested.
Thank you for your patience and understanding.
Thanks & regards,
WPExperts Support Team
Hi @andybrin,
Thank you for your patience while we worked on this issue.
We’re happy to let you know that we have released a new version of the plugin that includes the fix for the PHP 8.5+ compatibility issue related to the bundled Freemius SDK.
Please update the plugin to the latest version and check whether the deprecation notices are resolved on your site. We would appreciate it if you could let us know the outcome after updating.
Thank you again for reporting the issue and helping us improve the plugin.
Thanks & regards,
WPExperts Support Team