Results 1 to 9 of 9
  1. #1
    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

    Code:
    "Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, webmaster*mysite.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 ;)?

  2. #2
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

    Default 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"
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

    Default 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
    Code:
    includes/languages
    dir.
    And i've saved my modified copy of the
    Code:
    includes/languages/english.php
    file as
    Code:
    includes/languages/CUSTOM/english.php
    .

    And it worked fine.

    Is there an error in the tutorial?

  4. #4
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

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

    Quote Originally Posted by 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 ???
    Zen-Venom Get Bitten
    Get Your Business Found

  5. #5
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

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

    Code:
    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.

  6. #6
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

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

    Quote Originally Posted by tutorial
    Open the includes/languages/english.php file in your text editor.
    Quote Originally Posted by 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...
    Zen-Venom Get Bitten
    Get Your Business Found

  7. #7
    Join Date
    Oct 2006
    Posts
    43
    Plugin Contributions
    0

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

    Quote Originally Posted by kobra View Post

    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.

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

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

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

    http://tutorials.zen-cart.com/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?

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

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

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

 

 

Bookmarks

Posting Permissions

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