Title: Problem generating XML sitemap
Last modified: January 1, 2018

---

# Problem generating XML sitemap

 *  Resolved [dboeglin](https://wordpress.org/support/users/dboeglin/)
 * (@dboeglin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/problem-generating-xml-sitemap/)
 * 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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-generating-xml-sitemap%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [8 years, 3 months ago](https://wordpress.org/support/topic/problem-generating-xml-sitemap/#post-9825733)
 * [@dboeglin](https://wordpress.org/support/users/dboeglin/) I’ve opened an issue
   for us to look at this here: [https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/1443](https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/1443)
 * In the meantime, you should be able to resolve the warning by turning off debug
   mode.

Viewing 1 replies (of 1 total)

The topic ‘Problem generating XML sitemap’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [xml site map](https://wordpress.org/support/topic-tag/xml-site-map/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/problem-generating-xml-sitemap/#post-9825733)
 * Status: resolved