Halle iedereen,
Ik heb een probleem met het benaderen van mijn admin panel. De frontend werkt wel, maar wanneer ik mijn adminpanel benader krijg ik de volgende melding.
"
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1216196897119
"
Wanneer ik dit rapport open zegt hij:
"
{"0":"Warning: Cannot use a scalar value as an array in \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Session\/SessionManager.php on line 470","1":"#0 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Session\/SessionManager.php(470): Magento\\Framework\\App\\ErrorHandler->handler(2, 'Cannot use a sc...', '\/home\/deb112158...', 470, Array)\n#1 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Session\/SessionManager.php(195): Magento\\Framework\\Session\\SessionManager->_addHost()\n#2 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/generated\/code\/Magento\/Backend\/Model\/Session\/Interceptor.php(63): Magento\\Framework\\Session\\SessionManager->start()\n#3 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Session\/SessionManager.php(130): Magento\\Backend\\Model\\Session\\Interceptor->start()\n#4 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/generated\/code\/Magento\/Backend\/Model\/Session\/Interceptor.php(14): Magento\\Framework\\Session\\SessionManager->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Backend\\Model\\Session\\AdminConfig), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State))\n#5 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(111): Magento\\Backend\\Model\\Session\\Interceptor->__construct(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\Framework\\Session\\SidResolver\\Proxy), Object(Magento\\Backend\\Model\\Session\\AdminConfig), Object(Magento\\Framework\\Session\\SaveHandler), Object(Magento\\Framework\\Session\\Validator), Object(Magento\\Framework\\Session\\Storage), Object(Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager), Object(Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory), Object(Magento\\Framework\\App\\State))\n#6 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Backend...', Array)\n#7 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Backend...')\n#8 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(144): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Backend...')\n#9 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(230): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'session', 'Magento\\\\Store\\\\A...')\n#10 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Store\\\\A...', Array, Array)\n#11 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Store\\\\A...', Array, Array)\n#12 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Store\\\\A...')\n#13 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(144): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Store\\\\A...')\n#14 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(230): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'redirect', 'Magento\\\\Backend...')\n#15 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Backend...', Array, Array)\n#16 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Backend...', Array, Array)\n#17 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(70): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Backend...')\n#18 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(144): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Backend...')\n#19 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(230): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Backend...', NULL, 'context', 'Magento\\\\Backend...')\n#20 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(34): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime('Magento\\\\Backend...', Array, Array)\n#21 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(59): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Backend...', Array, Array)\n#22 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(56): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Backend...', Array)\n#23 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/ActionFactory.php(40): Magento\\Framework\\ObjectManager\\ObjectManager->create('Magento\\\\Backend...')\n#24 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/Router\/Base.php(297): Magento\\Framework\\App\\ActionFactory->create('Magento\\\\Backend...')\n#25 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/Router\/Base.php(158): Magento\\Framework\\App\\Router\\Base->matchAction(Object(Magento\\Framework\\App\\Request\\Http), Array)\n#26 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/FrontController.php(50): Magento\\Framework\\App\\Router\\Base->match(Object(Magento\\Framework\\App\\Request\\Http))\n#27 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#28 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\n#29 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#30 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, Array)\n#31 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#32 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#33 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#34 \/home\/deb112158\/domains\/magento2.mpcorporation.nl\/public_html\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#35 {main}","url":"\/admin_6udmtd\/admin\/index\/index\/key\/6dd3ced9171fc960bea17228cbe4496d9bda01156f42d5bfc561c373ed99efbf\/","script_name":"\/index.php"}
"
Wie kan mij helpen?
Solved! Go to Solution.
Kijkend naar de fout lijkt het alsof het uit de gegenereerde directory komt en gerelateerd is aan Factory classes.
Voer de onderstaande stappen uit om deze fout te verhelpen:
open je ssh-terminal en voer onderstaande opdrachten sequentieel uit
rm -rf gegenereerd
rm -rf var / cache
php bin / magento setup: di: compile
php bin / magento cache: schoon
php bin / magento cache: flush
Kijkend naar de fout lijkt het alsof het uit de gegenereerde directory komt en gerelateerd is aan Factory classes.
Voer de onderstaande stappen uit om deze fout te verhelpen:
open je ssh-terminal en voer onderstaande opdrachten sequentieel uit
rm -rf gegenereerd
rm -rf var / cache
php bin / magento setup: di: compile
php bin / magento cache: schoon
php bin / magento cache: flush