I got the error 'Unable to serialize value' after upgrading the magento version to the 2.2.1












2















I have upgraded website 2.2.1 and facing Unable to serialize value error in particular product categories.



When I disabled the page cache (FPC) from the admin cache management then it works fine but when I enabled the page cache then I got the error.



But I need to enable page cache for optimization. Can you guys please help me!!!!




{"0":"Unable to serialize value.","1":"#0 /home/infiniar/public_html/vendor/magento/framework/App/PageCache/
Kernel.php(153): MagentoFrameworkSerializeSerializerJson->serialize(Array)n#1 /home/infiniar/public_html/vendor/
magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(96): MagentoFrameworkAppPageCacheKernel->process
(Object(MagentoFrameworkAppResponseHttpInterceptor))n#2 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(146): MagentoPageCacheModelControllerResultBuiltinPlugin->afterRenderResult(Object(
MagentoFrameworkViewResultPageInterceptor), Object(MagentoFrameworkViewResultPageInterceptor), Object(
MagentoFrameworkAppResponseHttpInterceptor))n#3 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->
MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))n#4 /home/infiniar/
public_html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26):
MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)n#5 /home/infiniar/
public_html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(
Object(MagentoFrameworkAppResponseHttpInterceptor))n#6 /home/infiniar/public_html/vendor/magento/framework/App
/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()n#7 /home/infiniar/public_html/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))n#8 {main}","url":"/products/
computer-cases.html","script_name":"/index.php"}











share|improve this question
















bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please review this magento.stackexchange.com/questions/146154/…

    – Purushotam Sharma
    Jan 1 '18 at 8:59
















2















I have upgraded website 2.2.1 and facing Unable to serialize value error in particular product categories.



When I disabled the page cache (FPC) from the admin cache management then it works fine but when I enabled the page cache then I got the error.



But I need to enable page cache for optimization. Can you guys please help me!!!!




{"0":"Unable to serialize value.","1":"#0 /home/infiniar/public_html/vendor/magento/framework/App/PageCache/
Kernel.php(153): MagentoFrameworkSerializeSerializerJson->serialize(Array)n#1 /home/infiniar/public_html/vendor/
magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(96): MagentoFrameworkAppPageCacheKernel->process
(Object(MagentoFrameworkAppResponseHttpInterceptor))n#2 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(146): MagentoPageCacheModelControllerResultBuiltinPlugin->afterRenderResult(Object(
MagentoFrameworkViewResultPageInterceptor), Object(MagentoFrameworkViewResultPageInterceptor), Object(
MagentoFrameworkAppResponseHttpInterceptor))n#3 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->
MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))n#4 /home/infiniar/
public_html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26):
MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)n#5 /home/infiniar/
public_html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(
Object(MagentoFrameworkAppResponseHttpInterceptor))n#6 /home/infiniar/public_html/vendor/magento/framework/App
/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()n#7 /home/infiniar/public_html/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))n#8 {main}","url":"/products/
computer-cases.html","script_name":"/index.php"}











share|improve this question
















bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please review this magento.stackexchange.com/questions/146154/…

    – Purushotam Sharma
    Jan 1 '18 at 8:59














2












2








2








I have upgraded website 2.2.1 and facing Unable to serialize value error in particular product categories.



When I disabled the page cache (FPC) from the admin cache management then it works fine but when I enabled the page cache then I got the error.



But I need to enable page cache for optimization. Can you guys please help me!!!!




{"0":"Unable to serialize value.","1":"#0 /home/infiniar/public_html/vendor/magento/framework/App/PageCache/
Kernel.php(153): MagentoFrameworkSerializeSerializerJson->serialize(Array)n#1 /home/infiniar/public_html/vendor/
magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(96): MagentoFrameworkAppPageCacheKernel->process
(Object(MagentoFrameworkAppResponseHttpInterceptor))n#2 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(146): MagentoPageCacheModelControllerResultBuiltinPlugin->afterRenderResult(Object(
MagentoFrameworkViewResultPageInterceptor), Object(MagentoFrameworkViewResultPageInterceptor), Object(
MagentoFrameworkAppResponseHttpInterceptor))n#3 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->
MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))n#4 /home/infiniar/
public_html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26):
MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)n#5 /home/infiniar/
public_html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(
Object(MagentoFrameworkAppResponseHttpInterceptor))n#6 /home/infiniar/public_html/vendor/magento/framework/App
/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()n#7 /home/infiniar/public_html/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))n#8 {main}","url":"/products/
computer-cases.html","script_name":"/index.php"}











