Closed sonnykt closed 2 years ago
fixed when #849 gets merged
Just encountered another site with issues running cron:
2019-11-04T21:16:20Z CRONJOB: drush cron
Agent pid 20
Identity added: /home/.ssh/key (/home/.ssh/key)
WD php: TypeError: Argument 1 passed to xmlsitemap_node_create_link() [error]
must be an instance of stdClass, boolean given, called in
/app/profiles/govcms/modules/contrib/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.module
on line 282 in xmlsitemap_node_create_link() (line 219 of
/app/profiles/govcms/modules/contrib/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module).
TypeError: Argument 1 passed to xmlsitemap_node_create_link() must be an instance of stdClass, boolean given, called in /app/profiles/govcms/modules/contrib/xmlsitemap/xmlsitemap_menu/xmlsitemap_menu.module on line 282 in xmlsitemap_node_create_link() (line 219 of /app/profiles/govcms/modules/contrib/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module).
Drush command terminated abnormally due to an unrecoverable error. [error]
This causes the cron pod to fail.
Closing issue. Module had been updated previous to 2.6
Version 2.5 has a critical issue https://www.drupal.org/project/xmlsitemap/issues/2986847 which breaks the sitemap and may break system cron as well. ASADA has reported the issue on their site https://www.govcms.support/a/tickets/3651. Disabling then re-enabling the module fixes the issue temporarily, but the module needs to be upgraded to 2.6 to permanent fix the issue.