s2member icon indicating copy to clipboard operation
s2member copied to clipboard

PHP Fatal error: Uncaught ValueError: Unknown format specifier ";" in /s2member-pro/src/includes/syscon.inc.php:137

Open gaborkukucska opened this issue 3 years ago • 1 comments

Sorry, no time just thought to let you know, that after updating our PHP-FPM to 8.0 from 7.4 on our Ubuntu 18.04 Nginx server, got this error causing a critical error on WP.

2021/03/12 04:02:20 [error] 915#915: *107 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ValueError: Unknown format specifier ";" in /xxxxxxxx/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php:137 Stack trace: #0 /xxxxxxxx/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php(137): sprintf() #1 /xxxxxxxx/wp-includes/class-wp-hook.php(292): ws_plugin__s2member_pro_default_options() #2 /xxxxxxxx/wp-includes/plugin.php(212): WP_Hook->apply_filters() #3 /xxxxxxxx/wp-content/plugins/s2member/src/includes/syscon.inc.php(355): apply_filters() #4 /xxxxxxxx/wp-content/plugins/s2member/s2member.php(155): ws_plugin__s2member_configure_options_and_their_defaults() #5 /xxxxxxxx/wp-settings.php(391): include_once('/var/www/inspir...') #6 /xxxxxxxx/wp-config.php(98): require_once('/var/www/inspir...') #7 /xxxxxxxx/wp-load.php(37): require_once('/var/www/inspir...') #8 /xxxxxxxx/wp-blog-header.php(13): require_once('/var/www/inspir...')" while reading response header from upstream, client: xxxxxxxx, server: inspireflix.com, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "inspireflix.com", referrer: "http://xxxxxxxx:80/wp-login.php"

o solve it I've just commented out line 137 in syscon.inc.php as we don't use Clickbank.

gaborkukucska avatar Mar 12 '21 04:03 gaborkukucska

Confirm, got this message:

Fatal error: Uncaught ValueError: Unknown format specifier ";" in /home/blog/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php:137 Stack trace: #0 /home/blog/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php(137): sprintf('

<small sty...', 'site.com') #1 /home/blog/wp-includes/class-wp-hook.php(292): ws_plugin__s2member_pro_default_options(Array) #2 /home/blog/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array) #3 /home/blog/wp-content/plugins/s2member/src/includes/syscon.inc.php(355): apply_filters('ws_plugin__s2me...', Array) #4 /home/blog/wp-content/plugins/s2member/s2member.php(155): ws_plugin__s2member_configure_options_and_their_defaults() #5 /home/blog/wp-settings.php(391): include_once('/home/blog/...') #6 /home/blog/wp-config.php(98): require_once('/home/blog/...') #7 /home/blog/wp-load.php(37): require_once('/home/blog/...') #8 /home/blog/wp-blog-header.php(13): require_once('/home/blog/...') #9 /home/index.php(17): require('/home/blog/...') #10 {main} thrown in /home/blog/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php on line 137

krumch avatar May 18 '21 08:05 krumch