Zen Cart Logo
Forums / Customization from the Admin / how to change the admin lang. back to english without access to the panel

how to change the admin lang. back to english without access to the panel

Views: 3,203

Results 1 to 3 of 3
22 Jan 2023, 14:38
#1
eternity575 avatar

eternity575

New Zenner

Join Date:
May 2006
Posts:
49
Plugin Contributions:
0

how to change the admin lang. back to english without access to the panel

hi..
I have uploaded a langauge pack to the admin side, and saw just after i installed it it's not compatible with 1.5.7...
now i can't go into the admin panel via web (error 500), any way of changing the admin language thru files/mysql?

24 Feb 2023, 15:24
#2
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
364
Plugin Contributions:
6

Re: how to change the admin lang. back to english without access to the panel

Hi,
In your case best way is to use database backup to go back, if you have some...
If not and if your cart is new without too many data you'd better reinstall a fresh cart and import your important data through mysql.
If your cart is old with lots of customize I might have another solution. I made myself a Japanese language cart and provided all mysql queries to switch admin language back to English. Problem is that it was made for v1.5.8. Configuration tables in 1.5.7 and 1.5.8 are very close but might have few differences. you need to check. I try to attach file to this post.

You can check differences between 1.5.7 and 1.5.8 by comparing configuration table section in mysql_zencart.sql from each version used to install a new cart (..\zc_install\sql\install\mysql_zencart.sql).

24 Feb 2023, 15:52
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: how to change the admin lang. back to english without access to the panel

Go to your webhost's cPanel and, from there, to your phpMyAdmin.

Click on the SQL tab and enter

UPDATE configuration SET configuration_value = 'en' WHERE configuration_key = 'DEFAULT_LANGUAGE';

If your site uses a DB_PREFIX (like zen_), the SQL would look like

UPDATE zen_configuration SET configuration_value = 'en' WHERE configuration_key = 'DEFAULT_LANGUAGE';