Support » Plugin: All in One SEO Pack » Problem generating XML sitemap

  • Resolved dboeglin

    (@dboeglin)



    I am using the “All in One SEO Pack” plugin version 2.4.3.1
    The plugin works fine except the “XML Sitemaps” module:
    I cannot generate XML sitemap using this Plugin

    When I click on “view your sitemap” : I have the following message :

    Erreur d’analyse XML : erreur de syntaxe
    Emplacement : https://www.storkbiochem.com/sitemap.xml
    Numéro de ligne 2, Colonne 1 :Warning: pathinfo() expects parameter 1 to be string, array given in /volume1/web/wp-content/plugins/all-in-one-seo-pack/modules/aioseop_sitemap.php on line 2826

    Line 2817 function is_image_valid( $image ) {
    Line 2818 // Bail if empty image.
    Line 2819 if ( empty( $image ) ) {
    Line 2820 return false;
    Line 2821 }
    Line 2822
    Line 2823 // make the url absolute, if its relative.
    Line 2824 $image = aiosp_common::absolutize_url( $image );
    Line 2825
    Line 2826 $extn = pathinfo( wp_parse_url( $image, PHP_URL_PATH ), PATHINFO_EXTENSION );
    Line 2827 $allowed = apply_filters( ‘aioseop_allowed_image_extensions’, self::$image_extensions );
    Line 2828 // Bail if image does not refer to an image file otherwise google webmaster tools might reject the sitemap.
    Line 2829 if ( ! in_array( $extn, $allowed, true ) ) {
    Line 2830 return false;
    Line 2831 }

    Thank for your help

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem generating XML sitemap’ is closed to new replies.