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..
