Jump to content

Blank page again and again


Recommended Posts

When you get blank page, you must reload that page to see content.

How to check error logs i have dedicated server without cpanel.

 

refreshing page as you know is not solution. :)

 

as for error logs, search using google or other search engine for your type of server software to determine where error logs are located.

Link to comment
Share on other sites

Refreshing page is anoying! I must fix that.

 

What can be problem? Anyone else ?

 

please do not ask for 'anyone else' how annoying, you need to find error in your logs.  Please follow advice given and not look for answer that best suits you.

 

if you want to run a dedicated or any other hosting with a website, having basic skills to find error logs is required. 

 

the point of the post is to help you find issue of blank page, there is no miracle answers when you can not find error log which could most likely resolve your issue.

  • Like 1
Link to comment
Share on other sites

Okay sure.

 

So I need to ask my hosting to give me error logs. But they will say to me everything looks okay.  This happening only on prestashop. So something is on presta...

 

without error then we can guess until the cows come come.

 

you should empower yourself to become fluent in basic aspects of webmastering, it's best to find out 'how to' do something so as not to rely on others for this level of issue.

 

this will serve you well in the future.

Link to comment
Share on other sites

Hello again. This is error log. Lets see what is problem.

[Thu Aug 07 14:36:52 2014] [error] [client 194.247.204.15] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/26-torbe-za-laptopove?p=2
[Thu Aug 07 14:37:02 2014] [error] [client 66.249.78.249] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281
[Thu Aug 07 14:37:10 2014] [error] [client 188.2.76.214] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281, referer: http://www.google.rs/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBoQFjAA&url=http%3A%2F%2Fwww.computers.rs%2Frucni%2F1901-dymo-rhino-5200-case-tvrdi-transportni-kofer.html&ei=N3jjU-O3EpCN4gTB_IHwCA&usg=AFQjCNEaCsl8I7QNqSB6r3OlCGJCqAKGsw&sig2=JV3hk9v2ihnGsB7H4Numvg&bvm=bv.72676100,d.bGE&cad=rja
[Thu Aug 07 14:37:31 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/50-racunarske-komponente
[Thu Aug 07 14:37:32 2014] [error] [client 66.249.78.254] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281
[Thu Aug 07 14:37:34 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/58-graficke-kartice
[Thu Aug 07 14:37:41 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/60-nvidia-geforce
[Thu Aug 07 14:38:02 2014] [error] [client 66.249.78.254] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281
[Thu Aug 07 14:38:02 2014] [error] [client 37.58.100.235] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281
[Thu Aug 07 14:38:42 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/60-nvidia-geforce?p=2
[Thu Aug 07 14:39:17 2014] [error] [client 94.228.239.193] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/78-napajanja
[Thu Aug 07 14:39:21 2014] [error] [client 178.223.185.154] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/167-kucni-aparati
[Thu Aug 07 14:39:29 2014] [error] [client 178.223.185.154] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/50-racunarske-komponente
[Thu Aug 07 14:39:32 2014] [error] [client 178.223.185.154] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/19-brand-racunari
[Thu Aug 07 14:39:42 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/60-nvidia-geforce?&p=3
[Thu Aug 07 14:40:01 2014] [error] [client 178.223.90.9] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/60-nvidia-geforce?&p=4
[Thu Aug 07 14:40:39 2014] [error] [client 94.228.239.193] PHP Warning:  asort() expects parameter 1 to be array, null given in /var/www/html/modules/livefilter/livefilter.php on line 1237, referer: http://www.computers.rs/78-napajanja?p=2
[Thu Aug 07 14:41:00 2014] [error] [client 66.249.78.249] PHP Fatal error:  Function name must be a string in /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 281

Link to comment
Share on other sites

that is a bit dated, 1.5.6.2 would be better release for you as it may very well fix your issue.

 

when I search I see 'similar' issues but that does not mean that it resolves this issue, for example:

 

http://forge.prestashop.com/browse/PSCFV-10408

http://www.prestashop.com/forums/topic/205130-blank-page-when-cache-enabled/

 

there may be others.

 

I am happy you found how to get errors, this will serve you well in the future, you can now like me take parts of the error message and see if you can find previous issue/fix.

  • Like 1
Link to comment
Share on other sites

I am not sure how to update to 1.5.6.2 and i am scary to do this, 'cos I have more than 22k products, 1000 customers and 1000 orders history.  That errors came with this new tempalate. On the last template everything were ok.

So we have errors logs, now need to find what is problem. Thanks for helping me :)

  • Like 1
Link to comment
Share on other sites

I am not sure how to update to 1.5.6.2 and i am scary to do this, 'cos I have more than 22k products, 1000 customers and 1000 orders history.  That errors came with this new tempalate. On the last template everything were ok.

So we have errors logs, now need to find what is problem. Thanks for helping me :)

 

Well, at least now we know it's the template error. You can always test an upgrade on a test server if you want to see if the 1.5.6.2 will help you. http://www.prestashop.com/blog/en/set-up-a-test-server-for-your-online-store/

  • Like 1
Link to comment
Share on other sites

After enabled smarty Debug i got this:

 

Smarty Debug Console - Total Time 0.24696
included templates & config files (load time in seconds)
/var/www/html/modules/feeder/feederHeader.tpl (compile 0.00000) (render 0.00036) (cache 0.00000)
/var/www/html/modules/ganalytics/header.tpl (compile 0.00000) (render 0.00018) (cache 0.00000)
/var/www/html/modules/facebookcomments/header.tpl (compile 0.00000) (render 0.00015) (cache 0.00000)
/var/www/html/modules/zopimfree/header.tpl (compile 0.00000) (render 0.00009) (cache 0.00000)
/var/www/html/modules/csslider/csslider.tpl (compile 0.00000) (render 0.00000) (cache 0.00010)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_csslideshow.tpl (compile 0.00000) (render 0.00000) (cache 0.00009)
/var/www/html/modules/csmegamenu/csmegamenu.tpl (compile 0.00000) (render 0.00000) (cache 0.00033)
/var/www/html/modules/csaddtocartextend/csaddtocartextend.tpl (compile 0.00000) (render 0.00025) (cache 0.00000)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_displaytopbottom.tpl (compile 0.00000) (render 0.00000) (cache 0.00010)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_displayfootertop.tpl (compile 0.00000) (render 0.00000) (cache 0.00009)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_displayfooterbottom.tpl (compile 0.00000) (render 0.00000) (cache 0.00010)
/var/www/html/themes/bestchoice/modules/blockuserinfo/blockuserinfo.tpl (compile 0.00000) (render 0.00033) (cache 0.00000)
/var/www/html/themes/bestchoice/modules/blocksearch/blocksearch-top.tpl (compile 0.00000) (render 0.00055) (cache 0.00000)
/var/www/html/modules/blocksearch/blocksearch-instantsearch.tpl (compile 0.00000) (render 0.00019) (cache 0.00000)
/var/www/html/themes/bestchoice/modules/csheaderlink/csheaderlink.tpl (compile 0.00000) (render 0.00036) (cache 0.00000)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_displaytop.tpl (compile 0.00000) (render 0.00000) (cache 0.00010)
/var/www/html/modules/cscatalogmenu/cscatalogmenu.tpl (compile 0.00000) (render 0.00000) (cache 0.00015)
/var/www/html/themes/bestchoice/modules/blockcms/blockcms.tpl (compile 0.00000) (render 0.00039) (cache 0.00000)
/var/www/html/modules/blockcategories/blockcategories.tpl (compile 0.00000) (render 0.00000) (cache 0.00013)
/var/www/html/modules/blockleocustomhtml/tmpl/default.tpl (compile 0.00000) (render 0.00011) (cache 0.00000)
/var/www/html/modules/lofadvancecustom/tmpl/default/default.tpl (compile 0.00000) (render 0.00000) (cache 0.00019)
/var/www/html/modules/scrolltop/footer.tpl (compile 0.00000) (render 0.00017) (cache 0.00000)
/var/www/html/modules/csstaticblocks/views/templates/hook/csstaticblocks_displayfooter.tpl (compile 0.00000) (render 0.00000) (cache 0.00009)
/var/www/html/themes/bestchoice/category.tpl (compile 0.00000) (render 0.00456) (cache 0.00000)
/var/www/html/themes/bestchoice/breadcrumb.tpl (compile 0.00000) (render 0.00019) (cache 0.00000)
/var/www/html/themes/bestchoice/errors.tpl (compile 0.00000) (render 0.00018) (cache 0.00000)
/var/www/html/themes/bestchoice/category-count.tpl (compile 0.00000) (render 0.00015) (cache 0.00000)
/var/www/html/themes/bestchoice/layout.tpl (compile 0.00000) (render 0.00149) (cache 0.00000)
/var/www/html/themes/bestchoice/header.tpl (compile 0.00000) (render 0.00070) (cache 0.00000)
/var/www/html/themes/bestchoice/footer.tpl (compile 0.00000) (render 0.00021) (cache 0.00000) 
Link to comment
Share on other sites

HEY! This is update.

 

I disabled cache,and everything is ok.

 

But pages are so slow.... What can do now?

1. download (using ftp) classes/module/Module.php from your shop.

2. open with a file editor

3. save file 'as' classes/module/backup_Module.php  (back up the file)

4. now reopen classes/module/Module.php  you downloaded

5. go to this link:

https://github.com/PrestaShop/PrestaShop/commit/242556e176502ec61271a3945e1337917bc88f93

6. on that page, click view

7. copy all the code

8. paste into the open file classes/module/Module.php and file it

9. now FTP classes/module/Module.php  to your remote classes/module/Module.php

 

in the end, you will find keeping current especially when loading current todays themes/modules is less trouble than this.

 

https://github.com/PrestaShop/PrestaShop/commit/242556e176502ec61271a3945e1337917bc88f93

  • Like 1
Link to comment
Share on other sites

The only other thing I can think about is writing permissions. You can try emptying cache by going to advanced parameters/performance and click 'clear smarty cache'. Or do it manually by erasing the content of cache/smarty/compile  and cache/smarty/cache (keep index.php)

Link to comment
Share on other sites

×
×
  • Create New...