cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in admin panel after copying Magento project from one directory to other.

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Exception in admin panel after copying Magento project from one directory to other.

1 exception(s):
Exception #0 (InvalidArgumentException): Unable to unserialize value.

Exception #0 (InvalidArgumentException): Unable to unserialize value.
#0 D:\Projects\xampp\htdocs\test2\app\code\Magento\User\Model\ResourceModel\User.php(244): Magento\Framework\Serialize\Serializer\Json->unserialize('')
#1 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Model\ResourceModel\Db\AbstractDb.php(356): Magento\User\Model\ResourceModel\User->_afterLoad(Object(Magento\User\Model\User\Interceptor))
#2 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Model\AbstractModel.php(536): Magento\Framework\Model\ResourceModel\Db\AbstractDb->load(Object(Magento\User\Model\User\Interceptor), '1', 'user_id')
#3 D:\Projects\xampp\htdocs\test2\generated\code\Magento\User\Model\User\Interceptor.php(765): Magento\Framework\Model\AbstractModel->load('1', NULL)
#4 D:\Projects\xampp\htdocs\test2\app\code\Magento\User\Model\User.php(618): Magento\User\Model\User\Interceptor->load('1')
#5 D:\Projects\xampp\htdocs\test2\generated\code\Magento\User\Model\User\Interceptor.php(232): Magento\User\Model\User->reload()
#6 D:\Projects\xampp\htdocs\test2\app\code\Magento\Backend\App\Action\Plugin\Authentication.php(122): Magento\User\Model\User\Interceptor->reload()
#7 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Interception\Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#8 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#9 D:\Projects\xampp\htdocs\test2\generated\code\Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor.php(39): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->___callPlugins('dispatch', Array, NULL)
#10 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\App\FrontController.php(55): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#11 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Interception\Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#12 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Interception\Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#13 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\Interception\Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#14 D:\Projects\xampp\htdocs\test2\generated\code\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#15 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\App\Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#16 D:\Projects\xampp\htdocs\test2\generated\code\Magento\Framework\App\Http\Interceptor.php(24): Magento\Framework\App\Http->launch()
#17 D:\Projects\xampp\htdocs\test2\lib\internal\Magento\Framework\App\Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#18 D:\Projects\xampp\htdocs\test2\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#19 {main}
1 REPLY 1

Re: Exception in admin panel after copying Magento project from one directory to other.

Hello @Shikha710

 

seems like you upgrade magento 2 and some data into serilize form and magento 2 latest version json decode so that issue come

 

try below solution for same

 

The problem is in /vendor/magento/framework/Serialize/Serializer/Json.php

and I used the solution in below link. Changing a code in json.php

It working fine for now.

https://magento.stackexchange.com/questions/194010/magento-2-2-unable-to-unserialize-value

 

if works then mark as solution

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer