• Resolved mklinchin

    (@mklinchin)


    This is information that WordPress sent:

    When seeking help with this issue, you may be asked for some of the following information:

    WordPress version 6.2.2

    Active theme: Twenty Twelve (version 3.9)

    Current plugin: Simple Yearly Archive (version 2.2.1)

    PHP version 5.6.40

    Error Details

    =============

    An error of type E_COMPILE_ERROR was caused in line 119 of the file /home2/mirror38/public_html/wp/wp-content/plugins/simple-yearly-archive/simple-yearly-archive.php. Error message: Default value for parameters with a class type hint can only be NULL

    Thank you very much for your help. This is great plugin.

    Mark

    • This topic was modified 1 year, 4 months ago by mklinchin.
Viewing 6 replies - 1 through 6 (of 6 total)
  • 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..

    Working fine. Thank you so much !

    I am using PHP 7.4 at the moment which was upsetting version 2.2.1 of the plugin. However with 2.2.2 of the plugin all is fine. Thanks for the speedy fix.

    Thread Starter mklinchin

    (@mklinchin)

    It works great. Thank you for the quick fix! My PHP comes from the hosting provider so not much I can do here. The fix is appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin update to the version 2.2.1 broke the site’ is closed to new replies.