share|improve this question
















I have upgraded website 2.2.1 and facing Unable to serialize value error in particular product categories.



When I disabled the page cache (FPC) from the admin cache management then it works fine but when I enabled the page cache then I got the error.



But I need to enable page cache for optimization. Can you guys please help me!!!!




{"0":"Unable to serialize value.","1":"#0 /home/infiniar/public_html/vendor/magento/framework/App/PageCache/
Kernel.php(153): MagentoFrameworkSerializeSerializerJson->serialize(Array)n#1 /home/infiniar/public_html/vendor/
magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(96): MagentoFrameworkAppPageCacheKernel->process
(Object(MagentoFrameworkAppResponseHttpInterceptor))n#2 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(146): MagentoPageCacheModelControllerResultBuiltinPlugin->afterRenderResult(Object(
MagentoFrameworkViewResultPageInterceptor), Object(MagentoFrameworkViewResultPageInterceptor), Object(
MagentoFrameworkAppResponseHttpInterceptor))n#3 /home/infiniar/public_html/vendor/magento/framework/
Interception/Interceptor.php(153): MagentoFrameworkViewResultPageInterceptor->
MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))n#4 /home/infiniar/
public_html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26):
MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)n#5 /home/infiniar/
public_html/vendor/magento/framework/App/Http.php(139): MagentoFrameworkViewResultPageInterceptor->renderResult(
Object(MagentoFrameworkAppResponseHttpInterceptor))n#6 /home/infiniar/public_html/vendor/magento/framework/App
/Bootstrap.php(256): MagentoFrameworkAppHttp->launch()n#7 /home/infiniar/public_html/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))n#8 {main}","url":"/products/
computer-cases.html","script_name":"/index.php"}








error full-page-cache magento-2.2.1 category-listing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 1 '18 at 9:22









Prince Patel

13.4k54977




13.4k54977










asked Jan 1 '18 at 7:12









Sunny RahevarSunny Rahevar

955112




955112





bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Please review this magento.stackexchange.com/questions/146154/…

    – Purushotam Sharma
    Jan 1 '18 at 8:59



















  • Please review this magento.stackexchange.com/questions/146154/…

    – Purushotam Sharma
    Jan 1 '18 at 8:59

















Please review this magento.stackexchange.com/questions/146154/…

– Purushotam Sharma
Jan 1 '18 at 8:59





Please review this magento.stackexchange.com/questions/146154/…

– Purushotam Sharma
Jan 1 '18 at 8:59










1 Answer
1






active

oldest

votes


















0














From magento 2.2, Magento replaces usages of unserialize with json_decode.



http://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html



If you using magento default cache system and your system is properly upgrade to 2.2 then if you will flush your cache storage database/Redis/memcache ,your issue will be resolve.



Either you have using any extensions which using serialize/Unserialize then you need data upgrade to new json format/



http://devdocs.magento.com/guides/v2.2/ext-best-practices/tutorials/serialized-to-json-data-upgrade.html



http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html






share|improve this answer
























  • i have searched memcache but it is not in my database can you tell me in which table the memcache is?

    – Jaimin
    Jan 1 '18 at 10:53











  • Can u please share ur app/etc/env.php,i will tell you the storage

    – Amit Bera
    Jan 1 '18 at 13:32











  • Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

    – Jaimin
    Jan 2 '18 at 11:13











  • excellent... good :)can u please post at here as an answer

    – Amit Bera
    Jan 2 '18 at 12:09











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f207672%2fi-got-the-error-unable-to-serialize-value-after-upgrading-the-magento-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














From magento 2.2, Magento replaces usages of unserialize with json_decode.



http://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html



If you using magento default cache system and your system is properly upgrade to 2.2 then if you will flush your cache storage database/Redis/memcache ,your issue will be resolve.



Either you have using any extensions which using serialize/Unserialize then you need data upgrade to new json format/



http://devdocs.magento.com/guides/v2.2/ext-best-practices/tutorials/serialized-to-json-data-upgrade.html



http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html






