Jump to content

alanmp

Members
  • Posts

    12
  • Joined

  • Last visited

alanmp's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Okay... now I'm not able to recreate this. In either Firefox, Chrome or IE. Very bizarre. Looks like this was a caching issue of some type?
  2. elektrojo I see that you were able to resolve this issue of the cart being empty when checking out. I'm having the same problem. Can you please tell me what you did to fix it? Thanks! Alan
  3. Hey everybody, I know that I posted the detailed steps that solved my image problem last week... but when I got back to the development tonight I'd get a 'Page not found' error when clicking the Login link. I had that problem a few 1.5.2 installations ago and had fixed it then! And now when I saw it again... well, if I had a pen nearby I probably would have stabbed myself in the face. I've always felt that my .htaccess file has been a lurking menace/cause somewhere for me in all of this, I downloaded ExamDiff. It's a small, free program which examines two files and visibly shows you the differences. I still have a copy of my old .htaccess file where images did not work, but the Login did. I used ExamDiff to compare that .htaccess file with the one I'm using now where images do work, but Login does not. Comparing the two files, I was able to add/remove lines of code to get images working, as well as the Login. Perhaps the .htaccess file is the issue for some of you, as it was for me. I use GoDaddy, so YMMV with this file, but I've posted it below. Replace the "www.yourwebsiteaddress.com" text with your web site address. To use: Make a backup copy of your existing .htaccess file. I cannot stress that enough. Make a backup copy. It should be in the home folder (root) of your site. Edit the .htaccess file, replacing all of the text with the text below. If it does not work for you, or wrecks things even worse than they were, you can replace the edited file with the copy you backed up in step one. You did make a backup, right? If you decide not to use this file you may want to compare the contents with your .htaccess. Maybe you'll be able to make the necessary changes like I did. #Fix Rewrite Options -Multiviews # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.yourwebsiteaddress.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again <IfModule pagespeed_module> ModPagespeed on ModPagespeedEnableFilters extend_cache </IfModule>
  4. Everyone: I have been having this problem of category and product images not working for all iterations of PS 1.5. I had done 1-Click-Upgrades, manual upgrades, fresh installations, added "small", "medium", etc. image sizes in addition to the "_default" images sizes, set permissions to 777 across my entire site... (I was desperate, what can I say?!) but nothing ever worked. Tonight I thought that I would blow the entire site away [again] and start from scratch [again] and do a very methodical test. And my testing worked! I can see category images and product images now! I did not have to create "small", "medium", etc. I kept a precise log of my steps so that I could report exactly what I did: Deleted all web site files and my SQL database. Created a new, empty database and re-uploaded the Prestashop 1.5.2 files to my hosting provider. Recursively set all folder permissions to be 755. Recursively set the /img/ folder (and subfolder) permissions to be 777. Installed Prestashop. Deleted /install/ folder, renamed /admin/ folder. Logged into the BO. Preferences > SEO & URLs > Enabled Friendly URLs. This created my .htaccess file. Preferences > Images > Enabled "Use PNG only if the base image is in PNG format". Clicked "Move Images" button. Clicked "Regenerate Thumbnails" button. Note that the "Use the legacy image filesystem" option was already set to No by default so I did not change that. Also note that I have not yet uploaded any images into the system. Catalog > Categories and created the first category, including the category image. This is the first image that was uploaded. I tested and the category image appeared in the FO. I then created a new product and uploaded four images for it. The product appears in the FO, as well as all of the images. I hope that this is some help to you. Luckily I had the luxury of being able to delete the entire site, as I had not yet loaded any products. Thanks to Benjamin Utterback, ChompCreative, punyaixan and others for their suggestions that kept me trying different things (and of course to the entire PS team for such a great product!). Alan
  5. Benjamin, Using Chrome, Inspecting the Element > Console I get: Failed to load resource: the server responded with a status of 404 (Not Found) The path where it's looking for the image is www.domain.com/c/3-category_default/cables.jpg I found this thread in which someone mentioned turning off Friendly URLs. When I turn them off in Preferences > SEO & URLs the images display correctly. When I re-enable Friendly URLs the images are missing again. Reminder that this was a fresh install of 1.5.2. Thanks again for your help, Alan
  6. @Benjamin Utterback, I tried a fresh install of PrestaShop 1.5.2.0 but unfortunately I still have the same problem. I blew away the SQL database and deleted all of the PS-related files. I created a new SQL database, downloaded 1.5.2.0.zip, uncompressed and applied chmod 755 to all files/folders prior to installation. Installation was smooth with no errors. I then renamed the /admin/ folder and deleted the /install/ folder. I created a new category and uploaded its image. It still fails in the same way: I can see the image under the category's properties in the back end, but the image shows as missing on the front end. Is it possible that somehow the friendly url/mod_rewrite isn't functioning correctly and that could be the cause? When I log into the admin side I've got a green checkmark next to URL rewriting (and shop enabled, index rebuilt after update and .htaccess file up-to-date). However, when I check in Preferences > SEO & URLs there is a warning under Set up URLs: URL rewriting (mod_rewrite) is not active on your server or it is not possible to check your server configuration. If you want to use Friendly URLs you must activate this mod. I've manually checked the .htaccess file in case something was overwritten. But ReWritebase / is still there. I also tried ChompCreative's suggestion again about adding similar image sizes under Preferences > Images, e.g. small, medium, large, etc. with the same values as the corresponding small_default, medium_default... Are there any other suggestions that anyone might be able to offer? I appreciate the assistance that everyone has been extending. Regards, Alan
  7. I am unfortunately having this exact same problem - both for category images and product images. This was a fresh install of 1.5.1 (with no products or categories added). I then upgraded to 1.5.2 and today I am trying to add categories and products. The default images which installed with Prestashop display, as does the company logo that I uploaded. But category and product images do not. While in the BO I can preview the images in the Category and Product previews, i.e. if I edit the category or the product the images that I uploaded are visible in the web interface. However, on the front end the images show as if they are missing or have bad links. Since the images appear through the BO the images are obviously there and Prestashop is "aware" of them. I already have RewriteBase / in my .htacces file. I also tried ChompCreative's suggestion of adding the image sizes again under Preferences > Images so that I essentially have duplicates, i.e. small and small_default with the same settings. I regenerated thumbnails but to no avail, the images are still not displaying on the front end. My default browser is Firefox and on a whim I tried IE but the images aren't displaying there, either. I've set the permissions to 755 on the /img/ folder, including its contents. The application seems to be looking for the category image in /c/3-category_default/cables.jpg. But if I browse to the /img/ folder there is no 3-category_default folder. However, there is a /img/3-cateogry_default.jpg which is, in fact, the image itself. Any thoughts or suggestions would be appreciated!
  8. I'm curious about this as well. I've made the appropriate block CMS changes so that my 'About us', 'Terms and conditions' links appear there, but I cannot find a way to remove the links to Specials, New products or Top sellers. I'm also curious as to how to rearrange the Information, Contact Us and My Account columns in the footer.
  9. I've resolved this issue thanks to the power of Google search... after Google search... after Google search... The issue was that a /tmp/ folder that GoDaddy uses to temporarily store the images did not exist. I'll try to explain this in an easy-to-understand way so that it can help anyone in the future. This might apply to other hosting providers, but here are the steps that I needed to take when I was not able to upload images to GoDaddy: Connect to the site using SSH. My web site files are hosted in /html/ and I'm unable to move up beyond this folder in my FTP program. Therefore I had to connect with SSH. When connecting with SSH I'm one folder above /html/ If I run a "ls" command in SSH to list the available directories I only saw three: data, html and scc. The tmp folder where the images are stored before being processed into Prestashop is missing. Excute the command: mkdir tmp I don't know whether this was necessary but I changed the permissions on the directory: cmod 755 tmp I then logged back into my Prestashop admin panel and was able to successfully upload images. If you are unfamiliar with any of the steps listed here you could contact your hosting provider to create the "tmp" folder for you. - Alan
  10. Has anyone been able to resolve this issue with product images not displaying on GoDaddy? I'm seeing the same symptoms as richc originally posted: I upload an image and PS reports that it's successful. But the image doesn't show up on the site, or in the image directory. Any suggestions would be appreciated.
  11. I've just installed Prestashop 1.4.6.2 on a Godaddy shared deluxe linux hosting account. I've searched the forums and found similar requests but no resolution. I have done this: Preferences -> SEO & URL -> Enabled "Friendly URL" checkbox. Tools-> Generators -> Generate htaccess. But now when I click any of the links on the home page the home page just reloads. As part of my testing I've currently got chmod 777 on all files & folders. But that isn't making a difference. If I turn off "Friendly URL" then the site works correctly, however with non-SEO friendly URLs. I have attached my php5.ini file and my .htaccess file (renamed prior to zipping so I can easily work with the file on my Windows workstation) for review. Any help that you can offer is appreciated; please let me know if I can provide any further information to assist in finding a resolution. Thanks in advance, Alan php5.zip htaccess.zip
  12. I've just installed Prestashop 1.4.6.2 on a GoDaddy Shared Deluxe Linux Hosting account. The installation went smoothly with no problems. The images for the sample products and manufacturers that came as part of the installation all display correctly. However, when I create a new manufacturer or a new product (and upload associated JPEG images) the images for the new objects that I've created do not display. Relevant information: I've set chmod 777 on all folders and files When creating a new product/manufacturer and choosing to upload an image the PS backend tells me that the creation was successful. There are no errors. Images for the other manufacturers are stored in /img/tmp/ When I check this location after my "successful" manufacturer creation there are no new images in that location It would be very appreciated if you could offer some help. I can post my php5.ini or .htaccess files if that would be helpful. Thank you in advance, Alan
×
×
  • Create New...