3cacahuetes Posted August 11, 2014 Share Posted August 11, 2014 (edited) Hello, Since a couple of days, after the update to PS 1.6.0.9, the file /cache/class_index.php is not created anymore. Actually, in the /cache folder, there is only one folder : ./smarty Everything works, but I guess this is bad for performances. Is there something to enable to have it back? Thank you. Edited August 14, 2014 by El Patron (see edit history) 2 Link to comment Share on other sites More sharing options...
Pete78 Posted August 12, 2014 Share Posted August 12, 2014 In my case it was a bug in PrestaShopAutoLoad.class I replaced the one in 1.6.0.9 with the latest from github and class_index.php was recreated again.. https://github.com/PrestaShop/PrestaShop/blob/8288a6fffa0eb7a42b280298f798ff9292dd7be3/classes/PrestaShopAutoload.php 9 Link to comment Share on other sites More sharing options...
El Patron Posted August 12, 2014 Share Posted August 12, 2014 In my case it was a bug in PrestaShopAutoLoad.class I replaced the one in 1.6.0.9 with the latest from github and class_index.php was recreated again.. https://github.com/PrestaShop/PrestaShop/blob/8288a6fffa0eb7a42b280298f798ff9292dd7be3/classes/PrestaShopAutoload.php I applied this fix and it is working fine now on 1.6.0.9. Thanks for sharing. 1 Link to comment Share on other sites More sharing options...
3cacahuetes Posted August 12, 2014 Author Share Posted August 12, 2014 In my case it was a bug in PrestaShopAutoLoad.class I replaced the one in 1.6.0.9 with the latest from github and class_index.php was recreated again.. https://github.com/PrestaShop/PrestaShop/blob/8288a6fffa0eb7a42b280298f798ff9292dd7be3/classes/PrestaShopAutoload.php Thank you ! The function private function normalizeDirectory($directory) has been added between the two versions. Link to comment Share on other sites More sharing options...
TempMesh Posted August 14, 2014 Share Posted August 14, 2014 Woaaa! How fast is that fix I found that my shop was so slow since I switched to 1.6.0.9. Thanks for the fix, now it's very fast. Link to comment Share on other sites More sharing options...
IronBackbone Posted August 23, 2014 Share Posted August 23, 2014 Thankyou very much Link to comment Share on other sites More sharing options...
Mister Denial Posted August 28, 2014 Share Posted August 28, 2014 Same issue here, I just checked, and indeed, on August 8th (the day I upgraded from 0.8 to 0.9), there was a class_index2.php created, but class_index.php - gone! Link to comment Share on other sites More sharing options...
secondhand-obchod.sk Posted August 31, 2014 Share Posted August 31, 2014 Hi, my site is on 1.6.0.9 with default standard theme, but I find it extemely slow. I tried to change to another provider, but there it was even more slow (CPANEL) and I had the problem on a shared server with low memory settings. I would be gratefull for advice how to get my shop running at least a bit faster. secondhand-obchod.sk thx Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2014 Share Posted August 31, 2014 Hi, my site is on 1.6.0.9 with default standard theme, but I find it extemely slow. I tried to change to another provider, but there it was even more slow (CPANEL) and I had the problem on a shared server with low memory settings. I would be gratefull for advice how to get my shop running at least a bit faster. secondhand-obchod.sk thx best to open new topic for best community review Link to comment Share on other sites More sharing options...
Mister Denial Posted September 2, 2014 Share Posted September 2, 2014 UPDATE: I thought that the github fix did solve the problem, but actually no, if I clean the cache, the index file is still gone. I have to manually upload it. Anyone else still have this issue? 1 Link to comment Share on other sites More sharing options...
vmulot Posted September 15, 2014 Share Posted September 15, 2014 yep i have this issue too :/ Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2014 Share Posted September 15, 2014 If you are unable to apply this fix or have issue with fix. Please open a forge report here: http://forge.prestashop.com/ then post the URL of that forge report back here for others to follow/comment/vote up. Thanks Link to comment Share on other sites More sharing options...
fosg2000 Posted September 26, 2014 Share Posted September 26, 2014 sorry dumb question where i have to upload the PrestaShopAutoload.php thanks Link to comment Share on other sites More sharing options...
Pete78 Posted September 26, 2014 Share Posted September 26, 2014 Hi, it is in the classes folder best regards Link to comment Share on other sites More sharing options...
Perla2018 Posted September 27, 2014 Share Posted September 27, 2014 I have made the change but it always delete index php in cache and compile what is the solution? vers. 1.6.0.9 Link to comment Share on other sites More sharing options...
bellini13 Posted September 27, 2014 Share Posted September 27, 2014 you could try to change the permission on the index php file, by removing the write permission then the web server should not be able to delete it Link to comment Share on other sites More sharing options...
Perla2018 Posted September 27, 2014 Share Posted September 27, 2014 Thanks Bellini, how can I? change the permissions from 0644 to? Link to comment Share on other sites More sharing options...
Perla2018 Posted September 27, 2014 Share Posted September 27, 2014 permissions 444 does not take... Link to comment Share on other sites More sharing options...
bellini13 Posted September 27, 2014 Share Posted September 27, 2014 644 would be read/write (6) for the owner of the file, read(4) for the group and read(4) for everyone else 444 would be read (4) for everyone Perhaps you do not have permission to change the permissions Link to comment Share on other sites More sharing options...
Grindelf Posted September 27, 2014 Share Posted September 27, 2014 I made the changes by github but the file /cache/class_index.php wasnt created. I copied the lines of PrestaShopAutoload.php and replaced of my original PrestaShopAutoload.php. I have only the file index.php on cache folder. Link to comment Share on other sites More sharing options...
Perla2018 Posted September 28, 2014 Share Posted September 28, 2014 I put 666 permission and I see that at the moment it has not been deleted from the server, but if I delete the cache from bo also clears index.php Link to comment Share on other sites More sharing options...
Perla2018 Posted September 30, 2014 Share Posted September 30, 2014 Even with 444 permits index.php was canceled after a cvs import. I can not fix, it could be the server? The cache that are allowed. I have 771. Link to comment Share on other sites More sharing options...
El Patron Posted November 4, 2014 Share Posted November 4, 2014 I was getting link rewrite issue in 1.6.0.8 so I have replaced the code fix from github for 1.6.0.9 now I also have same issue product loading very slow. Save and save and stay keep loading.Product page has became slow. This is mentioned as solved is this the solution. Pls any one help please open new post...this is class cache issue, and would have little to no affect...i.e. your issue does not seem related. Link to comment Share on other sites More sharing options...
ksv Posted November 20, 2014 Share Posted November 20, 2014 Hello, I have an modules which hide product base on Geoip location. I apply this patch and i disable my modules. Could developer help me to tell me which code need to change? I compare and found: My original file: Line 150: $filename = _PS_ROOT_DIR_.PrestaShopAutoload::INDEX_FILE;Line 174L $root_dir = $host_mode ? _PS_ROOT_DIR_ : $this->root_dir; and don't have: private function normalizeDirectory($directory) { $last = $directory[strlen($directory) - 1]; if (in_array($last, array('/', '\\'))) { $directory[strlen($directory) - 1] = DIRECTORY_SEPARATOR; return $directory; } $directory .= DIRECTORY_SEPARATOR; return $directory; }} Link to comment Share on other sites More sharing options...
chris0241 Posted January 11, 2015 Share Posted January 11, 2015 I'm not overly techy and don't understand Github. could some kind soul explain how to apply this fix in detail, I have a 1.6.0.9 install running painfully slow on the back and front end. TIA, Chris Link to comment Share on other sites More sharing options...
parsifal Posted January 11, 2015 Share Posted January 11, 2015 (edited) I'm not overly techy and don't understand Github. could some kind soul explain how to apply this fix in detail, I have a 1.6.0.9 install running painfully slow on the back and front end. TIA, Chris Hi Chris. 1. Download the ZIP file I'm attaching in this post 2. Extract it to your PC. You should get a file named "PrestaShopAutoload.php" 3. Connect to your 1.6.0.9 installation/hosting space with an FTP/SFTP/SCP client like WinSCP, FileZilla, or whatever else suits you 4. Navigate to the remote directory /YOUR-PRESTASHOP-ROOT-FOLDER/classes 5. Inside this directory, you should find a file named "class_index.php". Delete it 6. In the same directory, you should also find a file named "PrestaShopAutoload.php". Replace this with the file you got in step no.2 7. Close your FTP/SFTP/SCP client 8. You 're good to go PrestaShopAutoload.zip Edited January 11, 2015 by parsifal (see edit history) Link to comment Share on other sites More sharing options...
chris0241 Posted January 11, 2015 Share Posted January 11, 2015 Thanks so much for taking the time to explain Parsifal. I navigated to /classes and there's no class_index.php file in there? I've saved the PrestaShopAutoload.php over the last version... Can you notice a difference? http://PROtastic.co.uk - it's on a dedicated server with little traffic at the moment. Chris Link to comment Share on other sites More sharing options...
fransjaeger Posted January 21, 2015 Share Posted January 21, 2015 Thanks for sharing - worked fine for me in 1.6.0.9 1 Link to comment Share on other sites More sharing options...
HaCos Posted January 31, 2015 Share Posted January 31, 2015 Really, has anyone seen a speed change because of adding the normalizeDirectory function? Link to comment Share on other sites More sharing options...
fransjaeger Posted January 31, 2015 Share Posted January 31, 2015 i havent measured difference before and after. Link to comment Share on other sites More sharing options...
Recommended Posts