promod Posted October 31, 2013 Share Posted October 31, 2013 Hi guys I'm working on a prestashop friend's installation. So I took it from Github, set setting.php to my localhost but I have the following error : Class 'Cache' not found in /Applications/MAMP/htdocs/prestashop/classes/ObjectModel.php on line 1470 But I don't know how to fix it :/ Can you help me ? Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 31, 2013 Share Posted October 31, 2013 what ps version? Link to comment Share on other sites More sharing options...
promod Posted October 31, 2013 Author Share Posted October 31, 2013 oh sorry 1.5.4.1 Link to comment Share on other sites More sharing options...
bellini13 Posted October 31, 2013 Share Posted October 31, 2013 most of the time this is because the files in the cache folder were deleted Link to comment Share on other sites More sharing options...
promod Posted October 31, 2013 Author Share Posted October 31, 2013 Yes I had deleted it, but when I got it back and I had the same error. So it's maybe a file in cache that its corrupt ... Link to comment Share on other sites More sharing options...
NemoPS Posted November 6, 2013 Share Posted November 6, 2013 Can you check if a file named Cache is actually in the classes folder? It should start with abstract class CacheCore Link to comment Share on other sites More sharing options...
promod Posted November 6, 2013 Author Share Posted November 6, 2013 I fixed the problem with an another copy/past of my friend's installation. But I hope that your answer can help someone else. Thanks guys Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 hello thank you for solution. Do you remember what files you copied? Link to comment Share on other sites More sharing options...
promod Posted November 6, 2013 Author Share Posted November 6, 2013 I copied all files from my friend's PC Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 6, 2013 Share Posted November 6, 2013 I copied all files from my friend's PC Was it downloaded from GitHub or from the Download button on PrestaShop.com Link to comment Share on other sites More sharing options...
bellini13 Posted November 6, 2013 Share Posted November 6, 2013 they had used the old PS v1.4 method of clearing cache, which was to delete everything in the smarty cache folder. in PS v1.5 however, deleting everything in the cache folder is problematic, since it also deletes the required sub folder structure. simply do not delete everything from the cache... Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 6, 2013 Share Posted November 6, 2013 they had used the old PS v1.4 method of clearing cache, which was to delete everything in the smarty cache folder. in PS v1.5 however, deleting everything in the cache folder is problematic, since it also deletes the required sub folder structure. simply do not delete everything from the cache... Which method of clearing the cache are you referring to? I know that if you delete cache manually, you should not clear the index cache and tmp image cache, in smarty I think. Link to comment Share on other sites More sharing options...
bellini13 Posted November 6, 2013 Share Posted November 6, 2013 In PS v1.4, the smarty cache was stored in the tools/smarty/cache and tools/smarty/compile folders. It was common place for people to "clear their cache" by deleting all the files in these 2 folders. In PS v1.5, I am referring to the top level folder named 'cache', which stores a variety of cache files, including smarty. They have been numerous posts in the forum where people are deleting everything under the top level "cache" folder, which is incorrect, and directly causes the "class cache not found" error. 1 Link to comment Share on other sites More sharing options...
promod Posted November 7, 2013 Author Share Posted November 7, 2013 Was it downloaded from GitHub or from the Download button on PrestaShop.com He downloaded from Prestashop.com. Me, from his Github and then I re downloaded all from his pc. Link to comment Share on other sites More sharing options...
jorge.rodriguez.cros Posted November 7, 2013 Share Posted November 7, 2013 I have a similar problem but with the "Shop" class, which I posted in another forum topic: http://www.prestashop.com/forums/topic/287088-class-shop-not-found-when-uploaded-to-hosting/ Do you think it has anything to the with the cache as well? Jorge Link to comment Share on other sites More sharing options...
bellini13 Posted November 7, 2013 Share Posted November 7, 2013 its easy enough to try Link to comment Share on other sites More sharing options...
jorge.rodriguez.cros Posted November 7, 2013 Share Posted November 7, 2013 Yep, thanks... I tried but no luck... so I'm uploading everything again... we'll see. 1 Link to comment Share on other sites More sharing options...
jorge.rodriguez.cros Posted November 7, 2013 Share Posted November 7, 2013 Just in case this helps anyone... uploading all the files to the server again fixed my problem. It must have been some corrupted compiled file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now