Needs work
Project:
XML sitemap
Version:
7.x-2.x-dev
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jan 2012 at 10:01 UTC
Updated:
14 Jan 2019 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
farald commentedIf
xmlsitemap_get_link_info($entity_type);returns null, we have this error.
First of all, can this happen in normal circumstances?
If yes, wrapping xmlsitemap_get_link_type_enabled_bundles()'s foreach in
if(empty($info)){}would remove it.
Comment #1.0
farald commentedMinor change
Comment #2
killtheliterate commentedI made a little patch for this, if it's not already take care of — just checking that $info isn't null before doing the loop.
Comment #3
kenorb commentedComment #4
thechanceg commentedWhile I was not able to reproduce your error; I do see how that function could possibly return NULL. Seems sensible to have the check in place, I just made it one line. If not for that I would have just set it to R&TBC.
Comment #5
chris matthews commentedThe 3 year old patch in #4 to xmlsitemap.module does not apply to the latest xmlsitemap 7.x-2.x-dev and if still applicable needs a reroll.