Jump to content

Blank page on typing invalid address


Recommended Posts

Hi. I have been using prestashop for over 3 months from now. Everything was working perfect but from last few days, I am getting a blank page when I type an invalid url in my front-end. Earlier, it used to redirect to a PS error page on my site. I am currently on PS 1.4.6.1

Link to comment
Share on other sites

Back Office > Preferences > SEO & URLs

check that you have 404.php setup

if so..then

in your themes/(your theme folder)/ensure you have 404.php file

if so ..then

you will need to do what shacker stated...turn on errors so you know why the 404.php file is giving you a blank screen.

Link to comment
Share on other sites

Hopefully this will give some indication of the problem.

 

find your 404.tpl in your active theme

 

add {debug}:

-----

*  International Registered Trademark & Property of PrestaShop SA
*}
{debug}
<div class="pagenotfound">

 

and upload to your active them folder

 

from the back office-->preferences-->performance set force to 'Yes' to force template re-compiles

 

from front office enter an invalid url

 

You 'should' have a pop up with containing the smarty variables.

Link to comment
Share on other sites

Its already hooked on top of pages and the 404.tpl solution didnt work as well. I am totally messed up now. :( :(

well the bright side you are only really messed up if you have links and no pages...don't let little probelms get you down..

 

here is a working rewrite for 404 in your htaccess.

RewriteRule ^en/page-not-found$ /404.php?isolang=en [QSA,L]
RewriteRule ^es/pagina-no-encuentra$ /404.php?isolang=es [QSA,L]
# Catch 404 errors
ErrorDocument 404 /404.php

 

as you can see I have english/spanish...which tells me if I add a language I'd need to re-generate the .htaccess...

 

also...get new copies of 404.php and .tpl and re-upload them, check your permissions as well...755

 

the {debug} should have poped up your variables, this sort of tells us that you are not executing 404.tpl

  • Like 1
Link to comment
Share on other sites

I had the same rewrite in my .htaccess except that Spanish one. all of my perms are set to 755 and there wasn't any pop-up when I implemented {debug}. These kinds of error breaks me up. I think we are still not able to find the nerve of the issue. If the problem was only with 404, the uppercase or mixed case URLs should have worked but they are giving the same error. And when I open mysite/404.php , same thing happens.

 

Thanks a lot for helping me though. You are really a nice chap.

Link to comment
Share on other sites

I had the same rewrite in my .htaccess except that Spanish one. all of my perms are set to 755 and there wasn't any pop-up when I implemented {debug}. These kinds of error breaks me up. I think we are still not able to find the nerve of the issue. If the problem was only with 404, the uppercase or mixed case URLs should have worked but they are giving the same error. And when I open mysite/404.php , same thing happens.

 

Thanks a lot for helping me though. You are really a nice chap.

 

you are very welcome...did you upload new 404 .tpl/.php's? And if you have tried everything, open a bug report, the ps team is very helpful. If you do put a link to this thread in your bug report.

Link to comment
Share on other sites

×
×
  • Create New...