• Hello,

    Im getting errors on the page with this 3 shortcodes

    [user_favorite_count post_types=”post,advert”]

    [user_favorites include_buttons=”false”]

    [clear_favorites_button]

    This is the error below

    2023-06-03T13:34:29+00:00 CRITICAL Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/site.com/public_html/wp-content/plugins/favorites/app/API/functions.php:143
    
    Stack trace:
    
    #0 /home/site.com/public_html/wp-content/plugins/favorites/app/API/functions.php(143): implode()
    
    #1 /home/site.com/public_html/wp-content/plugins/favorites/app/API/Shortcodes/UserFavoriteCount.php(57): get_user_favorites_count()
    
    #2 /home/site.com/public_html/wp-includes/shortcodes.php(355): Favorites\API\Shortcodes\UserFavoriteCount->renderView()
    
    #3 [internal function]: do_shortcode_tag()
    
    #4 /home/site.com/public_html/wp-includes/shortcodes.php(227): preg_replace_callback()
    
    #5 /home/site.com/public_html/wp-includes/class-wp-hook.php(308): do_shortcode()
    
    #6 /home/site.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    #7 /home/site.com/public_html/wp-includes/post-template.php(255): apply_filters()
    
    #8 /home/site.com/public_html/wp-content/themes/klein/content-page.php(22): the_content()
    
    #9 /home/site.com/public_html/wp-includes/template.php(785): require('...')
    
    #10 /home/site.com/public_html/wp-includes/template.php(718): load_template()
    
    #11 /home/site.com/public_html/wp-includes/general-template.php(204): locate_template()
    
    #12 /home/site.com/public_html/wp-content/themes/klein/layout-page-full-content.php(17): get_template_part()
    
    #13 /home/site.com/public_html/wp-includes/template.php(785): require('...')
    
    #14 /home/site.com/public_html/wp-includes/template.php(718): load_template()
    
    #15 /home/site.com/public_html/wp-includes/general-template.php(204): locate_template()
    
    #16 /home/site.com/public_html/wp-content/themes/klein-child/page.php(24): get_template_part()
    
    #17 /home/site.com/public_html/wp-includes/template-loader.php(106): include('...')
    
    #18 /home/site.com/public_html/wp-blog-header.php(19): require_once('...')
    
    #19 /home/site.com/public_html/index.php(17): require('...')
    
    #20 {main}
    
      thrown in /home/site.com/public_html/wp-content/plugins/favorites/app/API/functions.php on line 143

    Thanks

  • The topic ‘Critical error with new update’ is closed to new replies.