web4infinity Posted July 5, 2012 Share Posted July 5, 2012 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 More sharing options...
Mike Kranzler Posted July 5, 2012 Share Posted July 5, 2012 Hi web4, Can you please take your site out of maintenance mode so that we can try to take a look at this for you? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 5, 2012 Author Share Posted July 5, 2012 Sorry, yes. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 5, 2012 Share Posted July 5, 2012 You appear to be missing the 404.php file on your site. Can you please check via FTP in the root of your site to see if you have it there? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 5, 2012 Author Share Posted July 5, 2012 Yes it is there. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 5, 2012 Share Posted July 5, 2012 What version of PrestaShop are you using? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 5, 2012 Author Share Posted July 5, 2012 This is 1.4.8.2 and this one www.magicaccessories.co.uk which is ready, and has the same problem, is 1.4.7.0 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 5, 2012 Share Posted July 5, 2012 Please try replacing the 404.php file on both sites with the attached version and let me know if that works any better for you. 404.php -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 5, 2012 Author Share Posted July 5, 2012 I did. No change. http://www.girlyhandbags.co.uk/dgghjgfj Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 5, 2012 Share Posted July 5, 2012 Can you also please check your theme's directory for a 404.tpl file? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 5, 2012 Author Share Posted July 5, 2012 In my opinion it's very strange that there is no warning or error, it just doesn't redirect to 404 It's not the first Prestashop that I install. Others are doing good (e.g. http://www.okzam.co.uk/fdgsdfg which is 1.4.4.1). The theme has an 404.tpl file. Link to comment Share on other sites More sharing options...
web4infinity Posted July 6, 2012 Author Share Posted July 6, 2012 The file is there. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 Hi web4, Do you have Friendly URLs enabled on your site? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 6, 2012 Author Share Posted July 6, 2012 yes, they are. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 In your Back Office under Tools > Generators, can you please regenerate your htaccess file and let me know if that works any better for you? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 6, 2012 Author Share Posted July 6, 2012 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. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 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 More sharing options...
web4infinity Posted July 6, 2012 Author Share Posted July 6, 2012 I've deactivated friendly URLs but no change: http://www.girlyhandbags.co.uk/fgdfg Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 Can you please PM me with a copy of your htaccess file? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 6, 2012 Author Share Posted July 6, 2012 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 More sharing options...
Mike Kranzler Posted July 6, 2012 Share Posted July 6, 2012 Can you please check with your hosting provider to see if they have AllowOverride set on Apache? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 10, 2012 Author Share Posted July 10, 2012 They are using Litespeed not Apache Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 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 More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 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? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 11, 2012 Share Posted July 11, 2012 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 More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 I can't because I have many websites hosted with them. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 11, 2012 Share Posted July 11, 2012 I can't because I have many websites hosted with them. Are the other sites PrestaShop sites? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 Yes I have 2 Prestashops there, plus several other websites. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 11, 2012 Share Posted July 11, 2012 Yes I have 2 Prestashops there, plus several other websites. And the other PS site doesn't have these issues? -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 It has the same issue but I didn't notice it until a couple of days ago when I tested for it. Unless there isn't the case of 404 it doesn't happen. Maybe there is something with the redirect from htaccess and the way Litespeed handles this. Link to comment Share on other sites More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 Because the file is there and if I access it directly is working: http://www.girlyhandbags.co.uk/404.php Link to comment Share on other sites More sharing options...
Artizzz Posted July 11, 2012 Share Posted July 11, 2012 I have the same issue and my hosting company have Litespeed too. There are some solutions? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 11, 2012 Share Posted July 11, 2012 Hi web4 and Artizz, I will check with our development team to see if they have any suggestions on how to better implement PrestaShop on Litespeed, or if there are maybe even improvements that can be made on our end to simplify the process going forward. -Mike Link to comment Share on other sites More sharing options...
web4infinity Posted July 11, 2012 Author Share Posted July 11, 2012 Thanks Mike Link to comment Share on other sites More sharing options...
chafox Posted August 6, 2012 Share Posted August 6, 2012 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 More sharing options...
sathish_ahs Posted August 17, 2012 Share Posted August 17, 2012 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 More sharing options...
qemboad Posted November 8, 2012 Share Posted November 8, 2012 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 More sharing options...
qemboad Posted November 8, 2012 Share Posted November 8, 2012 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 More sharing options...
stevell Posted December 21, 2012 Share Posted December 21, 2012 (edited) 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 December 22, 2012 by stevell (see edit history) Link to comment Share on other sites More sharing options...
Afvallen Posted December 22, 2012 Share Posted December 22, 2012 (edited) I had the same problem before and it suddenly got fixed out of nowhere . Edited December 22, 2012 by Afvallen (see edit history) Link to comment Share on other sites More sharing options...
tomi Posted January 18, 2013 Share Posted January 18, 2013 Hi, any chance to solution with Litespeed? Link to comment Share on other sites More sharing options...
Alexgaw Posted January 29, 2013 Share Posted January 29, 2013 I have same issue. Me also on Litespeed server and PS 1.4.9. Please post a solution. Thanks Link to comment Share on other sites More sharing options...
drives Posted January 16, 2014 Share Posted January 16, 2014 (edited) Hi, I have the same problem and I am hosted at Plesk servers. I have prestashop 1.5.6.1 I tried all of what said above and still look for a FIX www.inforexpert.pt Edited January 16, 2014 by drives (see edit history) 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