Failing after site migration- PHP 8.011 issue?

I’ve just moved my site over to a new host and when I try to activate the standard plugin I get this error

Fatal error : Uncaught ValueError: Unknown format specifier “;” in /var/www/html/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php:137 Stack trace: #0 /var/www/html/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php(137): sprintf() #1 /var/www/html/wp-includes/class-wp-hook.php(303): ws_plugin__s2member_pro_default_options() #2 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #3 /var/www/html/wp-content/plugins/s2member/src/includes/syscon.inc.php(355): apply_filters() #4 /var/www/html/wp-content/plugins/s2member/s2member.php(155): ws_plugin__s2member_configure_options_and_their_defaults() #5 /var/www/html/wp-admin/includes/plugin.php(2286): include_once(’…’) #6 /var/www/html/wp-admin/plugins.php(191): plugin_sandbox_scrape() #7 {main} thrown in /var/www/html/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php on line 137

Here my current site config:

Web server: LiteSpeed (Linux openlitespeed-wordpress-ubuntu-s-2vcpu-4gb-intel-nyc1-01 64-bit #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021)
ABSPATH: /var/www/html/
WP_CONTENT_DIR: /var/www/html/wp-content
WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
Table prefix: wp_
Web-server disk space in use by UpdraftPlus: 334.1 KB refresh
Peak memory usage: 36 MB
Current memory usage: 36 MB
Memory limit: 256M
PHP version: 8.0.11 - show PHP information (phpinfo)
MySQL version: 10.4.21-MariaDB-1:10.4.21+maria~focal-log
Current SQL mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Curl version: 7.68.0 / SSL: OpenSSL/1.1.1f / libz: 1.2.11
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020

The pro version installs but it’s not working.

OK. I changed the name of the S2-member-pro folder and I’m able to install the standard plugin. Now when I install the pro add on I get the WP white screen of death.

I reported this plus a fix many months ago, it’s pretty horrendous this fix still hasn’t been implemented

So other than that one line that needs to be removed, s2Member and Pro are both working in PHP 8?

Yes line 137 removed everything for me works as before

So in the file line 137 looks like this:

else if(!defined('WS_PLUGIN__S2MEMBER_VERSION') || !defined('WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION') || !version_compare(WS_PLUGIN__S2MEMBER_VERSION, WS_PLUGIN__S2MEMBER_PRO_MIN_FRAMEWORK_VERSION, '>='))

So I should REM it out and re-upload it?

Well I REM’d it out. Broke the site.

Line 137 in the syscon.inc.php file, if I’m not mistaken. It deals with ClickBank.

Wrong file

@rcioffi, Did you figure it out?

Not yet. Working on it this weekend. I’ll keep you posted.

Look at my old post about it. It’s the clickbank line. Maybe moved up or down