Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default changed languages folder, now admin is busted

    In Admin "Localisation" / "Languages", I edited the default language (english) and altered the Directory from 'english' to my custom 'aussie' one (I was having trouble getting Zencart to see my new language - which is just an altered version of the english one - and thought this would be a short-cut).

    Now I can't access any of the admin pages, I'm getting these sorts of errors:


    Warning: require(includes/languages/aussie.php) [function.require]: failed to open stream: No such file or directory in /home/hig49254/public_html/store/admin/includes/init_includes/init_languages.php on line 31

    Warning: require(includes/languages/aussie.php) [function.require]: failed to open stream: No such file or directory in /home/hig49254/public_html/store/admin/includes/init_includes/init_languages.php on line 31

    Fatal error: require() [function.require]: Failed opening required 'includes/languages/aussie.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hig49254/public_html/store/admin/includes/init_includes/init_languages.php on line 31


    And as I can't get into admin I can't change the directory back to 'english'!

    Any suggestions, or am I just going to have to re-install?

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Fe,
    admin panel/ localization/ languages

    1. click: new language
    2. English
    3. en
    4. icon.gif
    5. english
    6. 2
    7. update

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Fe,
    You could try to reload this file from the original download of Zen-Cart

    1. home/hig49254/public_html/store/admin/includes/init_includes/init_languages.php

    If that does not work. Edit your data base through the cpanel and finds the table languages and change the values back to english

  4. #4
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    deleted
    Last edited by ferret4; 23 Apr 2009 at 06:42 AM. Reason: new suggestion (sorry!)

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Fe,
    yes, I see, read post #3

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Fe,
    You will half to change this criteria in the data base tables in languages..

    The only bad thing is since you changed the language you will loose all the data that you have typed in before...

  7. #7
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Thanks haredo, that worked perfectly!

    For anyone else with the same issue who isn't MySQL-savvy (which was and is me):

    1) once logged into cPanel, go to Databases and create yourself a username/password for the zencart database.
    2) go into phpMyAdmin and in the SQL window run this command:

    REPLACE `zen_languages` (`languages_id`, `name`, `code`, `image`, `directory`, `sort_order`) VALUES
    (1, 'English', 'en', 'icon.gif', 'english', 1);

    4) You may have to then run:
    COMMIT

    5) close your browser and clear your cache, you can now log back in to admin (phew!)

    not sure if commit was required or not as Firefox was caching the errors! There's probably a shorter SQL command too, but it did the job.

    Thanks again haredo!

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Fe,
    You are most Welcome, glad you are up and running again..

    Always use a test site and load your added languages, and see if they work properly, then follow your notes and add them to your live site..
    What was the trouble you were having with the aussie languages?
    What version of zen cart are you using????
    Did you change the default in languages to aussie so zen-cart will recognize and load this by default????

  9. #9
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    I've got a lot of changes in about a dozen files in the 'english' folder and 'english.php' file - and rather than over-write them I thought I'd make a new language called 'aussie' instead.

    Via FTP I've uploaded an aussie.php file and an 'aussie' directory with all the files in it, but zen-cart doesn't seem to see it - the only language I have available to pick from is 'english'... rather foolishly, in zen-cart I decided to alter the English languages directory setting to 'aussie' as a short-cut around this issue, which turned out to be disastrous :-)

    So I'm not sure what I'm doing wrong in regards to installing a new language - worse comes to worse I can over-write the existing files, I know that'll work as it did on my initial test site, but I know that's probably not best practice.

  10. #10
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: changed languages folder, now admin is busted

    Hmm I've got my languages issues sorted now just by using the overrides folder system - so all good :-)

 

 

Similar Threads

  1. v153 Changed my store folder and now my site redirects to the old one!
    By rrdein in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 Dec 2014, 10:42 AM
  2. Changed site root folder and now have bad htaccess problem(s)
    By bodkin77 in forum General Questions
    Replies: 8
    Last Post: 30 Apr 2013, 10:57 AM
  3. Changed Admin folder name, but no links work now..
    By yuppicide in forum General Questions
    Replies: 2
    Last Post: 10 Mar 2010, 07:51 PM
  4. Replies: 3
    Last Post: 25 Jul 2007, 07:13 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