Zen Cart Logo
Forums / General Questions / override english.php?

override english.php?

Views: 748

Results 1 to 6 of 6
16 Feb 2012, 7:00 PM
#1
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

override english.php?

Hi for some reason whenever I override english.php the site will not load any content? anyone have fix for this?

thanks

16 Feb 2012, 8:07 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: override english.php?

https://www.zen-cart.com/tutorials/index.php?article=82

Check your /cache folder for error log files, and post the contents of the newest one if it isn't clear what it's telling you. Most likely you edited that file with something other than a text editor, and you've added an extra character or line to the bottom of the file.

16 Feb 2012, 8:11 PM
#3
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

Re: override english.php?

well I had thought that was the case but the same exact file works when it is not in the override folder...its very strange

16 Feb 2012, 9:46 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: override english.php?

So you don't have any files in the /cache folder ? If the file is corrupted, it won't work in the non-override folder either.

16 Feb 2012, 10:48 PM
#5
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

Re: override english.php?

I dont think your understanding....

all of my overrides work also my english and spanish.pho files both work with the change made the exact file though when moved to the CUSTOM folder inside of languages stop working and the page doesn't load.

so there is nothing corrupt in the file it works just doesn't work when moved to the other folder as an override.

17 Feb 2012, 12:53 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: override english.php?

If you are MOVING the file (ie: taking it AWAY from the CORE folder and putting it into the CUSTOM folder, then there is no longer a CORE file in its CORE folder.

When doing OVER-RIDES, you first COPY the CORE FILE, bringing it onto a LOCAL machine. (NEVER EDIT THE CORE FILE ITSELF)

You then edit that COPY to suit your customisations.

You then FTP that COPY (now your CUSTOM file) to its relevant over-ride folder.

The ORIGINAL, CORE FILE has not been touched, and stays in its CORE folder.

There HAS to be a CORE file in the CORE folder, in addition to an OVER-RIDE file in an OVER-RIDE folder, for the system to work.