Error: Class 'StreamWrapperInterface' not found in file_create_url()

Created on 18 February 2020, almost 5 years ago
Updated 7 August 2023, over 1 year ago
  • What are the steps required to reproduce the bug?

    Upgrade to drupal/core:8.8.2 using composer and try to access the site

  • What behavior were you expecting?

    Site works correctly

  • What happened instead?

    I get a WSOD and the following error in the watchdog:

    drupal-watchdog staging-27666 Feb 17 22:13:07 staging-27666 nscportaldev[10552]: http://nscportaldev.prod.acquia-sites.com|1581977587|php|189.4.82.42|http://nscportaldev.prod.acquia-sites.com/user/login||0||Error: Class 'StreamWrapperInterface' not found in file_create_url() (line 258 of /mnt/www/html/nscportaldev/docroot/core/includes/file.inc) #0 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/Asset/JsCollectionRenderer.php(77): file_create_url('public://langua...') #1 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(324): Drupal\Core\Asset\JsCollectionRenderer->render(Array) #2 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(161): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array) #3 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse)) #4 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #5 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #6 /mnt/www/html/nscportaldev/vendor/symfony/http-kernel/HttpKernel.php(191): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\Component\HttpKernel\Event\FilterResponseEvent)) #7 /mnt/www/html/nscportaldev/vendor/symfony/http-kernel/HttpKernel.php(173): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1) #8 /mnt/www/html/nscportaldev/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #9 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /mnt/www/html/nscportaldev/vendor/asm89/stack-cors/src/Asm89/Stack/Cors.php(49): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /mnt/www/html/nscportaldev/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /mnt/www/html/nscportaldev/docroot/core/lib/Drupal/Core/DrupalKernel.php(694): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /mnt/www/html/nscportaldev/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #17 {main}. request_id="v-ad0b5bfe-51d2-11ea-9b48-8347ca62cc1f"
        
💬 Support request
Status

Closed: cannot reproduce

Version

9.5

Component
File system 

Last updated about 11 hours ago

Created by

🇧🇷Brazil lhguerra

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.

  • 🇧🇪Belgium mr.baileys 🇧🇪 (Ghent)

    Original issue contains too little information to go on, and there has been no activity in this issue in over a year with no indication that this is caused by a bug in Drupal core, so closing.

Production build 0.71.5 2024