Author Topic: Prestashop object of type parameter bag  (Read 869 times)

Offline sundar

  • Site Manager
  • Hero Member
  • *****
  • Posts: 249
  • Total likes: 1
  • Karma: +1/-0
  • Gender: Male
  • Thirsty Knowledge...
    • View Profile
    • Can talk anything
Prestashop object of type parameter bag
« on: July 12, 2020, 01:55:15 PM »
Quote
PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Cannot use object of type Symfony\Component\HttpFoundation\ParameterBag as array in /home/xxxxx/xxxxxx.in/src/Adapter/Security/Admin.php:91
Stack trace:
#0 /home/smithikakart/smithikamobiles.in/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php(115): PrestaShop\PrestaShop\Adapter\Security\Admin->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))
#1 /home/smithikakart/smithikamobiles.in/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))
#2 /home/smithikakart/smithikamobiles.in/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Eve in /home/xxxx/xxxxxxxx.in/src/Adapter/Security/Admin.php on line 91
Changes done


src/Adapter/Security/Admin.php



line 91 code is : && isset($event->getRequest()->attributes['exception'])


Replace code is : && $event->getRequest()->attributes->has('exception')
Always TAG your threads

  • Download all the schematics here Direct download
  • Stay connected with S4talk on

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal