Jump to content

Recommended Posts

Hi.

 

I installed Prestashop and it's working fine except that instead of displaying the 404 page when an address is incorrect it displays a white page.

 

I tried everything, including deleting and reinstalling. It's still the same.

 

I also changed this in the config.inc but it doesn't show any error:

@ini_set('display_errors', 'off');

define('_PS_DEBUG_SQL_', false);

 

How can I know what's the problem?

 

The link is here: http://www.girlyhandbags.co.uk/

Just type any asjdfam after / and you'll see what I'm talking about.

 

Anyone knows about this?

Link to comment
Share on other sites

it didn't

 

Before I had friendly url enabled it acted the same. It displayed 404 page not found but it didn't redirect to 404 page.

 

If you like I can disable friendly url to see what it does.

 

Go ahead and do that. The yoursite.com/page-not-found link appears to work just fine, but incorrect URLS do not appear to be redirecting properly.

 

-Mike

Link to comment
Share on other sites

Mike I can paste it here. It's a small code and there is nothing sensitive.

 

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE

# http://www.prestashop.com - http://www.prestashop.com/forums

 

 

<IfModule mod_rewrite.c>

# URL rewriting module activation

RewriteEngine on

 

# URL rewriting rules

</IfModule>

 

# Catch 404 errors

ErrorDocument 404 /404.php

Link to comment
Share on other sites

They are using Litespeed not Apache

 

A Litespeed server may have some configuration issues you won't find on Apache, as PrestaShop is best suited for an Apache server. I would recommend that you contact your hosting provider to see what they can suggest, as its possible that the Litespeed server handles the htaccess differently than Apache.

 

-Mike

Link to comment
Share on other sites

I spoke with the hosting company and they said without an error message they don't know what's not working.

Do you know what difference between the Apache and Litespeed might affect Prestashop in this manner?

 

Unfortunately, I'm not very familiar with Litespeed servers, as PrestaShop is best suited for Apache servers. You may want to consider switching to a hosting provider better-suited to PrestaShop, such as BlueHost.

 

-Mike

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

I have exactly the same issue but I have not Litespeed: I have an Apache server and I have tested with my hosting provider and the redirection works wel. I have tried everything but nothing solves this problem (regenerate htaccess ...).

 

www. direct-vet.be

 

Charlotte

Link to comment
Share on other sites

  • 2 weeks later...

Hi Mike,

 

I also have the same issue as I could be able to install all the version of Prestashop under linux(LAMP) panels but I could not be able to install any of the packages on either WAMP or IIS Enabled Windows Server. It just throws 404 Page not found as we don't have .httaccess file in IIS its difficult to find out the exact problem.

 

Regards,

Sathish

Link to comment
Share on other sites

  • 2 months later...

Hi Mike,

 

Same error occurred here also after my hosting company switched over to Litespeed.

 

I'm trying to solve it by changing the settings in CP panel for error document 404 to redirect to /page-not-found instead of 404.php

Let you know as soon as server updated from config file

 

ErrorDocument 404 /page-not-found

 

Because I can as some one else in this thread reach "/pagenotfound" when friendly-url is on

 

The strange thing is that the table "pagenotfound" is populated with pages even if the page is not redirected correctly, seems to me like the error occurs when the 404.php tries to redirect to /page-not-found

 

In -htaccess it says

RewriteRule ^page-not-found$ /404.php [QSA,L]

 

But after trying and disabled friendly-url, emptied all cache and compile, it was still the same problem, with the difference that I could view the page "/404.php" that did not work when I had friendly-url on, because then "/page-not-found" worked

With firebug I get this

HTTP/1.1 404 Not Found

Content-Encoding: gzip

Vary: Accept-Encoding

Date: Thu, 08 Nov 2012 12:01:10 GMT

Server: LiteSpeed

Connection: close

X-Powered-By: PHP/5.2.17

Content-Type: text/html; charset=utf-8

Cache-Control: no-cache

Location: http://domain.yyy/page-not-found

Content-Length: 20

/BoA

Link to comment
Share on other sites

Hi,

 

More testing..

 

If I disable in .htaccess below row

 

# Catch 404 errors

# ErrorDocument 404 /404.php

 

I get the Litespeed webserver to show the default 404 page, but it is not showing the page that is defined in Litespeed config

 

ErrorDocument 404 /page-not-found

 

404 Not Found

 

The resource requested could not be found on this server!

Powered By LiteSpeed Web Server

LiteSpeed Technologies is not responsible for administration and contents of this web site!

 

 

It seems to be a problem with customized error pages, see this forum

 

http://www.litespeedtech.com/support/forum/showthread.php?t=5455

 

/BoA

Link to comment
Share on other sites

  • 1 month later...

Is there a solution for the 404 pages not showing yet?

Version 1.5.2.0

Friendly URL: on

Automatically redirect to Canonical URL: on

All the files discussed in this thread appear to be where they should be.

 

I am having this problem on both localhost and the live site. I have received the folowing message from my hosting provider.

 

# ATTENTION: there is a redirect loop which caused huge server load.

# On 404 it would redirect to 404-error which would cause 404.

# to fix this this rule is inserted:

RewriteEngine on

RewriteRule ^404\-error$ - [R=404,L,NC]

This brings up the host providers 404 error page.

 

When I type a wrong url on the same site running on localhost it redirects to "http://localhost/prestashop/404-error" but firefox shows the following error. This appears to back up what the host provider is saying.

 

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

 

Any suggestions?

 

Update

It has started working. i got the following error while opening http://mysite/404-error. Then when I refreshed the page it started working correctly. I have not changed any files. I hope this helps someone to find the issue.

 

w).load(function(){time_start=new Date();});$(window).unload(function(){var time_end=new Date();var pagetime=new Object;pagetime.type="pagetime";pagetime.id_connections="605319";pagetime.id_page="6661";pagetime.time_start="2012-12-22 12:39:51";pagetime.token="a56271e71a362478e810a5b7802d546a99a276a7";pagetime.time=time_end-time_start;$.post("http://www.mysite.co.nz/index.php?controller=statistics",pagetime);});/* ]]> */

 

Cheers

Steve

Edited by stevell (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 11 months later...

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