Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Error Overriding the includes/languages/english.php

Error Overriding the includes/languages/english.php

Locked

Views: 2,796

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Oct 2006, 9:40 PM
#1
jeanmichel avatar

jeanmichel

New Zenner

Join Date:
Oct 2006
Posts:
43
Plugin Contributions:
0

Error Overriding the includes/languages/english.php

I've followed the way to do it exactly as told by this tutorial and that gave me this internal server error

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster*[I]mysite[/I].com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

So what did i do wrong again ;)?

24 Oct 2006, 10:38 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Error Overriding the includes/languages/english.php

With out a url to see what can be seen this is a shot in the dark.

Having done this many times I would have to think that while you believe that you did it "exactly" right , that you have err'd some where.

Can you provide a url?
Post the section of code that you altered?
Something more than "try to guess what I did"

24 Oct 2006, 10:46 PM
#3
jeanmichel avatar

jeanmichel

New Zenner

Join Date:
Oct 2006
Posts:
43
Plugin Contributions:
0

Re: Error Overriding the includes/languages/english.php

Ok what i have done to fix the problem is this. instead of following what is being suggested in the tutorial, i just created a CUSTOM folder inside the ```
includes/languages

And i've saved my modified copy of the ```
includes/languages/english.php
``` file as ```
includes/languages/CUSTOM/english.php
```.

And it worked fine.

Is there an error in the [tutorial](https://www.zen-cart.com/tutorials/index.php?article=131)?
24 Oct 2006, 10:54 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Error Overriding the includes/languages/english.php

Tutorial:

Save the edited file to includes/languages/ENGLISH/CUSTOM/header.php and upload it to your server
Where "CUSTOM" is meant to be any template name that you might have created

I think that you might have overlooked this ???

24 Oct 2006, 11:46 PM
#5
jeanmichel avatar

jeanmichel

New Zenner

Join Date:
Oct 2006
Posts:
43
Plugin Contributions:
0

Re: Error Overriding the includes/languages/english.php

Save the edited file to includes/languages/ENGLISH/CUSTOM/header.php and upload it to your server

That is exactly what didnt work.

First, the right directory is not this one, but rather "includes/languages/CUSTOM"
and

Second, the name of the file isnt header.php (like i said, it didnt work that way) but english.php.

Like that:

includes/languages/CUSTOM/english.php

And yes, the CUSTOM folder is the name of the custom template i'm using.

I dont understand why they're asking to rename the "english.php" file (after modifications) to "header.php". And i dont understand neither why they're inviting us to relocate it under this > includes/languages/ENGLISH/CUSTOM/header.php directory.

Do you have an answer for that?

Thanks, BTW.

25 Oct 2006, 6:53 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Error Overriding the includes/languages/english.php

tutorial:

Open the includes/languages/english.php file in your text editor.
Tutorial:

Save the edited file to includes/languages/ENGLISH/CUSTOM/header.php and upload it to your server
Yes, you have found an error in the instructions for this and the last statement about saving the file should read:
Save the edited file to includes/languages/CUSTOM/english.php and upload it to your server
It never stated that you should "rename the file...but is mis-leading and where one would think that it was what was being suggested.

Thanks for pointing this out...

25 Oct 2006, 7:49 AM
#7
jeanmichel avatar

jeanmichel

New Zenner

Join Date:
Oct 2006
Posts:
43
Plugin Contributions:
0

Re: Error Overriding the includes/languages/english.php

kobra:

It never stated that you should "rename the file...but is mis-leading and where one would think that it was what was being suggested.

Yeah, i know, your werent stating to rename the file but in the tutorial, that is what they're instructing the newbie (me) to do.

Thanks, and someone should reajust the tuto accordingly.

25 Oct 2006, 8:20 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Error Overriding the includes/languages/english.php

I would also agree that an overhaul of the Tutorials would remove some ambiguity.

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

The above article tells us we need to create this dir.:
/includes/languages/custom

Then, copy english.php to this directory.
Then, you can make any needed modifications in your new:
/includes/languages/custom/meta_tags.php

Then the tutorial states:

Make a directory with the same name as your template name. Assume your template name is custom. This directory path would be:

/includes/languages/english/custom

Copy the original file /includes/languages/english/account.php to this new folder, /includes/languages/english/custom

Then, modify the file in the custom folder. This will 'override' the existing file in /includes/languages/english, thereby leaving the core file intact and alone.

Another example: in /includes/languages/custom/meta_tags.php:

How did we get 'meta_tags.php' into two different dir. and why do we need two; the 'classic' Template only has one for languages?

25 Oct 2006, 1:12 PM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Error Overriding the includes/languages/english.php

Thanks to some tips from kobra, my question has been answered.