Category page redirect loop
samovar replied to voliveira's topic in Core developersMaybe my problem is similar to yours. (Using latest git 1.5.2 version) If I have a top-level category which includes at least one product, the category and product display and operate normally. If I have a top-level category which does not include a product; instead, it includes a subcategory; and, under this subcategory includes a product, I get a redirect loop when I try to display the top-level category. Message shown in Chrome is: The webpage at http://shop_url/category-page?selected_filters= has resulted in too many redirects. It seems that whenever a category--at any level--does not directly include a product, the redirect loop problem is triggered. Can you confirm that this is what you are seeing; or, if not, provide more details.
wrong themes/ folder permission
samovar posted a topic in Addons, modules and themes developersThe PrestaShop Installer program instructs to set the folder write permissions as I have show below (these are all copied directly from the Installer screens); however, it does not say to set write permission on the folder themes/ or the folder prestashop/. If you do not set write permission on themes/; then, the Theme Installer program cannot copy a new theme-folder into the themes/ folder. The installer says to "Set write permissions on folders and subfolders/recursively", which I do using the command "chown -R", where -R means recursively. [Note: Instead of doing "chmod 755", I'm doing "chown -R www-data:www-data directory_name". This has the same effect. This command is giving ownership of directory_name/ to the Apache web server. So, Apache ends up having write permission on directory_name because it has ownership of directory_name.] What this does in the case of the command: sudo chown -R www-data:www-data themes/prestashop/lang/ is to set write permission on the last directory and everything below it. So; the directory lang/, and every file and folder below it has write permission set. However, the two directories in front of /lang do not have write permission set. So, themes/ and prestashop/ do not have write permission set. Now; here is the really damaging problem: after I run my chown commands to set the permissions the way I think I have been told to set them, and I then press the refresh button on the browser, the Installer Program changes the web page to tell me I've got the permsissons set correctly; it does this by changing the directories from the something-is-wrong red color to the everything-is-ok green color. I am allowed by the installer to move on to the next step of the install with the permissions set incorrectly; but, I think they are correct, because I have feedback telling me everything is OK. COPPIED FROM INSTALL PROGRAM: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set write permissions on files and folders: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /config /tools/smarty/compile /tools/smarty/cache /tools/smarty_v2/compile /tools/smarty_v2/cache /sitemap.xml /log COPPIED FROM INSTALL PROGRAM: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set write permissions on folders and subfolders/recursively: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /img /mails /modules /themes/prestashop/lang /themes/prestashop/cache /translations /upload /download COMMANDS I USE TO CREATE THE WRITE PERMISSIONS: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sudo chown www-data:www-data config/ sudo chown www-data:www-data tools/smarty/compile/ sudo chown www-data:www-data tools/smarty/cache/ sudo chown www-data:www-data tools/smarty_v2/compile/ sudo chown www-data:www-data tools/smarty_v2/cache/ sudo chown www-data:www-data sitemap.xml sudo chown www-data:www-data log/ sudo chown -R www-data:www-data img/ sudo chown -R www-data:www-data mails/ sudo chown -R www-data:www-data modules/ sudo chown -R www-data:www-data themes/prestashop/lang/ sudo chown -R www-data:www-data themes/prestashop/cache/ sudo chown -R www-data:www-data translations/ sudo chown -R www-data:www-data upload/ sudo chown -R www-data:www-data download/