Jump to content

Some images do not show after fresh install PS 1.2.4


Guest danbrouwers

Recommended Posts

I installed PrestaShop 1.2.4 and some of the images do not show
and 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 found
Your 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

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 -MultiViews

AddType x-mapp-php5 .php


#php_flag register_globals Off


#php_flag allow_url_include Off
#php_flag register_globals Off



RewriteEngine on
RewriteBase /


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

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.4

I am wondering if the .HTACCESS should be re-wrote some how
I also enabled Friendly URLs in Admin and regenerated a .htaccess file
but 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

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 URLs
and 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 Brouwers
PS........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

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

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 activation
RewriteEngine on

TO:
# URL rewriting module activation
RewriteEngine on
AddType 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

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 activation
RewriteEngine on
AddType x-mapp-php5 .php

# URL rewriting rules
RewriteRule ^([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 errors
ErrorDocument 404 /404.php
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...