Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Problem with overide of english.php and down for maintenance setting

Problem with overide of english.php and down for maintenance setting

Locked

Views: 2,434

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Feb 2008, 7:02 AM
#1
wintech avatar

wintech

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
5
Plugin Contributions:
0

Problem with overide of english.php and down for maintenance setting

Hi All,
My problem is that I am trying to make changes to english.php.
I have narrowed it down to this:
When I put "includes/languages/english.php" into "includes/languages/CUSTOM/english.php"
and set down for maintenance to on, the website does not display.
This is regardless of whether I make any changes to the file or not.
I have tried this not just on my custom template but also on the classic template by just copying english.php into the classic overides directory.
Now, if I click the Online Catalog link from within the admin panel I get a blank page with "www.mydomain.com/index.php?main_page=" when normally it would say with "www.mydomain.com/index.php?main_page=down_for_maintenance", if I add the down_for_maintenance manually and refresh the site, it will load as it should. But if I just browse to the site it will not load unless I add "/index.php?main_page=down_for_maintenance".
Once I delete english.php from the overide directory everything works fine.

Thanks in advance for any help you can offer. :smile:

23 Feb 2008, 7:35 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problem with overide of english.php and down for maintenance setting

My problem is that I am trying to make changes to english.php.
You did not elaborate on what you changed???

23 Feb 2008, 10:59 AM
#3
wintech avatar

wintech

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Problem with overide of english.php and down for maintenance setting

Wintech:

This is regardless of whether I make any changes to the file or not.
I have tried this not just on my custom template but also on the classic template by just copying english.php into the classic overides directory.

As I said, this also happens on the classic template without changing anything,
only copying an unaltered english.php to the overide directory.
Also, this on a clean install with no alterations so when I switch back to the
default template, if it was anything that I altered in my template it shouldn't
affect it.

Thanks!

23 Feb 2008, 4:57 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problem with overide of english.php and down for maintenance setting

But if I just browse to the site it will not load unless I add "/index.php?main_page=down_for_maintenance".
Do not try or worry about the Online Catalog link from within the admin panel.

But when you state "browse" to the site do you mean enter the normal navigation to your site or maybe from a bookmark?

Also add what the version of ZenCart is. what browser & ver

23 Feb 2008, 8:54 PM
#5
wintech avatar

wintech

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Problem with overide of english.php and down for maintenance setting

But when you state "browse" to the site do you mean enter the normal navigation to your site or maybe from a bookmark?
Also add what the version of ZenCart is. what browser & ver
Yes that's right and I am using ZenCart v1.3.8 with IE 7

23 Feb 2008, 9:02 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problem with overide of english.php and down for maintenance setting

Post a link so we can see what you are talking about

24 Feb 2008, 1:06 PM
#7
wintech avatar

wintech

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Problem with overide of english.php and down for maintenance setting

I have wiped and reinstalled ZenCart on my server and it appears to have fixed the problem.

Hopefully all goes well now!

28 Feb 2008, 10:31 AM
#8
wintech avatar

wintech

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Problem with overide of english.php and down for maintenance setting

I wound up having exactly the same problem again almost immediatly.
After a few days playing around I have finaly manged to fix the problem. :clap:
It turns out that there were extra lines after the closing tag "?>" in the english.php file.
After removing these it works perfectly!

9 Mar 2008, 3:50 AM
#9
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Problem with overide of english.php and down for maintenance setting

For the record:

Those extra lines might have been added by your html file editor when you tried to edit the file.

If you did not ever open the file, then those extra lines were probably added by your FTP software, i.e. the software you used to upload the extra english.php file to the CUSTOM folder.

Sounds crazy but I have had both of those exact situations happen to me in the past. I now use HTML Editor for html editing and WS_FTP Home for uploading. These do not create these extra lines.