Guest Posted October 3, 2009 Share Posted October 3, 2009 I installed PrestaShop 1.2.4 and some of the images do not showand the only links that work in the left hand column is TAGS,such as when I click on the DELIVER link I get the following message:"Error 404 - Not foundYour browser can't find the document corresponding to the URL you typed in"and the url shows: "http://www.t-shirtsupply.com/content/1-delivery".I have already re-downloaded and unzipped the PrestaShop download and FTP the files to my server twice.And I verified that all images are uploaded.I have racked my brain for two days now............anybody got any ideas please?-----------------------------------------------------------------------------------------------EDITED: I am now leaning toward maybe some PERMISSIONS maybe wrong?Anyone willing to check and correct my permissions for me please?You may as well check the: "/check_info.php5" if you would please.Thanks, Dan Brouwers Link to comment Share on other sites More sharing options...
TropischBruin Posted October 3, 2009 Share Posted October 3, 2009 If you would have used the search first you wold have found similar topics.After upgrading (actualy before) you should disable Friendly urls, clear you server cache, enable Friendly urls en rebuild your .htaccess. Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 I do search for my solutions each time I have a problem, but after being up for 2 days straight trying to solve this my mind is not as sharp as it should be...........................................................and most of the post pertaining to .HTACCESS seem to be in French.............I don't speak or read French......................................................................sorry.This is not an upgrade, this is a fresh install of PrestaShop 1.2.4 with a new database.I am not sure how to clear the cache in my server, would someone explain or help me do this please?I am not sure what my .HTACESS file should be rebuilt to, so I will list it below to view for accuracy.Thanks for your help! Dan Brouwers Options -MultiViewsAddType x-mapp-php5 .php #php_flag register_globals Off #php_flag allow_url_include Off #php_flag register_globals OffRewriteEngine onRewriteBase /RewriteRule ^articles/{0,1}$ articles.php [QSA,L]RewriteRule ^articles/entry/([^/.]+)/{0,1}$ articles.php?action=viewarticle&articleUri;=$1 [QSA,L]RewriteRule ^articles/entry/{0,1}$ articles.php?action=viewarticle&articleUri;=$1 [QSA,L]RewriteRule ^articles/category/([^/.]+)/{0,1}$ articles.php?action=viewcategory&articleCatUri;=$1 [QSA,L]etc, etc............. Link to comment Share on other sites More sharing options...
TropischBruin Posted October 3, 2009 Share Posted October 3, 2009 What happens if you disable Friendly urls?It is not only your 1-deliver that is not working.Maybe your server does not support rewrite? Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 When I disable URLs, then I can see all of the images and all of the links work great.Rewrite worked on my earlier version of PrestaShop, I've only had problems after installing 1.2.4I am wondering if the .HTACCESS should be re-wrote some howI also enabled Friendly URLs in Admin and regenerated a .htaccess filebut then I got a blank screen in Admin and on my website.The permissions for .htaccess is currently at 644.Dan Brouwers Link to comment Share on other sites More sharing options...
TropischBruin Posted October 3, 2009 Share Posted October 3, 2009 Can you install PS on a sub-domain and a clean db?Just to see if there is a relation between the 1.2.4 version and your server. Link to comment Share on other sites More sharing options...
jhnstcks Posted October 3, 2009 Share Posted October 3, 2009 Are you using the same htaccess file as your previous version of prestashop? If this is so then you need to regenerate a new htaccess using the admin tool located at admin>tools>generators. Using this will overwrite your current htaccess file. Link to comment Share on other sites More sharing options...
TropischBruin Posted October 3, 2009 Share Posted October 3, 2009 Are you using the same htaccess file as your previous version of prestashop? It is a fresh install ;-) Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 TropischBruin,Yes I can install PS on Sub Doamin with clean DB and I can try that tommorrow.I'm pretty tired right now and need to get some sleep.And maybe I should address jhnstcks question first.jhnstcks,Yes it is the same .htaccess file that I've used on earlier versions of PS.When I went into Admin/Prefernces and clicked on Yes for Friendly URLsand then clicked on "generate a .htaccess file" all I got was a blank screen in Admin and on my Website.The page never came back until I FTP old .htaccess and then I had same problems as before,so I just clicked no for Friendly URLs so I could view Admin and Website with all images.At this point, I am ready to give access to my FTP and Admin to anyone willing to fix my mistake for me!Thanks to you both, Dan BrouwersPS........I'll stay up for a few more minutes to await an answer or else I will check with you tommorrow. Link to comment Share on other sites More sharing options...
jhnstcks Posted October 3, 2009 Share Posted October 3, 2009 Are you using the same htaccess file as your previous version of prestashop? It is a fresh install ;-) Fresh installs dont come with a htaccess file. Link to comment Share on other sites More sharing options...
jhnstcks Posted October 3, 2009 Share Posted October 3, 2009 Dan have you tried uploading a blank htaccess file and then using the generator in admin?Here is my htaccess from version 1.2.4 try uploading this and see what happens. htaccess.zip Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 You are correct.......freah installs do not come with .htaccess.I had FTP the old .htaccess after the Admin/Preferences "generate a .htaccess" did not work.-----------------------Yes I even tried a blank .htaccess!-------------------------Ok....will try yours and be right back! Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 Ok, I FTP your .htaccess and my website disappeared.------------------------------------------------------EDITED:OK, I think problem is solved.....I will take a few minutes to verify.I added a line to your .htaccess and now it works...I think!FROM:# URL rewriting module activationRewriteEngine onTO:# URL rewriting module activationRewriteEngine onAddType x-mapp-php5 .php------------------------------------------------------UPDATE:Everything seems to working fine Thanks for the help and good night, Dan Brouwers Link to comment Share on other sites More sharing options...
TropischBruin Posted October 3, 2009 Share Posted October 3, 2009 Good work jhnstcks!Come to think of it, you need a empty .htaccess before generating a new one.Glad that it is solved. Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2009 Share Posted October 3, 2009 Thanks to the great help from jhnstcks and TropishBruin, I really appreciate your patience with with!Important to note: This solution worked with php5 on 1and1.com shared servers.To anyone else who may have similar problems after fresh install of PS 1.2.4 with clean DataBase:1. Be sure to follow the directions in the post for install of PS 1.2.4......very seldom should there be problems.2. .htaccess is not included with fresh install of PS 1.2.4.....so create a blank .htaccess and FTP to the root of your shop. Be sure that you name it ".htaccess" and not ".htaccess.txt"3. You will need to click on "Yes" in the Admin/Preferences for "Friendly URLs".4. Then click on "generate a .htaccess file" just below "Friendly URLs".5. If you still experience problems with links not working and/or some images not showing, you may need to FTP the .htaccess file that I've listed below, it does have an extra line of code that I entered and it works great for me! The extra line of code is: "AddType x-mapp-php5 .php"I hope this becomes useful for someone else!If I missed something or I'm in error of these instructions, I welcome corrections.I'm one of those people that tend to learn from mistakes, maybe others can learn from my mistakes also!Dan Brouwers # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine onAddType x-mapp-php5 .php# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now