aakarshan29 Posted January 20, 2012 Share Posted January 20, 2012 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 More sharing options...
shacker Posted January 20, 2012 Share Posted January 20, 2012 hi. in config/config.inc.php file, enable display errors to check the error message. You can check our free tutorial for debug errors http://catalogo-onlinersi.com.ar/en/tutorials/305-prestamagazine-n3-debug-errors.html Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 Hi Shacker. Thanks for the speedy response. Actually I am not into coding stuff and couldn't find out the error. I would be glad if you can look of the errors for me. I tried hard but couldnt find any errors on any of the page on my site. Regards. Link to comment Share on other sites More sharing options...
El Patron Posted January 20, 2012 Share Posted January 20, 2012 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 More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 Hi Elpatron. I do have a 404.tpl file in my theme folder not the .php one. And turnung on errors isnt showing me anything. Link to comment Share on other sites More sharing options...
shacker Posted January 20, 2012 Share Posted January 20, 2012 site url? Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 http://gizmore.in the site is currently in development though. Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 did you find any errors ? Link to comment Share on other sites More sharing options...
shacker Posted January 20, 2012 Share Posted January 20, 2012 pue here a wrong url. Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 Type any url like http://www.gizmore.in/gmwgmg it would show a blank page. Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 20, 2012 Author Share Posted January 20, 2012 Earlier it used to redirect to a prestashop error page which said that is invalid but now it shows a blank page. Neither it reports any page in page not found module. Link to comment Share on other sites More sharing options...
shacker Posted January 22, 2012 Share Posted January 22, 2012 have you rewrited the htaccess? Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 23, 2012 Author Share Posted January 23, 2012 Yes. Re-wrote .htaccess a ton times but nothing happened. Even if the url is typed in CAPS, it shows the same blank screen. Link to comment Share on other sites More sharing options...
El Patron Posted January 23, 2012 Share Posted January 23, 2012 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 More sharing options...
El Patron Posted January 23, 2012 Share Posted January 23, 2012 Please also make sure in module that Pages not found v1.0 by PrestaShop is enabled and under positions that it is hooked to 'top of pages' Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 23, 2012 Author Share Posted January 23, 2012 Its already hooked on top of pages and the 404.tpl solution didnt work as well. I am totally messed up now. :( Link to comment Share on other sites More sharing options...
El Patron Posted January 23, 2012 Share Posted January 23, 2012 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 1 Link to comment Share on other sites More sharing options...
aakarshan29 Posted January 23, 2012 Author Share Posted January 23, 2012 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 More sharing options...
El Patron Posted January 23, 2012 Share Posted January 23, 2012 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 More sharing options...
aakarshan29 Posted January 23, 2012 Author Share Posted January 23, 2012 Yup. Uploaded new .tpl and .php too. No luck. Have just opened a bug report with prestashop. Hope they get my issue and solve it asap. Link to comment Share on other sites More sharing options...
Recommended Posts