Forums / Basic Configuration / ANY change to English.php results in blanc pages!?

ANY change to English.php results in blanc pages!?

Locked

Views: 1,373

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
23 Feb 2009, 3:41 PM
#1
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

ANY change to English.php results in blanc pages!?

I was looking for a way to change the name of the sidebox categories into 'products'. In an other thread I read that this could be changed in English.php. However, after doing so, the name does indeed change to 'products' but I get a blanc page whenever I try to login or write a review on my shop. Even when I change the word 'Categories' back as it was, it still doesn't work so I need to overwrite the php-file with the original one to make it work again.

I maybe should mention that I am using a Zen Cart Template, bought from TemplateMonster. I'm using Zen Cart version 1.3.8a.

Any help would be greatly appreciated.

23 Feb 2009, 3:43 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

Describe the process (and the software) you are using to edit english.php

23 Feb 2009, 3:44 PM
#3
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

A blank page error after editing a language file can usually be traced to spaces or blank line after the closing ?> tag at the bottom of the file.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

23 Feb 2009, 3:46 PM
#4
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

fairestcape:

Describe the process (and the software) you are using to edit english.php

I open the file in HTML-kit, then change

define('BOX_HEADING_CATEGORIES', 'Categories');

into

define('BOX_HEADING_CATEGORIES', 'Products');

I don't change anything else.

23 Feb 2009, 3:52 PM
#5
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

barco57:

A blank page error after editing a language file can usually be traced to spaces or blank line after the closing ?> tag at the bottom of the file.

That's it! For some reason HTML-kit adds an extra line at the bottom of the file. Removing this line solved everything. I can't believe I spent half the day trying to figure this out. You guys solved it in mere minutes. Thanks a lot for the fast reply. :clap:

24 Feb 2009, 1:03 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

Yeah... that's why I asked the question... the SOFTWARE you are using to do the edits.

PHP is very fussy and does not like any kind of "formatting" at all - so you should always use a PLAIN TEXT EDITOR to edit the files - such as CRIMSON EDITOR or NOTEPAD++ (both are freeware on the internet).

HTML-Kit sounds like just the sort of program you should NOT use to edit PHP files.

24 Feb 2009, 10:39 PM
#7
koenvandamme avatar

koenvandamme

New Zenner

Join Date:
Feb 2009
Posts:
53
Plugin Contributions:
0

Re: ANY change to English.php results in blanc pages!?

fairestcape:

Yeah... that's why I asked the question... the SOFTWARE you are using to do the edits.

PHP is very fussy and does not like any kind of "formatting" at all - so you should always use a PLAIN TEXT EDITOR to edit the files - such as CRIMSON EDITOR or NOTEPAD++ (both are freeware on the internet).

HTML-Kit sounds like just the sort of program you should NOT use to edit PHP files.

The funny thing is that HTML-Kit IS a plain text editor. It's not WYSIWYG or anything. It's free and specially designed to edit HTML, XHTML, CSS, JAVAScript and PHP.

I'm gonna take your advice however and give Crimson Editor a try.

Thanks again.