share|improve this answer
























  • i have searched memcache but it is not in my database can you tell me in which table the memcache is?

    – Jaimin
    Jan 1 '18 at 10:53











  • Can u please share ur app/etc/env.php,i will tell you the storage

    – Amit Bera
    Jan 1 '18 at 13:32











  • Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

    – Jaimin
    Jan 2 '18 at 11:13











  • excellent... good :)can u please post at here as an answer

    – Amit Bera
    Jan 2 '18 at 12:09
















0














From magento 2.2, Magento replaces usages of unserialize with json_decode.



http://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html



If you using magento default cache system and your system is properly upgrade to 2.2 then if you will flush your cache storage database/Redis/memcache ,your issue will be resolve.



Either you have using any extensions which using serialize/Unserialize then you need data upgrade to new json format/



http://devdocs.magento.com/guides/v2.2/ext-best-practices/tutorials/serialized-to-json-data-upgrade.html



http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html






share|improve this answer
























  • i have searched memcache but it is not in my database can you tell me in which table the memcache is?

    – Jaimin
    Jan 1 '18 at 10:53











  • Can u please share ur app/etc/env.php,i will tell you the storage

    – Amit Bera
    Jan 1 '18 at 13:32











  • Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

    – Jaimin
    Jan 2 '18 at 11:13











  • excellent... good :)can u please post at here as an answer

    – Amit Bera
    Jan 2 '18 at 12:09














0












0








0







From magento 2.2, Magento replaces usages of unserialize with json_decode.



http://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html



If you using magento default cache system and your system is properly upgrade to 2.2 then if you will flush your cache storage database/Redis/memcache ,your issue will be resolve.



Either you have using any extensions which using serialize/Unserialize then you need data upgrade to new json format/



http://devdocs.magento.com/guides/v2.2/ext-best-practices/tutorials/serialized-to-json-data-upgrade.html



http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html






share|improve this answer













From magento 2.2, Magento replaces usages of unserialize with json_decode.



http://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html



If you using magento default cache system and your system is properly upgrade to 2.2 then if you will flush your cache storage database/Redis/memcache ,your issue will be resolve.



Either you have using any extensions which using serialize/Unserialize then you need data upgrade to new json format/



http://devdocs.magento.com/guides/v2.2/ext-best-practices/tutorials/serialized-to-json-data-upgrade.html



http://devdocs.magento.com/guides/v2.2/extension-dev-guide/framework/serializer.html







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 1 '18 at 9:28









Amit BeraAmit Bera

57.6k1474172




57.6k1474172













  • i have searched memcache but it is not in my database can you tell me in which table the memcache is?

    – Jaimin
    Jan 1 '18 at 10:53











  • Can u please share ur app/etc/env.php,i will tell you the storage

    – Amit Bera
    Jan 1 '18 at 13:32











  • Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

    – Jaimin
    Jan 2 '18 at 11:13











  • excellent... good :)can u please post at here as an answer

    – Amit Bera
    Jan 2 '18 at 12:09



















  • i have searched memcache but it is not in my database can you tell me in which table the memcache is?

    – Jaimin
    Jan 1 '18 at 10:53











  • Can u please share ur app/etc/env.php,i will tell you the storage

    – Amit Bera
    Jan 1 '18 at 13:32











  • Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

    – Jaimin
    Jan 2 '18 at 11:13











  • excellent... good :)can u please post at here as an answer

    – Amit Bera
    Jan 2 '18 at 12:09

















i have searched memcache but it is not in my database can you tell me in which table the memcache is?

– Jaimin
Jan 1 '18 at 10:53





i have searched memcache but it is not in my database can you tell me in which table the memcache is?

– Jaimin
Jan 1 '18 at 10:53













Can u please share ur app/etc/env.php,i will tell you the storage

– Amit Bera
Jan 1 '18 at 13:32





Can u please share ur app/etc/env.php,i will tell you the storage

– Amit Bera
Jan 1 '18 at 13:32













Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

– Jaimin
Jan 2 '18 at 11:13





Thanks for your reply, today i found issue in my list.phtml file with substring function so i have solved

– Jaimin
Jan 2 '18 at 11:13













excellent... good :)can u please post at here as an answer

– Amit Bera
Jan 2 '18 at 12:09





excellent... good :)can u please post at here as an answer

– Amit Bera
Jan 2 '18 at 12:09


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f207672%2fi-got-the-error-unable-to-serialize-value-after-upgrading-the-magento-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto