J!Extensions Store™
Faq My images sitemap doesn't embed all images in my site, what could be the problem?

My images sitemap doesn't embed all images in my site, what could be the problem?

Created on:Monday, 30 June 2014 14:45

Images sitemap generation is accomplished using a crawler that scan your site looking for images to include in your sitemap.

This operation when you have hundreds of links may require several minutes to complete.

In the configuration of JSitemap you will find a setting to limit number of requests used to generate images sitemap. Reducing this value can decrease the total time needed to complete sitemap generation and avoid server timeout. By default the parameter is set to scan 50 links. You can progressively increase this value if you have more links, trying to generate the sitemap and ensuring that the process completes without server error and timeouts.


Of course this may have the side effect to not scan fully your site and so skipping some links and images. In this case you can better use the advanced AJAX generation and precaching features added in the version 2.3 of JSitemap to have a full images sitemap generated step by step.


In some other cases images could not be embedded in your sitemap simply because some exclude filters inside various data source settings exclude them, or because you are using a javascript gallery that manages thumbnails and realtime loading of images. If the images are not embedded in the HTML code the crawler won't be able to find and include them in your sitemap, activating the option of JSitemap to recongnize gallery images often solve this.
Another possible issue could be due to the use of the plugin JCH Optimize Pro with the option 'Minify HTML' activated and set to 'Ultra' mode. When the HTML is minified the crawler could not be able to find correctly all embedded images in this case change the setting of JCH HTML minification to 'Advanced'. Finally some hosting provider block for security reasons HTTP connections on the same server(loopback), as a result the crawler could be blocked and the images sitemap would be empty.

If you experiment issues about the images and videos sitemap crawler, you can perform the crawler test to check if it's able to work properly or if it's blocked for some reasons, for example if your hosting provider disallows loopback connections or has a firewall blocking crawlers. In the component configuration you find a button named 'Crawler test' to display the response page given by your server.