Class 'Grav\Common\HTTP\Response' not found

In the dashboard I get a red messagebox with the message: Class ‘Grav\Common\HTTP\Response’ not found

What can I do? All seems to work.

@josberkers, I cannot reproduce the issue using a fresh copy of Grav 1.7.23 + Admin 1.10.23. on Windows using WSL2/Ubuntu 20.04

What can I do?

Provide more context that might give more insight in the issue?

  • Which Grav and Admin version?
  • Is it a new installation?
  • Have you run Admin before without issues?
    • What has changed in the meantime?
  • Can you list the steps you’ve taken that will reproduce the issue?
  • What is the stacktrace in log file /log/grav.log.
    This might provide much more info about where and why this issue as occurred.

Hi Pamtbaau,

  • Which Grav and Admin version? = v1.7.23 and # v1.10.24
  • I see in the Changelog.md that this admin-version requires the v1.7.24 version of Grav. But according to the website v1.7.23 is the latest version!- Is it a new installation? = Yes
  • Have you run Admin before without issues? = Yes
  • What has changed in the meantime? = New version installed I guess- Can you list the steps you’ve taken that will reproduce the issue?
  • What is the stacktrace in log file /log/grav.log.
    This might provide much more info about where and why this issue as occurred. = See attachment

Looks like the Grav and admin-versions doesn’t match!

Best regards,

Jos

(Attachment grav.log is missing)

I tried to send the log file /log/grav.log . But it was rejected and it is to long to paste in this message.

@josberkers

Looks like the Grav and admin-versions doesn’t match!

The top entry in the changelog.md is about the upcoming release. Therefor it has no date set yet.

I tried to send the log file /log/grav.log . But it was rejected and it is to long to paste in this message.

Makes me wonder why the log file is that big…

Anyway, there’s no need to send the entire grav.log file. Probably only the last logged issue is of importance.
In Admin you can get the last issue by going to Tools, open tab Logs, choose ‘Verbose output’ in the select box in the middle and copy all lines of the last entry.

Here are the last

[2021-10-06 01:09:43] grav.CRITICAL: Class ‘Grav\Common\HTTP\Response’ not found - Trace:

  • #0 /var/www/vhosts/josberkers.nl/httpdocs/grav/user/plugins/admin/classes/plugin/AdminController.php(391): Grav\Plugin\Admin\Admin->getNotifications(false)
  • #1 /var/www/vhosts/josberkers.nl/httpdocs/grav/user/plugins/admin/classes/plugin/AdminBaseController.php(104): Grav\Plugin\Admin\AdminController->taskGetNotifications()
  • #2 /var/www/vhosts/josberkers.nl/httpdocs/grav/user/plugins/admin/admin.php(1005): Grav\Plugin\Admin\AdminBaseController->execute()
  • #3 /var/www/vhosts/josberkers.nl/httpdocs/grav/user/plugins/admin/admin.php(555): Grav\Plugin\AdminPlugin->initializeController(‘getNotification…’, Array)
  • #4 /var/www/vhosts/josberkers.nl/httpdocs/grav/vendor/symfony/event-dispatcher/EventDispatcher.php(264): Grav\Plugin\AdminPlugin->onPagesInitialized(Object(RocketTheme\Toolbox\Event\Event), ‘onPagesInitiali…’, Object(Symfony\Component\EventDispatcher\EventDispatcher))
  • #5 /var/www/vhosts/josberkers.nl/httpdocs/grav/vendor/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event))
  • #6 /var/www/vhosts/josberkers.nl/httpdocs/grav/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, ‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event))
  • #7 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Grav.php(564): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(RocketTheme\Toolbox\Event\Event), ‘onPagesInitiali…’)
  • #8 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/PagesProcessor.php(45): Grav\Common\Grav->fireEvent(‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event))
  • #9 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\PagesProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #10 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #11 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/TwigProcessor.php(38): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #12 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\TwigProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #13 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #14 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/AssetsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #15 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\AssetsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #16 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #17 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/SchedulerProcessor.php(40): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #18 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\SchedulerProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #19 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #20 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/BackupsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #21 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\BackupsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #22 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #23 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/TasksProcessor.php(69): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #24 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\TasksProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #25 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #26 /var/www/vhosts/josberkers.nl/httpdocs/grav/user/plugins/admin/classes/plugin/Router.php(65): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #27 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Plugin\Admin\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #28 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #29 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/RequestProcessor.php(63): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #30 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\RequestProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #31 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #32 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/ThemesProcessor.php(38): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #33 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\ThemesProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #34 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #35 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/PluginsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #36 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\PluginsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #37 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #38 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/InitializeProcessor.php(130): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #39 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Debugger.php(546): Grav\Common\Processors\InitializeProcessor::Grav\Common\Processors{closure}()
  • #40 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Processors/InitializeProcessor.php(131): Grav\Common\Debugger->profile(Object(Closure))
  • #41 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(50): Grav\Common\Processors\InitializeProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
  • #42 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #43 /var/www/vhosts/josberkers.nl/httpdocs/grav/system/src/Grav/Common/Grav.php(303): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
  • #44 /var/www/vhosts/josberkers.nl/httpdocs/grav/index.php(58): Grav\Common\Grav->process()
  • #45 {main} [] []

@josberkers, Haven’t found known issues similar to your error messages.

But since it has to do with an outgoing request, it might be related to the following issue Top websites see outages as Let’s Encrypt’s CA certificate expires.

You might try the solution provided in post: I can't check for updates due to peer certificate authentication error

Thank you. I’m going to investigate it.