How to fix if Xmap 1.2.11 doesn't work with Virtuemart 1.1.8

Problem statement:

Recently I upgraded xmap component on the latest version which was 1.2.11 at that moment. Right after that I couldn't get working the sitemap.

This short article explains how I fixed the problem

First of all, I would like to provide the exact error message in case somebody has the same problem. The error was as an empty page with php functions calls as call stack, which reports in the first string the following (I removed full paths as they aren't relevant to the post):

Error message


PHP Warning: Cannot modify header information - headers already sent by (output started at components/com_xmap/xmap.xml.php:142) in components/com_virtuemart/classes/ps_session.php on line 68

Resolution

It is funny, but the solution is very simple, you are to set check mark for "Compress the XML sitemap to save bandwidth" in preferences of Xmap component and after that it works like a charm. I have no idea why is that but because I can read Cyrillic, I find a post here and just tried to use the advice and it works.

Hope it helps others.