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 installed a 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 - System - YOOtheme Framework'
'System - True typography'
'System - BT Shortcode'
'System - TM Lazy Load'
'System - JSLazyLoading'
'System - JForms'
'System - Responsive Scroll Triggered Box'
'System - Main Page'
'System - Ba Forms'
'System - Ba Gallery'
'System - AutoAnchor Menu support'
'System - Main Page'
'System - Aikon Super Preloader'
'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'
'System- Admin Branding Reloaded v1.8'
'System - Joomla Web Push Notifications'

In this case simply unpublish the plugin to solve. If this list does not contain a plugin installed on your website you have to unpublish each plugin one by one until you find the one having the bug and the problem fixes.
Main Page plugin error

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