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}

CommentFileSizeAuthor
#3 3261770-3.patch426 byteshmendes

Comments

solideogloria created an issue. See original summary.

solideogloria’s picture

Issue summary: View changes
hmendes’s picture

StatusFileSize
new426 bytes

Actually 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?

hmendes’s picture

Status: Active » Needs review

.

solideogloria’s picture

Status: Needs review » Reviewed & tested by the community

I 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.

adrianm6254’s picture

Patch #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)

damienmckenna’s picture

Looks good, thanks for solving that.

  • DamienMcKenna committed 1b59ab6 on 5.0.x authored by hmendes
    Issue #3261770 by hmendes, solideogloria, Adrianm6254, DamienMcKenna:...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.