rupruprup wrote: ↑Thu Aug 08, 2024 8:08 am
PHP Fatal error: Uncaught Error: Call to undefined method DOMDocument::setAttributeNode() in /includes/system/override/gb/xml_writer.php:79
on 1.0.9.4
I have just tested on my 1.0.9.5 and it seemed to work without problems.
Download for correct version? app.php/tag/s06e02
I am not here to build for you.
I am here to build with you. Let's help each other.
14Steve14 wrote: ↑Wed Nov 13, 2024 10:24 am
Is the change really required and if so how to make the change.
Technically, the sitemap priority element should use a decimal format. The priority values are intended to be between 0.0 and 1.0, so some validators may flag integers like 1 as invalid.
Try (untested):
14Steve14 wrote: ↑Wed Nov 13, 2024 10:24 am
Is the change really required and if so how to make the change.
Technically, the sitemap priority element should use a decimal format. The priority values are intended to be between 0.0 and 1.0, so some validators may flag integers like 1 as invalid.
Try (untested):
$el4 = $doc->createElement('priority');
$el4->nodeValue = sprintf("%.1f", $priority); // Ensures priority is displayed as '1.0'
$item->appendChild($el4);
Whether both changes were required, or whether this is the best way to achieve this, I don't know but now everything shows correctly in all the xml sitemaps.