Plugin update to the version 2.2.1 broke the site

[ad_1]

I found that with version 2.2.1 any include parameter crashes the plugin:

Fatal error: Uncaught TypeError: Argument 1 passed to SimpleYearlyArchive::register_shortcode() must be of the type string, array given, called in /home/croquetw/public_html/wp-includes/shortcodes.php on line 355 and defined in /home/croquetw/public_html/wp-content/plugins/simple-yearly-archive/simple-yearly-archive.php:501 Stack trace: #0 /home/croquetw/public_html/wp-includes/shortcodes.php(355): SimpleYearlyArchive->register_shortcode(Array, ”, ‘SimpleYearlyArc…’) #1 [internal function]: do_shortcode_tag(Array) #2 /home/croquetw/public_html/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(ms\\-li…’, ‘do_shortcode_ta…’, ‘\n<h2 class=”wp-…’) #3 /home/croquetw/public_html/wp-includes/class-wp-hook.php(308): do_shortcode(‘\n<h2 class=”wp-…’) #4 /home/croquetw/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘\n<h2 class=”wp-…’, Array) #5 /home/croquetw/public_html/wp-includes/post-template.php(255): apply_filters(‘the_content’, ‘<!– wp:heading…’) #6 /home/croquetw/public_htm in /home/croquetw/public_html/wp-content/plugins/simple-yearly-archive/simple-yearly-archive.php on line 501

It was working perfectly prior to this update

For now, I rolled back to 2.2.0.

Plugin Author
wpseek

(@alphawolf)

Fixed in 2.2.2

You should, however, consider upgrading your PHP version as it’s outdated and insecure. WordPress suggests running at least PHP 7.4 even though the latest is PHP 8.2 already so..

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer