[email protected] Posted February 20, 2013 Share Posted February 20, 2013 [PrestaShop] Fatal error in module CacheMemcache: Invalid argument supplied for foreach() any help please? Link to comment Share on other sites More sharing options...
PascalVG Posted February 20, 2013 Share Posted February 20, 2013 (edited) I see more people struggling with caching. White screens, sudden errors. See if just turning off is a terrible loss for your speed. Otherwise, see if another caching type works. Didn't see any clear solution to those errors yet :-( Keep us updated! Edited February 21, 2013 by PascalVG (see edit history) Link to comment Share on other sites More sharing options...
FME_Modules Posted February 21, 2013 Share Posted February 21, 2013 Do share solution if solved. Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2013 Share Posted February 21, 2013 so, anyone can help in this case? Link to comment Share on other sites More sharing options...
[email protected] Posted February 22, 2013 Author Share Posted February 22, 2013 ya its clears the error when cache is off, i need to fix the error please .. Link to comment Share on other sites More sharing options...
[email protected] Posted February 22, 2013 Author Share Posted February 22, 2013 i have another one Check: 'To the order of' and address must be configured in order to use this module correctly. Link to comment Share on other sites More sharing options...
PascalVG Posted February 22, 2013 Share Posted February 22, 2013 Hi Thames, latest message you give is a "Don't forget" message. You need to fill in those fields in the configure screen of the "Check" module. When you filled in those values, click the close icon on the right of the orange notice box to get rid of it... Link to comment Share on other sites More sharing options...
PascalVG Posted February 22, 2013 Share Posted February 22, 2013 About the memcache error. Is there anything more said when the error occurs? (Line number, variable that is not accepted? sounds like this (or similar) http://forge.prestashop.com/browse/PSCFV-1347 Code snippet from /classes/cache/CacheMemcache.php: ... foreach ($all_slabs as $server => $slabs) { if (is_array($slabs)) { foreach (array_keys($slabs) as $slab_id) // <--Maybe this one is sometimes undefined?? { if ($slab_id) // maybe add this?? { $dump = $this->memcache->getExtendedStats('cachedump', (int)$slab_id); if ($dump) { foreach ($dump as $entries) { if ($entries) $this->keys = array_merge($this->keys, array_keys($entries)); } } } // closing bracket.... } } } ... Just an hopeful idea. Didn't see any check on that one. (But it can be that IF $slabs exists, $slab_id MUST exist for sure, so test is not explicitly needed?? Don't know the code behind it, so this Question is for the original author to answer...) My 2 cents, pascal Link to comment Share on other sites More sharing options...
Recommended Posts