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"
Comments
Comment #2
lhguerra commentedHere's a patch.
Comment #3
hardik_patel_12 commentedComment #4
hardik_patel_12 commentedReapplying the patch.
Comment #5
naresh_bavaskarAbove patch LGTM +1 RTBC
Comment #6
jungleHi, there, the patch only introduced one
Unused use statement, we can not RTBC it.Found no usage of StreamWrapperInterface in file_create_url() in 8.8.2, Maybe used the composer the wrong way. Better adding steps to reproduce. Thanks!
Comment #12
mr.baileysOriginal 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.