J!Extensions Store™
Faq Why XML sitemap has error 'Call to undefined method Joomla\CMS\Document\RawDocument::addCustomTag()'

Why XML sitemap has error 'Call to undefined method Joomla\CMS\Document\RawDocument::addCustomTag()'

Created on:Monday, 30 June 2014 16:27

This is not a problem of the JSitemap component, this means that you have an installed bugged plugin.

This error means that the standard Joomla XML documents has been broken by 3PD plugins or extensions not dealing correctly with formats other than HTML.

A blacklist of well known bugged plugins are:
'System - YOOtheme Framework'
'System - True typography'
'System - BT Shortcode'
'System - TM Lazy Load'
'System - JForms'
'System - Responsive Scroll Triggered Box'
'System - Main Page'
'System - Ba Forms'
'System - Ba Gallery'
'System - AutoAnchor Menu support'
'System - Main Page'
'System - JSJobs Register'
'System - EasyScript'
'System - AutoAnchor Menu support'
'System - vmVendor'
'System - Jubenta cookie solution'
'System - Notification Message Bar'
'System - Add FullAjax'
'System - iWt CookieAlarm'
'System - OpenPotion Head and Body'
'System - BT Product Quick View'
'System - Direct Alias Pro'
'System - Ecwid'
'System - Route66'
'System - AxisMeta Renderer'
'System - Social Meta Tags'
'System - JotMarker'
'System - Phocaopengraph'
'System - ResponsiveEUCookie'
'System - Regular Labs - Email Protector'(fixed in 4.0.7)
'System - Regular Labs - Sourcerer'(fixed in 7.0.1)
'System - Promo Notice Message With Timer'
'System - Iubenda Cookie Solution'
'System - JMS FB Instant Articles K2'
'System - Google Tag Manager'

In this case simply unpublish the plugin to solve.
Main Page plugin error

Additionally you can report the problem to the plugin developer so they will be able to fix it.