Forums / General Questions / changed languages folder, now admin is busted

changed languages folder, now admin is busted

Locked
Results 1 to 10 of 10
This thread is locked. New replies are disabled.
23 Apr 2009, 05:32
#1
ferret4 avatar

ferret4

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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?
23 Apr 2009, 05:35
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

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
23 Apr 2009, 05:41
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

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
23 Apr 2009, 05:41
#4
ferret4 avatar

ferret4

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

Re: changed languages folder, now admin is busted

deleted
23 Apr 2009, 05:43
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

Re: changed languages folder, now admin is busted

Fe,
yes, I see, read post #3
23 Apr 2009, 05:48
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

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...
23 Apr 2009, 06:34
#7
ferret4 avatar

ferret4

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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!
23 Apr 2009, 06:49
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

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????
23 Apr 2009, 10:25
#9
ferret4 avatar

ferret4

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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.
23 Apr 2009, 11:57
#10
ferret4 avatar

ferret4

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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