• Resolved tomz6

    (@tomz6)


    Hi,

    When I have this plugin enabled, it causes critical error for my website sitemap. When I checked error log it says “PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Visual_Portfolio_Sitemap::add_images_to_sitemap(), 1 passed in….and exactly 2 expected in..”. The sitemap is generated using rank math.

Viewing 3 replies - 1 through 3 (of 3 total)
  • traviswilliamson

    (@traviswilliamson)

    I’m having the same issue on my website. Following this thread for a response. I’m using the Yoast plugin to generate my sitemap.

    [27-Nov-2023 18:36:37 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Visual_Portfolio_Sitemap::add_images_to_sitemap(), 1 passed in /home/snowhome/public_html/wp-includes/class-wp-hook.php on line 326 and exactly 2 expected in /home/snowhome/public_html/wp-content/plugins/visual-portfolio/classes/class-sitemap.php:69

    Stack trace:

    #0 /home/snowhome/public_html/wp-includes/class-wp-hook.php(326): Visual_Portfolio_Sitemap->add_images_to_sitemap(Array)

    #1 /home/snowhome/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #2 /home/snowhome/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-image-parser.php(127): apply_filters(‘wpseo_sitemap_u…’, Array, 1155)

    #3 /home/snowhome/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php(673): WPSEO_Sitemap_Image_Parser->get_images(Object(WP_Post))

    #4 /home/snowhome/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php(235): WPSEO_Post_Type_Sitemap_Provi in /home/snowhome/public_html/wp-content/plugins/visual-portfolio/classes/class-sitemap.php on line 69

    Plugin Author nK

    (@nko)

    Hi,

    Thank you for reporting to me. Please update the plugin to v3.2.2, this bug should be fixed.

    Regards,
    Nikita.

    traviswilliamson

    (@traviswilliamson)

    This fixed it for me. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sitemap critical error’ is closed to new replies.