3pinespro Posted September 12, 2014 Share Posted September 12, 2014 Version: 1.5.6.1 URL: www.libertygearstore.com I've been adding products and everything has been working just fine. Until now. Suddenly, the featured products no longer show on the home page. Everything else is working just fine. To rectify this I've tried the following: cleared the Smary cache and the Autoload cache reset the friendly URL to off and then back on deleted the .htaccess file and recreated by doing the friendly URL reset again reset the featured products module uninstalled and reinstalled the featured products module called our hosting company (Bluehost) and had them look everything over from their end. They said they could see that Prestashop is calling the module. I setup a new test folder and installed Prestashop there, with the same after-market theme. It seems to work fine, there. I don't want to have to rebuild the entire shop! And, what if this happens again? There must be something in the code that has broken and I need to know where to go to fix it, especially if it happens again. Please help. Link to comment Share on other sites More sharing options...
musicmaster Posted September 12, 2014 Share Posted September 12, 2014 Set in your defines.inc.php file the development mode to true (define('_PS_MODE_DEV_', true) Now there should appear some error message. If you don't see it also check the sourcecode of the page as the error message may appear somewhere where it isn't displayed. As this is specific to the homepage I would suspect the homefeatured module. Are you sure it is switched on and hooked to the home page? Link to comment Share on other sites More sharing options...
3pinespro Posted September 12, 2014 Author Share Posted September 12, 2014 (edited) The module is installed and active. Everything was working just fine until today. You said to set 'true' the defines.inc.php. I did so, but nothing has changed and no error messages. I just found this message in the Advanced Parameters Configuration Information View area: Check your configuration Required parameters: Please fix the following error(s) Notice: Undefined index: files in /home/reelcafe/public_html/libertygearstore/cache/smarty/compile/43/32/e4/4332e48c5151ec5552ed168f0415cf9ed0f46782.file.view.tpl.php on line 260 But what do I do to fix the error? And now I also found this in the same area but further down the page: Missing files (5) modules/blockreinsurance/img/reinsurance-2-1.jpg modules/blockreinsurance/img/reinsurance-3-1.jpg modules/blockreinsurance/img/reinsurance-4-1.jpg modules/homefeatured/homefeatured.css modules/homefeatured/homefeatured.tpl Edited September 12, 2014 by 3pinespro (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted September 13, 2014 Share Posted September 13, 2014 The module is installed and active. Everything was working just fine until today. You said to set 'true' the defines.inc.php. I did so, but nothing has changed and no error messages. I just found this message in the Advanced Parameters Configuration Information View area: Check your configuration Required parameters: Please fix the following error(s) Notice: Undefined index: files in /home/reelcafe/public_html/libertygearstore/cache/smarty/compile/43/32/e4/4332e48c5151ec5552ed168f0415cf9ed0f46782.file.view.tpl.php on line 260 But what do I do to fix the error? And now I also found this in the same area but further down the page:Missing files (5) modules/blockreinsurance/img/reinsurance-2-1.jpg modules/blockreinsurance/img/reinsurance-3-1.jpg modules/blockreinsurance/img/reinsurance-4-1.jpg modules/homefeatured/homefeatured.css modules/homefeatured/homefeatured.tpl Those missing files are the main problem. Specially those files from the homefeatured module. homefeatured.tpl is the template of this module so it is not surprising that without it you have an empty homepage. So I would suggest: - check your file system that the files are indeed missing. - replace the files from a fresh installation - clear the cache of your webshop. Now the shop should work again. - try to find out how those files could go missing Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 (edited) I did as you suggested. The files were inside another folder within that module. I copied them into the place it wanted to find them but the featured products still didn't show. I uninstalled the module, downloaded and installed a fresh copy of the module but still no change. I completely deleted the module and installed a fresh copy. The original was called Featured Products and now this one is called Home Featured Products. Still no change and those files are again missing! I found the file, 'homefeaturedproducts.css' in the css folder and the 'homefeaturedproducts.tpl' in the /views/templates/hook folder. Apparently that's where they're supposed to be but Prestashop is looking for them in the root folder of the module! I still have the undefined index error but I have no idea what to do about that. Edited September 13, 2014 by 3pinespro (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted September 13, 2014 Share Posted September 13, 2014 not sure what you did with the "homefeaturedproducts" etc, but it should normally be called the 'homefeatured' module. I added two zip files: one called modules-homefeatured.zip. It contains the /modules/homefeatured folder with all its contents one called themes-your_theme_folder-modules-homefeatured.zip. This one contains the /themes/<your theme folder>/modules/homefeatured folder and all its contents. Try to unzip and upload these folders + contents to their places. (make sure that the folders have permission 755, the files 644.) Then try again if the module is installed and hooked correctly. Hope this helps, pascalmodules-homefeatured.zip themes-your_theme_folder-modules-homefeatured.zip Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 (edited) I did as you suggested but still no joy. Still showing this error: Required parameters: Please fix the following error(s) Notice: Undefined index: files in /home/reelcafe/public_html/libertygearstore/cache/smarty/compile/43/32/e4/4332e48c5151ec5552ed168f0415cf9ed0f46782.file.view.tpl.php on line 260Optional parameters: OK Edited September 13, 2014 by 3pinespro (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted September 13, 2014 Share Posted September 13, 2014 Did you also empty the cache in the performance page? Otherwise you are just looking at the past. Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 (edited) Yes, I did. I'm afraid I'm going to have to uninstall and reinstall Prestashop and start all over. Is there any way to backup all of the products that are already in the store and then import them back in? I don't relish the thought of all that manual labor again. Edited September 13, 2014 by 3pinespro (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted September 13, 2014 Share Posted September 13, 2014 Have you tried to recompile files? Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 No, how do I do that? Link to comment Share on other sites More sharing options...
dioniz Posted September 13, 2014 Share Posted September 13, 2014 Try to delete .../cache/smarty/compile/43/32/e4/4332e48c5151ec5552ed168f0415cf9ed0f46782.file.view.tpl.php In BO > Advanced params > Performance Set smarty to Recompile templates if the files have been updated Maybe this helps. Link to comment Share on other sites More sharing options...
musicmaster Posted September 13, 2014 Share Posted September 13, 2014 In BO > Advanced params > Performance Set smarty to Recompile templates if the files have been updated Maybe this helps. More important: click in that page on the "empty smarty and autoload cache" button. Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 (edited) The folder /43 doesn't exist! I know I saw it there earlier! Recompile has always been selected. I've cleared the Smarty Cache multiple times. Edited September 13, 2014 by 3pinespro (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted September 13, 2014 Share Posted September 13, 2014 Weird. Have you checked if cache is really cleared, i mean all folders deleted in cache/smarty/cache Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 I just looked and found a lot of folders but not one for featured products. Shouldn't there be one for that too? Link to comment Share on other sites More sharing options...
3pinespro Posted September 13, 2014 Author Share Posted September 13, 2014 I GOT IT!!!!! I deleted the theme and reinstalled it. Everything is back to normal. Thanks for all the great help. I learned a lot through this. Link to comment Share on other sites More sharing options...
dioniz Posted September 13, 2014 Share Posted September 13, 2014 Great You can mark this thread solved then. Link to comment Share on other sites More sharing options...
PascalVG Posted September 14, 2014 Share Posted September 14, 2014 Good to hear it's back to normal. :-) Please add [sOLVED] to the begin of the original title (See my footer on how to do this) Happy selling! pascal. Link to comment Share on other sites More sharing options...
Recommended Posts