Problem/Motivation
When downloading a saved .mysql.gz backup file, I see a PHP notice in the logs.
Notice: Undefined index: function in Drupal\Core\Utility\Error::getLastCaller() (line 125 of .../core/lib/Drupal/Core/Utility/Error.php)
#0 .../core/includes/bootstrap.inc(346): _drupal_error_handler_real()
#1 .../core/lib/Drupal/Core/Utility/Error.php(125): _drupal_error_handler()
#2 .../core/lib/Drupal/Core/Utility/Error.php(56): Drupal\Core\Utility\Error::getLastCaller()
#3 .../core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php(81): Drupal\Core\Utility\Error::decodeException()
#4 [internal function]: Drupal\Core\EventSubscriber\FinalExceptionSubscriber->onException()
#5 .../core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#6 /var/www/services/vendor/symfony/http-kernel/HttpKernel.php(219): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#7 /var/www/services/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#8 .../core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#9 .../core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#10 .../core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#11 .../core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#12 .../core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#13 .../core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /var/www/services/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 .../core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#16 .../index.php(19): Drupal\Core\DrupalKernel->handle()
#17 {main}
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3261770-3.patch | 426 bytes | hmendes |
Comments
Comment #2
solideogloria commentedComment #3
hmendes commentedActually there's also an error that appears in the log:
Symfony\Component\HttpKernel\Exception\ControllerDoesNotReturnResponseException: The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned null. Did you forget to add a return statement somewhere in your controller? in () (line 98 of /app/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php).The patch seems to fix both problems, can you see if it solves for you, please?
Comment #4
hmendes commented.
Comment #5
solideogloria commentedI did still get the error a little bit after installing the patch, but I cleared the cache and maybe that helped? I don't get the notice/warning or error anymore, so it seems to have fixed it.
Comment #6
adrianm6254 commentedPatch #3 worked clearing this error that I was having:
Notice: fread(): read of 8192 bytes failed with errno=21 Is a directory in Drupal\Core\StreamWrapper\LocalStream->stream_read() (line 180 of /app/web/core/lib/Drupal/Core/StreamWrapper/LocalStream.php)
Comment #7
damienmckennaLooks good, thanks for solving that.
Comment #9
damienmckennaCommitted.