Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

    Default 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.

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

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

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

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default 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!

  4. #4
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

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

    Quote Originally Posted by fairestcape View Post
    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.

  5. #5
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

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

    Quote Originally Posted by barco57 View Post
    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.
    Last edited by koenvandamme; 23 Feb 2009 at 04:55 PM.

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

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

    Quote Originally Posted by fairestcape View Post
    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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 24 Feb 2010, 05:20 PM
  2. can't change includes/languages/english/index.php!
    By therealex in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 Aug 2009, 08:55 PM
  3. Attempt to change /languages/rustic/english.php - its gone badly
    By KateMcclellan in forum Basic Configuration
    Replies: 2
    Last Post: 24 Sep 2008, 05:25 PM
  4. Replies: 1
    Last Post: 29 Oct 2007, 08:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg