Subscribe2 for ClassicPress install error

This is for @MattyRob and Subscribe2 for ClassicPress install error. I have emailed Matt the full code error privately.

Expected behavior

The plugin should install smoothly.

Current behavior

Crashes and won’t install (pic-1). Went to plugins and tried to install there (see pic. 2).

See pics below:


PHP 8.1 and CP 2.2.0

Thank you Matt!

1 Like

I think I see the fix for this but can’t test right now.

In the file subscribe2-for-cp/classes/class-s2-core.php on line 1813you should see this:
global $wp_version, $wpmu_version;

Change that to:
global $wp_version, $wpmu_version, $wpdb;

I believe that should resolve the activation issue.

Once I can confirm I’ll release a fixed version.

3 Likes

Matt, I can confirm this fix solved the issue.

Thank you
Regards,
Avrom

2 Likes

I released a new version earlier today with the fix in place - hopefully automatic updates will be pushed.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.