ycruzb Posted December 12, 2013 Share Posted December 12, 2013 Hi guys, I'm trying to add some custom fields to categories in the back office, I did it one week ago but now I can't do it again, I know that it would be done overriding the AdminCategoriesController.php according to the good practices but for time reasons. I did it over the core one time and now I would want to do the same thing adding more fields but the problem is that AdminCategoriesController.php never changes its behavior, if I change the code putting php errors the controller loads the page with the same content, If I remove all the code (the archive with 0kb) nothing change only if I remove the archive or change its name then an obvious error is shown. Please can you help me in some way ? Regards Link to comment Share on other sites More sharing options...
NemoPS Posted December 13, 2013 Share Posted December 13, 2013 Hi! Have you erased the class_index.php file you can find inside the cache/ folder? Link to comment Share on other sites More sharing options...
vekia Posted December 13, 2013 Share Posted December 13, 2013 hello sounds strande mainly because there is no override, so changes should be interpreted automatically (if you changing original file). your host use some caching software? (not cache in your prestashop, but on server side) Link to comment Share on other sites More sharing options...
ycruzb Posted December 13, 2013 Author Share Posted December 13, 2013 Hi Nemo1, yes I did it but still the same situation (prestashop 1.5.6.1), I will try again.Hi Vekia, you are right is very weird, I use a 1and1 hosting and I have done many prestashop sites without problems like this.Do you have any other ideas ??? thanks very much for both guys, you are greats.Regards Link to comment Share on other sites More sharing options...
ycruzb Posted December 13, 2013 Author Share Posted December 13, 2013 More information, I have restored the involved archives (controllers/admin/AdminCategoriesController.php and classes/Category.php) and mmm.... the field added one week ago is still shown, unbelievable !!! are this files cached or what ? I have checked all about the cache and I have it disabled. PLEASE SOME HELP !!!!!! Link to comment Share on other sites More sharing options...
vekia Posted December 13, 2013 Share Posted December 13, 2013 i bet that you've got some kind of hosting cache not related to cache in prestashop. are you able to verify it? 1 Link to comment Share on other sites More sharing options...
ycruzb Posted December 13, 2013 Author Share Posted December 13, 2013 Do you think that ? Yes is reasonable because I have done all things without success, I will try to check the server configurations considering your suggestion. Thanks vekia you are very active in this forum !!! Link to comment Share on other sites More sharing options...
ycruzb Posted December 19, 2013 Author Share Posted December 19, 2013 Nothing yet friends !!! I don't find any solution my back office pages are still cached. Link to comment Share on other sites More sharing options...
vekia Posted December 19, 2013 Share Posted December 19, 2013 and what about hosting cache? asked your hoster about that? Link to comment Share on other sites More sharing options...
ycruzb Posted December 23, 2013 Author Share Posted December 23, 2013 Hi Vekia, I have developed some prestashop sites and I have hosted all of them in the same server (1and1) without these problems, so is very strange !!! could exist a solution that I can solve this programmatically for example typing the metas in the header to force non-cache ?? could be ?many thanks Link to comment Share on other sites More sharing options...
vekia Posted December 24, 2013 Share Posted December 24, 2013 you just said in your first message here, that you wanted to create override, but you did it in original core file. have you checked overrides directory? maybe you've got overrides for these files? i never asked about that, so maybe this is the problem>? Link to comment Share on other sites More sharing options...
ycruzb Posted December 24, 2013 Author Share Posted December 24, 2013 Hi Vekia again !!! it is a good answer but I have checked this point, I appreciate very much your cooperation. Regards Link to comment Share on other sites More sharing options...
ycruzb Posted December 24, 2013 Author Share Posted December 24, 2013 I need to say that I have the same project locally in a xampp server and all works perfect but in the hosting is not working. Somebody could have another idea ?? all this make sense with the comments of Vekia but other prestashop sites in the same hosting are working fine. thanks to all Link to comment Share on other sites More sharing options...
Recommended Posts