I attempted to update this module from 7.x-2.0-rc2 to the stable release, 7.x-2.0, using drush. Everything seemed fine from the drush perspective. However, attempts to load the site resulted in a whitescreen.
After enabling all error reporting via index.php, I was able to retrieve the following error message:
Notice: Undefined index: schema_fields_sql in includes/entity.inc on line 260
Catchable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, null given, called in includes/entity.inc on line 279 and defined in includes/database/select.inc on line 1301
I attempted to run update.php, knowing that sometimes it clears random errors such as these, and saw a huge, red, warning box with all kinds of issues.
Notice: Constant XMLSITEMAP_MAX_SITEMAP_LINKS already defined in require_once() (line 15 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_MAX_SITEMAP_FILESIZE already defined in require_once() (line 20 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_YEARLY already defined in require_once() (line 22 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_MONTHLY already defined in require_once() (line 23 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_WEEKLY already defined in require_once() (line 24 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_DAILY already defined in require_once() (line 25 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_HOURLY already defined in require_once() (line 26 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_FREQUENCY_ALWAYS already defined in require_once() (line 27 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_LASTMOD_SHORT already defined in require_once() (line 32 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_LASTMOD_MEDIUM already defined in require_once() (line 37 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_LASTMOD_LONG already defined in require_once() (line 42 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_STATUS_DEFAULT already defined in require_once() (line 47 of sites/all/modules/xmlsitemap/xmlsitemap.module).
Notice: Constant XMLSITEMAP_PRIORITY_DEFAULT already defined in require_once() (line 52 of sites/all/modules/xmlsitemap/xmlsitemap.module).
After running update.php, this notice did not go away. However, I was able to access the administrative section of the site. So, I tried to regenerate the sitemap, and got the following message:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=355&op=do StatusText: Internal Server Error ResponseText:
Does anyone have any recommendations on how to get this update to work? I didn't see anything special in the release notes.
Comments
Comment #1
thelioness22 commentedComment #2
thelioness22 commentedUpdate:
After running update.php a couple times and clearing the cache a couple times, the error messages and notifications have subsided.
However, I still cannot "Update cached files" nor "Rebuild links" for my sitemap without the AJAX error.
So the remaining question is: If the update and rebuild functions don't work, is the sitemap ever updating itself?
Comment #3
renatog commentedHello @thelioness22 how are you?
I was trying here, I'm using lando in my local environemtn and I also tested in my test environment using Acquia and Platform.sh
For it worked well.
Maybe is related to the version that we were using. I updated the Drupal to 7.89 and XML sitemap to 7.x.2.6 and it worked fine
If you still with this error I recommend trying to updating those version, it'll work for you.
Comment #4
renatog commentedIf you have any other issue please let us know about it ok?
Thank you so much Leona