core- Posted August 24, 2012 Share Posted August 24, 2012 (edited) .. neither through the BO nor through the DB. Actually PS_SHOP_ENABLE db field has been changed (1 and 0) as i enable/disable shop in BO, but it doesn't affect my shop. It is always there. Any help appreciated 1.4.7.3 Edited August 24, 2012 by core- (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted August 24, 2012 Share Posted August 24, 2012 The classes/FrontController.php checks for shop enabled/disabled. For example: http://screencast.com/t/88lv0w7TedPr then further down it determines if it should display the maint. page http://screencast.com/t/L16kXqfnM 1 Link to comment Share on other sites More sharing options...
core- Posted August 24, 2012 Author Share Posted August 24, 2012 Hi elpatron, thanks alot for the reply. I have downloaded the whole app and the db, and tried it in my xampp localhost and disabling works..(??) I have contacted my hosting provider and pointed them to the file FrontController.php, and am waiting for their opinion. I can't figure out why it doesn't work on HSP server and works on my localhost (???) Thank you once again for pointing me to the php file. 1 Link to comment Share on other sites More sharing options...
El Patron Posted August 24, 2012 Share Posted August 24, 2012 Get Beyond Compare, then you can compare the working controller against the non-working controller. Beyond compare rocks. Link to comment Share on other sites More sharing options...
core- Posted August 25, 2012 Author Share Posted August 25, 2012 Get Beyond Compare, then you can compare the working controller against the non-working controller. Beyond compare rocks. I compared them with WinMerge. The files are identical.. I uploaded the same (previously downloaded) presta folder and database, to another HSP server, and it doesn't work there either. But the damn thing works (the same downloaded set folder/db) on my xampp localhost (??) A Twilight Zone.. Link to comment Share on other sites More sharing options...
El Patron Posted August 25, 2012 Share Posted August 25, 2012 I compared them with WinMerge. The files are identical.. I uploaded the same (previously downloaded) presta folder and database, to another HSP server, and it doesn't work there either. But the damn thing works (the same downloaded set folder/db) on my xampp localhost (??) A Twilight Zone.. config/config.inc.php executes Configuration::loadConfiguration(); This loads your store mysql configuration maybe put a echo trap in the frontcontroller and/or config.inc.php to see what is actually there... i.e. echo "shop enable switch: ".Configuration::get('PS_SHOP_ENABLE'); to set the core only copy of this, issue Configuration::set('PS_SHOP_ENABLE', 1); Link to comment Share on other sites More sharing options...
core- Posted August 25, 2012 Author Share Posted August 25, 2012 Thanks elpatron, but my php is pretty much rusty (i havent coded in php for years). Where should i put, what exact line? Thanks Link to comment Share on other sites More sharing options...
El Patron Posted August 25, 2012 Share Posted August 25, 2012 Thanks elpatron, but my php is pretty much rusty (i havent coded in php for years). Where should i put, what exact line? Thanks jajajaja...then we know you didn't change anything to break it, like most posts... I'll pm you later with code detail...now siesta 1 Link to comment Share on other sites More sharing options...
core- Posted August 26, 2012 Author Share Posted August 26, 2012 jajajaja...then we know you didn't change anything to break it, like most posts... I'll pm you later with code detail...now siesta Thank you so much for your time and help offer i highly appreciate it. This app and kind people like you keep my job. The other service provider (i uploaded a copy of my prestashop to their server yesterday, and initially disabling didn't work there either) managed to solve the issue! I don't know how yet, as they merely emailed me to try it now, and it works !!! I'll reply to them, to thank and ask what they actually have done (i pointed them to the FrontController file and exact lines you were talking about). I will certainly report it back, as it might be helpful to someone. Thanks a lot once again. Link to comment Share on other sites More sharing options...
El Patron Posted August 26, 2012 Share Posted August 26, 2012 you are very welcome and glad its sorted out... Link to comment Share on other sites More sharing options...
core- Posted August 28, 2012 Author Share Posted August 28, 2012 (edited) Well the reason turned out to be very trivial (as expected). I was pretty surprised when the guy on the phone said 'no, we didn't do anything'. Luckily during the conversation one of them remembered that prestashop has an option to set up a maintenance IP address.. In a milisecond i realized what happened I have set it up long ago and completely forgot about it. When i went home, i found disabling works and thought that the tech support guys did something. The "issue" looks pretty funny now. Edited August 29, 2012 by core- (see edit history) Link to comment Share on other sites More sharing options...
bastione Posted May 10, 2013 Share Posted May 10, 2013 I compared them with WinMerge. The files are identical.. I uploaded the same (previously downloaded) presta folder and database, to another HSP server, and it doesn't work there either. But the damn thing works (the same downloaded set folder/db) on my xampp localhost (??) A Twilight Zone.. from the database of prestashop you have to insert 1 in replace of 0 in a field that i don't reemeber at the moment i am looking for it... Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2013 Share Posted May 10, 2013 from the database of prestashop you have to insert 1 in replace of 0 in a field that i don't reemeber at the moment i am looking for it... you are talking about PS_SHOP_ENABLE Am I right? Link to comment Share on other sites More sharing options...
Recommended Posts