Title: Error in sitemap-posttype-page.xml
Last modified: August 21, 2016

---

# Error in sitemap-posttype-page.xml

 *  [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/)
 * I seem to be getting this error on my sitemap for a simple site with 6 pages 
   on WordPress 3.9.1 with W3TC.
 *     ```
       Warning: Illegal offset type in isset or empty in
       /httpdocs/wp-content/plugins/xml-sitemap-feed/includes/core.php on line 358
       ```
   
 * Any idea where this problem is coming from? My pages are not listed in the file.
 * [https://wordpress.org/plugins/xml-sitemap-feed/](https://wordpress.org/plugins/xml-sitemap-feed/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [VannDigital](https://wordpress.org/support/users/vdn-staff/)
 * (@vdn-staff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084793)
 * Yea we’re getting this error as well…
 * [http://s817.photobucket.com/user/youngraleigh/media/Work%20Photos/SitemapParsingErrorScreenshot20140710PhotoArtwork_zpsdd84b3bf.png.html?sort=3&o=0](http://s817.photobucket.com/user/youngraleigh/media/Work%20Photos/SitemapParsingErrorScreenshot20140710PhotoArtwork_zpsdd84b3bf.png.html?sort=3&o=0)
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084803)
 * [@jbx](https://wordpress.org/support/users/jbx/) – could you try installing the
   development version from [http://wordpress.org/plugins/xml-sitemap-feed/developers/](http://wordpress.org/plugins/xml-sitemap-feed/developers/)(
   under Other Versions) and let me know if you still get the error?
 * [@vann](https://wordpress.org/support/users/vann/) – it looks like the sitemap
   generation process is running out of memory. Please try setting the “Split by”
   option under the specific post type sitemap settings to “Year” or even “Month”
   if needed.
 *  [VannDigital](https://wordpress.org/support/users/vdn-staff/)
 * (@vdn-staff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084808)
 * **[@ravanh](https://wordpress.org/support/users/ravanh/)** – that seems to work
   for right now.
 * is the sitemap supposed to redirect to the homepage when you click on the post
   links???
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084811)
 * > is the sitemap supposed to redirect to the homepage when you click on the post
   > links???
 * No, clicking the links in the sitemap index, you should land on the individual
   sitemap. Clicking on a link in a sitemap, you should land on the actual post…
   Can it be that your site has NO posts? WordPress is known to behave funny (in
   respect to feeds) when there are no posts at all. IF so, try to publish at least
   one post.
 * You also might try to resave your permalink structure, just to make sure.
 *  [VannDigital](https://wordpress.org/support/users/vdn-staff/)
 * (@vdn-staff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084812)
 * **[@ravanh](https://wordpress.org/support/users/ravanh/)** i got 6486 (including
   the 1s on the homepage) posts published.
 * so what that mean???
 * URL: [http://www.vanndigital.com/](http://www.vanndigital.com/)
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084836)
 * [@vann](https://wordpress.org/support/users/vann/) – those are items of type 
   Porfolio, not the normal Post. Your main blog feed [http://www.vanndigital.com/feed/](http://www.vanndigital.com/feed/)
   returns a 404 status. Publish at least one normal post. You do not even need 
   to include it in a sitemap…
 *  Thread Starter [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084838)
 * In my case I also don’t have any posts. I have 6 pages (its a new site).
    But
   I installed another plugin “Google XML Sitemaps” and it works fine.
 * I will try to install the dev version on my local installation this evening and
   see if it works.
 *  [VannDigital](https://wordpress.org/support/users/vdn-staff/)
 * (@vdn-staff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084844)
 * **[@ravanh](https://wordpress.org/support/users/ravanh/)** thats because we dont
   use that feed.
 * this the feed we use…
 * [http://www.vanndigital.com/portfolio_category/channels/feed](http://www.vanndigital.com/portfolio_category/channels/feed)
 * but we went back to using WordPress SEO sitemap yesterday & we’re now using your
   plugin for Google News sitemap
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084904)
 * Hi jbx, did you get around to testing the dev version? If so, and if still getting
   this warning then please tell me if the custom post type you are using has the`
   has_archive` parameter set to `false` by any chance.
 * Apparently WordPress can return a `null` on `get_query_var('post_type')` in some
   cases which would explain the illegal offset type warning…

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error in sitemap-posttype-page.xml’ is closed to new replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/error-in-sitemap-posttype-pagexml/#post-5084904)
 * Status: not resolved