Jump to content

fordtman

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Location
    Brisbane, Australia
  • Activity
    User/Merchant

fordtman's Achievements

Newbie

Newbie (1/14)

1

Reputation

3

Community Answers

  1. I think I have figured this out. I have been looking too deeply into this and was expecting to find something devious when it appears that it is quite obvious. I started with a clean database and added products and checked how they were named and it appears that "id_image" is incremented for each added image (1,2,3....) and the name is then dissected to determine which directory the image is stored in, e.g. image 123.jpg is stored in directory p->1->2->3, image 11.jpg is stored in p->1->1 etc. If after adding 3 products with images you then add another image to one of these products this new image is given the next sequential number and it has nothing to do with the product ID (which I would have thought would be the more sensible way to store images, but some people may want the same image for different products). Anyway I shall close this query and mark it as solved. Thank you all for your support.
  2. Thanks for replying, I guess what I really wanted to know was where is id_image set up. I have been trying to determine what criteria Prestashop uses when it creates the image name. It looks as though the RewriteRules in .htaccess convert the filename into the full path name. I am using Prestashop 1.6.1.4.
  3. Does anyone have any information about the product images folder setup (img->p->......)? I cannot find any information about the criteria Prestashop uses when it creates the image sub-folders. I know that when an image is added to a product, Prestashop changes its name and places it and the other associated images it generates in a specific folder e.g. image "130.jpg" is in folder img->p->1->3->0, However I would like to know what the sub-folders 1, 2, 3 refer to, they do not seem to be related to categories or other product attributes. I have seen some products added to the img->p->1 level and others added to other levels. What are the factors used to create the sub-folders of img->p and how are they applied to a product image. Hope this is clear. Thank you in advance for any help.
  4. My apologies for not responding earlier, have been taking some time off. I am using Prestashop 1.6.1.4 and at the time installed Xampp 7 (which installs PHP 7), I solved the problem by reverting to Xampp 5.5.33 (PHP 5.5.33). PHP 7 does not appear to support Prestashop 1.6.1.4 at this time as I found a number of errors which do not occur when using PHP 5.5.33. I read somewhere that there are a number of "enhancements" in PHP 7 which now takes a stricter line on coding practices such as using "continue" statements in an "if" block. Somebody may be able to clarify this for us.
  5. If you are installing the latest version of Xampp (7.0.4) to create a localhost development environment and also use the free minicslider.php module be aware that you may get a fatal error similar to the following. PHP Fatal error: 'continue' not in the 'loop' or 'switch' context in D:\Xampp\htdocs\shop\minicslider\minicslider.php on line 269 Line 269 is a continue statement that is not in a loop or continue block, replace it with an exit statement. It appears that the 'continue' statement outside of a 'loop' or 'switch' block was accepted in earlier versions of PHP but not in PHP 7. the code in Minicslider.php around line 269 reads: if (!class_exists($module->name)) { if (!file_exists(_PS_MODULE_DIR_.$module->name.'/'.$module->name,'.php')) continue; ***************line 269 ERROR HERE****************** require_once(_PS_MODULE_DIR_.$module->name.'/'.$module_name,'.php'); }
  6. El Patron, thanks for the reply. You are correct in that I am setting up a new shop, I am converting my existing shop (based on Joomla!) to run on PrestaShop to take advantage of some of the PrestaShop features I need. I have written software to convert the Joomla .csv data into PrestaShop .csv data and it is working correctly so I can recreate new copies of PrestaShop quite easily. I will try your suggestion of disabling instead of running cleaner, there is very little extra work involved. Thanks for your help.
  7. Thomas_Dev, did you have any luck finding an answer to this post, I have the same problem.
  8. I have installed Version 1.6.0.9 on a local machine and everything is working correctly. I ran the "PrestaShop Cleaner" to Delete Catalogue, Delete Orders and Customers, Check & Fix and Clean & Optimize, however when I run the PrestaShop frontend the default shop still shows up. Can I remove ALL default shop data by using the backend or do I have to truncate the database directly using PhpMyAdmin. I am now trying to get a clean installation with no default data. I have trawled through the forums and have found a few topics that relate to this issue but they do not provide a specific solution. If there is a topic that provides such a solution could someone point me to it. Any help would be appreciated.
  9. Please look at the postings for "Modules Missing after Installing 1.6.0.9" in the PrestaShop->English Forum->Installing PrestaShop forum it might help. http://www.prestashop.com/forums/topic/381277-modules-missing-after-installing-1609/
  10. Now that I have turned on error reporting I get the following error information : Fatal error: Uncaught --> Smarty: Unable to load template file 'controllers/modules/modal_not_trusted_country.tpl' <-- thrown in D:\Xampp\htdocs\Prestashop\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 129 [PrestaShop] Fatal error in module smarty_internal_templatebase: Uncaught --> Smarty: Unable to load template file 'controllers/modules/modal_not_trusted_country.tpl' <-- thrown Having just started looking into PrestaShop to see if it has any advantages over Joomla! the error message doesn't mean much to me at present, but I will persist. When I installed PrestaShop an admin directory called G&CAdmin was created, there is also a PrestShop/admin directory that appears to contain the same directory structure. (Question: Does anybody know when/how G&CAdmin is created (in addition to PrestaShop/admin)?). Anyway moving right along, the module 'modal_not_trusted_country.tpl' does not appear in the G&CAdmin/themes/defaults/template/controllers/modules directory as it does in the admin/.... version therefore I copied the file modal_not_trusted_country.tpl from admin/........controllers/modules into the G&CAdmin/......./controllers/modules directory and lo and behold the error disappeared. Perhaps the PrestaShop team should fix this problem with the missing 'modal_not_trusted_country.tpl' file ???? Is there any documentation on the web that provides an internal walkthrough showing how PrestaShop works as there is for Joomla! I have purchased the only two books that appear to be available for PrestaShop (PrestaShop for Developers and PrestaShop v1.6 Under the Hood....) but they leave a lot to be desired.
  11. Thank you for your reply. I guess my post was not clear enough. The error reported is "HTTP 500 Internal Server Error", the page is not blank and the message on the page says "The website cannot display the page". When I click on Module->Modules in the backend the URL it generates is "http://localhost/prestashop/g&cadmin/index.php?controller=AdminModules&token=67fa71df342d255c08b558f02540cfc7" which results in the 500 error. An edited full description of the message which appears on the page is: The website cannot display the page HTTP 500 Most likely causes: The website is under maintenance. The website has a programming error. What you can try: Refresh the page.Refresh the page. Go back to the previous page.Go back to the previous page. More information It appears to be looking for the directory containing the modules which in this instance is directly under the PrestaShop top directory i.e. PrestaShop->Modules. I will try your suggestion of turning on debugging and do a crash course in PHP programming so I can debug PrestaShop which I don't believe I should have to do.
  12. I have just installed PrestaShop Version 1.6.0.9 on a local host (Xampp) and evwerything seems to run correctly except when I try to display modules in the backend (modules->modules). I get an "HTTP 500 Internal Server Error" (The website cannot display the page). Was there something missing in the install? Modules->Modules & Themes Catalogue works correctly. I found this URL posted by Paulito on another post showing the list of modules I should see http://screencast.com/t/5qq8l3SsnHp5. However this does not happen. Could someone tell me what is missing.
  13. I have just installed PrestaShop Version 1.6.0.9 on a local host (Xampp) and evwerything seems to run correctly except when I try to display modules in the backend (modules->modules). I get an "HTTP 500 Internal Server Error" (The website cannot display the page). Was there something missing in the install? Modules->Modules & Themes Catalogue works correctly. I found this URL posted by Paulito on another post showing the list of modules I should see http://screencast.com/t/5qq8l3SsnHp5. However this does not happen. Could someone tell me what is missing.
×
×
  • Create New...