wpsharks / s2member

s2Member® Framework (membership management for WordPress®).
64 stars 36 forks source link

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated #1232

Open bcolflesh opened 1 year ago

bcolflesh commented 1 year ago

EXPLANATION OF THE ISSUE

Error Log message:

"PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /my/path/wp-content/plugins/s2member/src/includes/externals/markdown/nc-markdown.inc.php on line 755 PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /my/path/wp-content/plugins/s2member/src/includes/externals/markdown/nc-markdown.inc.php on line 1042 PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /my/path/wp-content/plugins/s2member/src/includes/externals/markdown/nc-markdown.inc.php on line 1067 PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /my/path/wp-content/plugins/s2member/src/includes/externals/markdown/nc-markdown.inc.php on line 1388 PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /my/path/wp-content/plugins/s2member/src/includes/externals/markdown/nc-markdown.inc.php on line 1390" while reading response header from upstream, client: 1:1:1:1:1:1:1:1, server: 1.1.1.1, request: "GET /wp-admin/admin.php?page=ws-plugin--s2member-mms-ops HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "myhost.com", referrer: "https://myhost.com/wp-admin/edit.php?post_type=slick_slider&paged=4"

STEPS TO REPRODUCE THE ISSUE

BEHAVIOR THAT I EXPECTED

Update array handling to not use curly braces.

BEHAVIOR THAT I OBSERVED