Jump to content
asmar

PHP Fatal error: Cannot use object of type Symfony\\Component\\HttpFoundation\\ParameterBag as array in Security/Admin.php:91

Recommended Posts

Hi all,

On the same server I had the live site running on domain.com and the dev at domaindev.com

I've copied all content + db to the live one (the previous was 1.6 while the new latest 1.7) and everything works fine apart from the fact that I cannot login at all at admin.

I'm getting a 500 error and the logs showing the following:

[Tue Nov 26 16:55:04.938070 2019] [fcgid:warn] [pid 2592] [client 178.147.6.212:55321] mod_fcgid: stderr: PHP Fatal error:  Uncaught Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Cannot use object of type Symfony\\Component\\HttpFoundation\\ParameterBag as array in /home/eshop/public_html/src/Adapter/Security/Admin.php:91
[Tue Nov 26 16:55:04.938112 2019] [fcgid:warn] [pid 2592] [client 178.147.6.212:55321] mod_fcgid: stderr: Stack trace:
[Tue Nov 26 16:55:04.938115 2019] [fcgid:warn] [pid 2592] [client 178.147.6.212:55321] mod_fcgid: stderr: #0 /home/eshop/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): PrestaShop\\PrestaShop\\Adapter\\Security\\Admin->onKernelRequest(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent), 'kernel.request', Object(Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))
[Tue Nov 26 16:55:04.938119 2019] [fcgid:warn] [pid 2592] [client 178.147.6.212:55321] mod_fcgid: stderr: #1 /home/eshop/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'kernel.request', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent))
[Tue Nov 26 16:55:04.938123 2019] [fcgid:warn] [pid 2592] [client 178.147.6.212:55321] mod_fcgid: stderr: #2 /home/eshop/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(127): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('kernel.request', Object(Symfony\\Component\\HttpKerne in /home/eshop/public_html/src/Adapter/Security/Admin.php on line 91

I've spend a lot of time searching similar problems but no luck in any of the posts.

Any help is very much appreciated.

Thanks

Share this post


Link to post
Share on other sites

Just found the solution.....I had to delete everything under var/cache/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More