zaddick Posted June 9, 2011 Share Posted June 9, 2011 Hello,I have searched this forum for a day and cannot find an answer. If it has already been answered I apologize. I am new to PrestaShop. Just installed a fresh PrestaShop™ 1.4.2.5 last night.Everything seems to work fine, but, when "View" is clicked to view an individual items product page all I can see is the core modules on the left and the main links at the top, nothing else, and the rest is just a blank page.Here is the link to one of my product pages:http://www.ahlersmarineofhiltonhead.com/shop/en/12-ski.htmlAny help would be greatly appreciated. I don't want to go entering a lot of products if something is messed up that needs attention.Thanks Link to comment Share on other sites More sharing options...
shokinro Posted June 9, 2011 Share Posted June 9, 2011 some error is happen at backend.please set display_error to 'on' in /config/config.inc.php to see what is the error. Link to comment Share on other sites More sharing options...
zaddick Posted June 9, 2011 Author Share Posted June 9, 2011 Here is the error:Warning: require_once(images.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/c/c/b/ccbcrew/html/ahlersmarine/shop/controllers/ProductController.php on line 124Fatal error: require_once() [function.require]: Failed opening required 'images.inc.php' (include_path='.;C:\php5\pear') in /home/content/c/c/b/ccbcrew/html/ahlersmarine/shop/controllers/ProductController.php on line 124 Link to comment Share on other sites More sharing options...
m31dy Posted June 25, 2011 Share Posted June 25, 2011 Hellooo..I Have Error on Diplay Product on PS 1.4.2.5 to..My Website on http://mitrawahanasukses.net/online/product.php?id_product=11Display Error Mesagge is :Fatal error: Uncaught exception 'SmartyException' with message 'template property 'currentTemplate' does not exist.' in /home/mitraw45/public_html/online/tools/smarty/sysplugins/smarty_internal_template.php:954 Stack trace: #0 /home/mitraw45/public_html/online/modules/magiczoomplus/magiczoomplus.php(1139): Smarty_Internal_Template->__get('currentTemplate') #1 /home/mitraw45/public_html/online/tools/smarty/sysplugins/smarty_internal_filter_handler.php(55): MagicZoomPlus::parseTemplateStandard('??<!-- Block cu...', Object(Smarty_Internal_Template)) #2 /home/mitraw45/public_html/online/tools/smarty/Smarty.class.php(337): Smarty_Internal_Filter_Handler::runFilter(Array, '??<!-- Block cu...', Object(Smarty_Internal_Template)) #3 /home/mitraw45/public_html/online/classes/Module.php(1016): Smarty->fetch('output', '??<!-- Block cu...', Object(Smarty_Internal_Template)) #4 /home/mitraw45/public_html/online/modules/blockcurrencies/blockcurrencies.php(68): ModuleCore::display('/home/mitraw45/...', NULL, NULL) #5 /home/mitraw45/publi in /home/mitraw45/public_html/online/tools/smarty/sysplugins/smarty_internal_template.php on line 954Please help me !!! Thanks... Link to comment Share on other sites More sharing options...
bellini13 Posted June 25, 2011 Share Posted June 25, 2011 Here is the error:Warning: require_once(images.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/c/c/b/ccbcrew/html/ahlersmarine/shop/controllers/ProductController.php on line 124Fatal error: require_once() [function.require]: Failed opening required 'images.inc.php' (include_path='.;C:\php5\pear') in /home/content/c/c/b/ccbcrew/html/ahlersmarine/shop/controllers/ProductController.php on line 124 edit the ProductController.php, edit line 124 require_once('images.inc.php'); try to change it to the following require_once('../images.inc.php'); Link to comment Share on other sites More sharing options...
zaddick Posted June 25, 2011 Author Share Posted June 25, 2011 edit the ProductController.php, edit line 124 require_once('images.inc.php'); try to change it to the following require_once('../images.inc.php'); Thanks for the help, but it still has the error, except with "../images.inc.php" instead of "images.inc.php". Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 please confirm 1. if the file "images.inc.php" physically exists. it should under your PrestaShop Store root folder.2. if the file permission has been set correctly, it should be set as 644if above 1 and 2 are all ok, then3. please try to get the same file from original package and replace it. it might be damaged somehow. Link to comment Share on other sites More sharing options...
zaddick Posted June 28, 2011 Author Share Posted June 28, 2011 please confirm 1. if the file "images.inc.php" physically exists. it should under your PrestaShop Store root folder.2. if the file permission has been set correctly, it should be set as 644if above 1 and 2 are all ok, then3. please try to get the same file from original package and replace it. it might be damaged somehow. File Permissions were set correctly and the file was there. I re-uploaded the original file and it still did not help. I went into the ProductController.php file and I altered line 124 from require_once('images.inc.php'); to ('images.inc.php'); and now the product pages come up finally. If this voids the update process in the future like it says, please let me know so I can be included in that. Before I altered any of this tonight I went to the website and noticed the new product pictures were missing, but were not missing before. and they are missing on the product pages too. The link to the picture is listed, but not the picture itself. This may be a separate issue but it may be tied to this whole issue also, I am not sure. I have to study it some more. As of now, the product pages are visible on my shopping site.... Link to comment Share on other sites More sharing options...
zaddick Posted June 28, 2011 Author Share Posted June 28, 2011 please confirm 1. if the file "images.inc.php" physically exists. it should under your PrestaShop Store root folder.2. if the file permission has been set correctly, it should be set as 644if above 1 and 2 are all ok, then3. please try to get the same file from original package and replace it. it might be damaged somehow. File Permissions were set correctly and the file was there. I re-uploaded the original file and it still did not help. I went into the ProductController.php file and I altered line 124 from require_once('images.inc.php'); to ('images.inc.php'); and now the product pages come up finally. If this voids the update process in the future like it says, please let me know so I can be included in that. Before I altered any of this tonight I went to the website and noticed the new product pictures were missing, but were not missing before. and they are missing on the product pages too. The link to the picture is listed, but not the picture itself. This may be a separate issue but it may be tied to this whole issue also, I am not sure. I have to study it some more. As of now, the product pages are visible on my shopping site.... I guess my servers needed time to catch up because the product pictures are now viewable on my site and it seems everything is running smooth. Should I mark this issue as solved or did changing that line of code not solve it totally? Link to comment Share on other sites More sharing options...
shokinro Posted June 28, 2011 Share Posted June 28, 2011 I guess is was cache issue, maybe prestashop cache and maybe your browser cache.I suggest to disable all cache of PrestaShop and clear your browser cache during the period of changes.Preferences - Performances You can mark it as solved it your issue is solved. Link to comment Share on other sites More sharing options...
PurpleEdge Posted July 18, 2011 Share Posted July 18, 2011 I just encountered this error on a local wamp installation of prestashop, I modified line 124 of \controllers\productcontrollers.php to be... require_once(dirname(__FILE__).'/../images.inc.php'); ...and the problem was resolved Link to comment Share on other sites More sharing options...
shokinro Posted July 18, 2011 Share Posted July 18, 2011 this is just another case of the issue. thanks for feedback and sharing the information Link to comment Share on other sites More sharing options...
zaddick Posted July 18, 2011 Author Share Posted July 18, 2011 I just encountered this error on a local wamp installation of prestashop, I modified line 124 of \controllers\productcontrollers.php to be...require_once(dirname(__FILE__).'/../images.inc.php'); ...and the problem was resolved I have found out it does this because "require_once" is for sites that work on their own or one server. I use GoDaddy hosting on a shared server, which is generally spread out over more than one server. with around 200 different unrelated clients, and "require_once" will work if you upgrade your hosting to at least a virtual dedicated server. You will have to modify "require_once" in a few places until you upgrade. One other example is on the back office. When editing a product and you click the price tab it is blank until you set error notification to on and see you have a problem in www.yoursite.com/youradminfolder/tabs/AdminProducts.php It is caused by the same issue and you would have to actually erase the whole error line to get it to work, but, make sure you save copies of all original files so you can revert back to the original code when you upgrade to better hosting.I am on my 2nd PrestaShop shopping cart, and it is the best engine I have ever found. My 2 sites are at the top of every search engine in the exact place I want them to be. The money is starting to come in and I am going to compensate this company well when it does. I suggest everyone that makes money does the same to keep this great product going strong. Thanks Presta Shop -ahlersmarineofhiltonhead.com/shop & sportscardparty.com Link to comment Share on other sites More sharing options...
bellini13 Posted July 18, 2011 Share Posted July 18, 2011 What you describe is a different issue. The issue being described here is that the code is trying to include a file that does not exist in the location specified. Link to comment Share on other sites More sharing options...
zaddick Posted July 18, 2011 Author Share Posted July 18, 2011 What you describe is a different issue. The issue being described here is that the code is trying to include a file that does not exist in the location specified. The file does exist in the location specified in every instance. The problem is with hosting spread out over more than one server.The world is not black and white and this issue falls into a gray area that people generally do not expect and do not know about until they have experienced the issue first hand. Link to comment Share on other sites More sharing options...
bellini13 Posted July 18, 2011 Share Posted July 18, 2011 actually no, the original issue you posted was that the Product Controller was looking for the file "images.inc.php" in the same directory as the controller, which it does not exist, and the file will never be located there. The fix was to have the controller look for the file in the correct directory.The problem you are now referring to is different... Link to comment Share on other sites More sharing options...
zaddick Posted July 23, 2011 Author Share Posted July 23, 2011 actually no, the original issue you posted was that the Product Controller was looking for the file "images.inc.php" in the same directory as the controller, which it does not exist, and the file will never be located there. The fix was to have the controller look for the file in the correct directory.<br/><br/>The problem you are now referring to is different... I upgraded from a shared hosting plan to a dedicated server and returned the files to their original state, putting "require_once" back where it was and everything works fine either way on a dedicated server, but when I put the "require_once" back into the files I have on my shared hosting account (I still have it for other sites of mine) The product pages return to the original error. Link to comment Share on other sites More sharing options...
Recommended Posts