Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / blank page when add cart because of template and french language

blank page when add cart because of template and french language

Started by adeline on 30 Nov 2011, 4:50 PM · Views: 917

Results 1 to 6 of 6
30 Nov 2011, 4:50 PM
#1
adeline avatar

adeline

New Zenner

Join Date:
Nov 2011
Location:
Altamonte Springs, FL
Posts:
4
Plugin Contributions:
0

blank page when add cart because of template and french language

I got Zen cart v.1.3.9h and I got an issue when I want to add a product in my cart; the page is blank.

I've read many others on the forum with the same issue so I tried to fix the problem by myself but I'm really stuck.

The cache file says:
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/adeline/public_html/lespelemeles/includes/languages/french/header.php:1) in /home/adeline/public_html/lespelemeles/includes/init_includes/init_templates.php on line 78

So I was first thinking it was because of a space in the first line of my public_html/lespelemeles/includes/languages/french/header.php file but I checked and it's not.

And I figured out that when I switch my template to the classic one, everything works in french AND in english. So the issue is with my template (simply kerrin) but only when the website is in french. Everything works fine in english.

And it has been always this way; I mean from start with this template. It didn't start after removing or changing a file.

I don't see why it would be because of the french/header.php file because this file is used with the classic template which works...

I don't know anything about php... Help would be really appreciated !! my site; https://www.adelinepelemele.com/lespelemeles/

Thank you

30 Nov 2011, 8:23 PM
#2
adeline avatar

adeline

New Zenner

Join Date:
Nov 2011
Location:
Altamonte Springs, FL
Posts:
4
Plugin Contributions:
0

Re: blank page when add cart because of template and french language

Sounds like nobody is able to help me?
I wouldn't have this issue if I wasn't French. But I am :laugh:

1 Dec 2011, 2:43 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,741
Plugin Contributions:
0

Re: blank page when add cart because of template and french language

Pasting the error "headers already sent" into the search on Tutorials/FAQ section came up with this article - https://www.zen-cart.com/tutorials/index.php?article=87

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Dec 2011, 1:07 PM
#4
adeline avatar

adeline

New Zenner

Join Date:
Nov 2011
Location:
Altamonte Springs, FL
Posts:
4
Plugin Contributions:
0

Re: blank page when add cart because of template and french language

Thank you very much but I've already read this tutorial. I've tried to find an answer to my problem in the forum before I post ;-) if I understand correctly the tutorial, I should have a blank space or a syntax error at the first line of my file (according to my cache file) but I have not space before the <?php and that the only thing I got on this line.
So?
And the thing I don't understand is that this file is exactly the same used by the classic template which works fine when the site is in French.

2 Dec 2011, 2:20 PM
#5
adeline avatar

adeline

New Zenner

Join Date:
Nov 2011
Location:
Altamonte Springs, FL
Posts:
4
Plugin Contributions:
0

Re: blank page when add cart because of template and french language

I've solved the problem. I really didn't find the syntax error in my french file header.php.
So I did a copy of the english header.php to check if it was working this way. And it did !
So I modified this one to get everything I needed in French and I don't have the blank page anymore.
I still dont't understand why it was working with the classic template but nevermind.
I'm writing it just in case someone has the same issue than me.... :wink:

7 May 2013, 8:00 PM
#6
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: blank page when add cart because of template and french language

In case anyone else needs a solution to this same problem; the french.php language file has incorrect encoding. If you change the encoding of the file, or copy and paste the contents into a brand new PHP file, then this should fix your issue. Hope that helps someone else!

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.