Closed (fixed)
Project:
XML sitemap
Version:
5.x-1.6
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 03:36 UTC
Updated:
12 Oct 2009 at 22:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidI double checked to make sure this was the 5.x-1.6 version and not the 6.x-2.x version where I also call array_key_exists, and sure enough, line 585 of 5.x-1.6 is the problem:
Sounds like it's being passed invalid data, but without more information it's hard to know what's going wrong.
Comment #2
Anonymous (not verified) commentedThe use of _xmlsitemap_frequency in _xmlsitemap_format could cause the $interval value to be NULL if the array element $entry['#changefreq'] is NULL. Or perhaps this is a buggy PHP version. What is the PHP version being used? What should the default frequency be? Oh, never mind I see that _xmlsitemap_frequency already takes care of the default.
What about this patch?
Comment #3
dave reidDid some testing and it's when the function is passed a float value is when this happens, because array_key_exists() in PHP 4.4.0 the $key value needs to be either a string or integer. Committed the following patch to CVS.