Jump to content

[SOLVED] Help shop shows blank pages


Recommended Posts

sorry was looking in the wrong file


The shop says:

Warning: Cannot modify header information - headers already sent by (output started at /www/o/n/z/onzesieraden.nl/public_html/classes/Tools.php:1) in /www/o/n/z/onzesieraden.nl/public_html/classes/Cookie.php on line 261

Warning: Cannot modify header information - headers already sent by (output started at /www/o/n/z/onzesieraden.nl/public_html/classes/Tools.php:1) in /www/o/n/z/onzesieraden.nl/public_html/classes/Cookie.php on line 261

Warning: Cannot modify header information - headers already sent by (output started at /www/o/n/z/onzesieraden.nl/public_html/classes/Tools.php:1) in /www/o/n/z/onzesieraden.nl/public_html/classes/Tools.php on line 44

Link to comment
Share on other sites

  • 4 months later...
  • 7 months later...

I got the same error after adding a php.ini to my admin folder with

 

suhosin.request.max_vars = 2048
suhosin.post.max_vars = 2048

 

I was trying to solve a problem with the translations and now I I get blank pages all over!!!

 

Warning: Cannot modify header information - headers already sent by (output started at /customers/5/c/a/ilovekutchi.com/httpd.www/shop/config/smarty.config.inc.php:249) in /customers/5/c/a/ilovekutchi.com/httpd.www/shop/classes/Tools.php on line 43

 

Please help!!!

 

 

----- EDIT -----

 

I don't know how or why, but the file smarty.config.inc.php had 2 empty lines at the end of it. I deleted both lines and everything now works fine now... Ufff... :)

 

Thinking about it, this error might not have nothing to do with the php.ini. I was editing the smarty.config.inc.php before and might have introduced an extra line without noticing... :unsure:

Edited by ilovekutchi.com (see edit history)
Link to comment
Share on other sites

  • 7 months later...

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/classes/Cookie.php on line 302

 

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/classes/Cookie.php on line 302

 

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152//ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.awst/public_html/mrma/rrorclasses/Tools.php on line 107

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

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/classes/Cookie.php on line 302

 

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.aws/public_html/mrma/classes/Cookie.php on line 302

 

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb018/b2152//ipw.aws/public_html/mrma/admin/header.inc.php:113) in/hermes/bosoraweb018/b2152/ipw.awst/public_html/mrma/rrorclasses/Tools.php on line 107

Link to comment
Share on other sites

  • 2 months later...

Hi! Can you help me?

I have mistaces on autentication.php after tryin login

Warning: Cannot modify header information - headers already sent by (output started at /home4/etnomaga/public_html/authentication.php:1) in /home4/etnomaga/public_html/config/config.inc.php on line 15

 

I try to change tools.php, but without results? Any idea?

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 11 months later...

 

 

This is commonly known as the "whitespace problem".

 

The error message typically looks something like

 

Warning: Cannot modify header information - headers already sent by (output started at /path/to/geeklog/public_html/config.php:581) in /path/to/geeklog/public_html/system/lib-sessions.php on line 180

 

(line numbers and file names may vary). The problem is that many editors seem to add additional blanks (spaces) and/or empty lines at the end of a file when you edit it. This so-called whitespace is then sent to the browser when the file is loaded and interferes with the header of a page that Geeklog tries to send to the browser, often causing problems such as login problems.

 

The fix is, obviously, to remove that whitespace from the file. Read the error message carefully. It says "output started at ..." followed by a file name and a line number. That is the file (and line) that you need to edit. Ignore the second file name - that is only a file that included the file that has the whitespace. The first file is the one you have to edit, not the second one.

 

Since the editor you've been using caused this problem in the first place, you should use another editor to fix the problem and remove the whitespace. https://www.geeklog.net/faqman/index.php?op=view&t=38

Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...

Thank Bruno, i downloaded the file which was specified in the error message from my cpanel, in my case it was accordion.php. I opened it with Notepad++ and deleted the first line (the line was blank), saved and uploaded it and the problem was solved. :D  :)

Link to comment
Share on other sites

  • 11 months later...
  • 4 months later...
  • 4 months later...

Can anyone please help me?  I cannot access the back end of the site   Both front and back are white pages.  I have changed php.ini to increase limits  and set to show display errors and this is what I see;-

 

Notice: tempnam(): file created in the system's temporary directory in /var/sites/x/xxxxx/public_html/store/classes/PrestaShopAutoload.php on line 151

Fatal error: Uncaught Error: [] operator not supported for strings in /var/sites/x/xxxxxx/public_html/store/classes/db/DbQuery.php:70 Stack trace: #0 /var/sites/x/xxxxxx/public_html/store/classes/ObjectModel.php(203): DbQueryCore->from('shop', 'a') #1 /var/sites/x/xxxxxx/public_html/store/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 /var/sites/x/xxxxxx/public_html/store/classes/shop/Shop.php(392): ShopCore->__construct('1') #3 /var/sites/x/xxxxx/public_html/store/config/config.inc.php(97): ShopCore::initialize() #4 /var/sites/x/xxxxx/public_html/store/index.php(18): require('/var/sites/x/xxx...') #5 {main} thrown in /var/sites/x/xxxxxx/public_html/store/classes/db/DbQuery.php on line 70

 

I am using version 1.6.0.9 and default template   Any help would be greatly appreciated

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

×
×
  • Create New...