XML Sitemap is Not Working with S3 File System (s3fs).

Created on 1 March 2017, almost 8 years ago
Updated 14 January 2025, 12 days ago

XML Sitemap is Not Working with S3 File System (s3fs).

In my case, the sitemap seems to work fine at other host but with Amazon S3 File System I got following message:
1. The requested page "/sitemap.xml" could not be found.

I'm using Xmalsitemap-7.x-2.3 and S3 File System (s3fs) - 7.x-2.8 with apache but if I use with Amazon S3 File System for storage then I get a 404 - Page Not Found on /sitemap.xml.

I ran the "drush xmlsitemap-regenerate" but I get following warnings:

XML sitemap files regenerated in 874.77 ms. Peak memory usage: 52 MB.
PHP Warning: fseek(): supplied resource is not a valid stream resource in /var/www/html/Project/sites/all/libraries/awssdk2/Guzzle/Stream/Stream.php on line 232
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/Project/includes/bootstrap.inc on line 3654
PHP Fatal error: Uncaught Error: Access to undeclared static property: Database::$activeKey in /var/www/html/Project/includes/database/database.inc:1522
Stack trace:
#0 /var/www/html/Project/includes/database/database.inc(2626): Database::getConnection()
#1 /var/www/html/Project/includes/cache.inc(349): db_escape_table('cache_bootstrap')
#2 /var/www/html/Project/includes/cache.inc(330): DrupalDatabaseCache->getMultiple(Array)
#3 /var/www/html/Project/includes/cache.inc(57): DrupalDatabaseCache->get('module_implemen...')
#4 /var/www/html/Project/includes/module.inc(754): cache_get('module_implemen...', 'cache_bootstrap')
#5 /var/www/html/Project/includes/module.inc(1083): module_implements('file_mimetype_m...')
#6 /var/www/html/Project/includes/file.mimetypes.inc(23): drupal_alter('file_mimetype_m...', Array)
#7 /var/www/html/Project/sites/all/modules/contrib/s3fs/S3fsStreamWrapper.inc(244): file_mimetype_mapping()
#8 /v in /var/www/html/Project/includes/database/database.inc on line 1522
PHP Notice: Undefined index: seekable in /var/www/html/Project/sites/all/libraries/awssdk2/Guzzle/Stream/Stream.php on line 232
PHP Fatal error: Uncaught Error: Access to undeclared static property: S3fsStreamWrapper::$mimeTypeMapping in /var/www/html/Project/sites/all/modules/contrib/s3fs/S3fsStreamWrapper.inc:244
Stack trace:
#0 /var/www/html/Project/sites/all/modules/contrib/s3fs/S3fsStreamWrapper.inc(768): S3fsStreamWrapper::getMimeType('s3://xmlsitemap...')
#1 [internal function]: S3fsStreamWrapper->stream_flush()
#2 {main}
thrown in /var/www/html/Project/sites/all/modules/contrib/s3fs/S3fsStreamWrapper.inc on line 244

Any Idea??

Thanks

🐛 Bug report
Status

Closed: outdated

Version

2.8

Component

Code

Created by

🇮🇳India rahul_sankrit New Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The requests in this issue do not appear to exist in the 8.x-3.x and newer branches.

Production build 0.71.5 2024