{"id":4499,"date":"2018-09-27T22:17:58","date_gmt":"2018-09-27T21:17:58","guid":{"rendered":"https:\/\/www.utilewebsites.nl\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/"},"modified":"2023-04-06T07:04:48","modified_gmt":"2023-04-06T06:04:48","slug":"we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx","status":"publish","type":"wz_knowledgebase","link":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/","title":{"rendered":"We can&#8217;t add this item to your shopping cart right now | cache file_locking magento 2.1.xx"},"content":{"rendered":"<p>When we want to add something to the shopping cart from the product detail page we get this message :<\/p>\n<p>We are currently unable to add this item to your cart. (We can't add this item to your shopping cart right now)<\/p>\n<p>Problem what is in exeption.log is :<\/p>\n<pre> main.CRITICAL: Exception: Notice: Undefined index: file_locking in web\/vendor\/magento\/zendframework1\/library\/Zend\/Cache\/Backend\/File.php on line 992 ....<\/pre>\n<p>The problem is caused in this file :<\/p>\n<p>vendor\/magento\/sendingframework1\/library\/Zend\/Cache\/Backend\/File.php<\/p>\n<p>In a debug session, the file blocked the cache because it contained a variable that was not fully acknowledged. On one server we had never had this problem but on another this came up all of a sudden .<\/p>\n<p>Solution :<\/p>\n<p>Change this<\/p>\n<pre> protected $_options = array(\n        'cache_dir' =&gt; null,\n        'read_control' =&gt; true,\n        'read_control_type' =&gt; 'crc32',\n        'hashed_directory_level' =&gt; 0,\n        'hashed_directory_perm' =&gt; 0700,\n        'file_name_prefix' =&gt; 'zend_cache',\n        'cache_file_perm' =&gt; 0600,\n        'metadatas_array_max_size' =&gt; 100\n    );\n\nto :\n\n protected $_options = array(\n        'cache_dir' =&gt; null,\n        'file_locking' =&gt; false,\n        'read_control' =&gt; true,\n        'read_control_type' =&gt; 'crc32',\n        'hashed_directory_level' =&gt; 0,\n        'hashed_directory_perm' =&gt; 0700,\n        'file_name_prefix' =&gt; 'zend_cache',\n        'cache_file_perm' =&gt; 0600,\n        'metadatas_array_max_size' =&gt; 100\n    );<\/pre>\n<p>After this, all problems were solved and all products could be neatly added to the shopping cart.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we want to add something to the shopping cart from the product detail page we get this message : We are currently unable to add this item to your cart. (We can't add this item to your shopping cart right now) Problem what is in exeption.log is : main.CRITICAL: Exception: Notice: Undefined index: file_locking in web\/vendor\/magento\/zendframework1\/library\/Zend\/Cache\/Backend\/File.php on line 992 .... The problem is caused in this file : vendor\/magento\/sendingframework1\/library\/Zend\/Cache\/Backend\/File.php In a debug session, the file blocked the cache because it contained a variable that was not fully acknowledged. On one server we had never had this problem but on&nbsp;<a href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/\" class=\"read-more\">Continue Reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wzkb_category":[61],"wzkb_tag":[],"class_list":["post-4499","wz_knowledgebase","type-wz_knowledgebase","status-publish","hentry","wzkb_category-magento-2-0-x"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>We can&#039;t add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"We can&#039;t add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites\" \/>\n<meta property=\"og:description\" content=\"When we want to add something to the shopping cart from the product detail page we get this message : We are currently unable to add this item to your cart. (We can&#039;t add this item to your shopping cart right now) Problem what is in exeption.log is : main.CRITICAL: Exception: Notice: Undefined index: file_locking in web\/vendor\/magento\/zendframework1\/library\/Zend\/Cache\/Backend\/File.php on line 992 .... The problem is caused in this file : vendor\/magento\/sendingframework1\/library\/Zend\/Cache\/Backend\/File.php In a debug session, the file blocked the cache because it contained a variable that was not fully acknowledged. On one server we had never had this problem but on&nbsp;Continue Reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/\" \/>\n<meta property=\"og:site_name\" content=\"Utilewebsites\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T06:04:48+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\\\/\",\"name\":\"We can't add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\"},\"datePublished\":\"2018-09-27T21:17:58+00:00\",\"dateModified\":\"2023-04-06T06:04:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"We can&#8217;t add this item to your shopping cart right now | cache file_locking magento 2.1.xx\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"name\":\"Utilewebsites\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\",\"name\":\"Utilewebsites\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"contentUrl\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"width\":3000,\"height\":593,\"caption\":\"Utilewebsites\"},\"image\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"We can't add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/","og_locale":"en_US","og_type":"article","og_title":"We can't add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites","og_description":"When we want to add something to the shopping cart from the product detail page we get this message : We are currently unable to add this item to your cart. (We can't add this item to your shopping cart right now) Problem what is in exeption.log is : main.CRITICAL: Exception: Notice: Undefined index: file_locking in web\/vendor\/magento\/zendframework1\/library\/Zend\/Cache\/Backend\/File.php on line 992 .... The problem is caused in this file : vendor\/magento\/sendingframework1\/library\/Zend\/Cache\/Backend\/File.php In a debug session, the file blocked the cache because it contained a variable that was not fully acknowledged. On one server we had never had this problem but on&nbsp;Continue Reading","og_url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/","og_site_name":"Utilewebsites","article_modified_time":"2023-04-06T06:04:48+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/","url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/","name":"We can't add this item to your shopping cart right now | cache file_locking magento 2.1.xx - Utilewebsites","isPartOf":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#website"},"datePublished":"2018-09-27T21:17:58+00:00","dateModified":"2023-04-06T06:04:48+00:00","breadcrumb":{"@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/we-cant-add-this-item-to-your-shopping-cart-right-now-cache-file_locking-magento-2-1-xx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.utilewebsites.nl\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"We can&#8217;t add this item to your shopping cart right now | cache file_locking magento 2.1.xx"}]},{"@type":"WebSite","@id":"https:\/\/www.utilewebsites.nl\/en\/#website","url":"https:\/\/www.utilewebsites.nl\/en\/","name":"Utilewebsites","description":"","publisher":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.utilewebsites.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.utilewebsites.nl\/en\/#organization","name":"Utilewebsites","url":"https:\/\/www.utilewebsites.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","contentUrl":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","width":3000,"height":593,"caption":"Utilewebsites"},"image":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase"}],"about":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/types\/wz_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/comments?post=4499"}],"version-history":[{"count":1,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4499\/revisions"}],"predecessor-version":[{"id":4501,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4499\/revisions\/4501"}],"wp:attachment":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/media?parent=4499"}],"wp:term":[{"taxonomy":"wzkb_category","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_category?post=4499"},{"taxonomy":"wzkb_tag","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_tag?post=4499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}