Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a language #4768

Closed
alaplap opened this issue Aug 16, 2016 · 4 comments
Closed

Deleting a language #4768

alaplap opened this issue Aug 16, 2016 · 4 comments

Comments

@alaplap
Copy link

alaplap commented Aug 16, 2016

Hi!

In v2.3.0.2 deleting a language causes a fatal error:

Fatal error: Uncaught exception 'Exception' with message 'Error: Table 'oc_teszt.oc_banner_image_description' doesn't exist
Error No: 1146
DELETE FROM oc_banner_image_description WHERE language_id = '1'' in C:\xampp\htdocs\opencart\system\library\db\mysqli.php:40 Stack trace: #0 C:\xampp\htdocs\opencart\system\library\db.php(16): DB\MySQLi->query('DELETE FROM oc_...', Array) #1 C:\xampp\htdocs\opencart\admin\model\localisation\language.php(222): DB->query('DELETE FROM oc_...') #2 [internal function]: ModelLocalisationLanguage->deleteLanguage('1') #3 C:\xampp\htdocs\opencart\system\engine\loader.php(178): call_user_func_array(Array, Array) #4 [internal function]: Loader->{closure}(Array, Array) #5 C:\xampp\htdocs\opencart\system\engine\proxy.php(25): call_user_func_array(Object(Closure), Array) #6 C:\xampp\htdocs\opencart\admin\controller\localisation\language.php(88): Proxy->__call('deleteLanguage', Array) #7 C:\xampp\htdocs\opencart\admin\controller\localisation\language.php(88): Proxy->deleteLanguage('1') #8 [ in C:\xampp\htdocs\opencart\system\library\db\mysqli.php on line 40

@bogdan-manea
Copy link
Contributor

Hi,

Please send more information about this issue, in order for us to try to replicate it (including screenshots, if possible).

Have you installed multiple languages? Are you trying to delete the only one existing and default language?

@ghost
Copy link

ghost commented Aug 16, 2016

it was fixed in the master allready: 4bbf3d5

@alaplap
Copy link
Author

alaplap commented Aug 16, 2016

Hi,

@andrei-bogdan Yes, I have installed the hungarian language beside english. Hungarian was the default and I wanted to delete the english language.

@florinsith Yes, I saw that, but I think that isn't correct. It seems that the banner descriptions for different languages are stored in the banner_image table instead of the old banner_image_description table.

I am not realy familiar with using github, but I tried to do a request or what. Anyway, here is my solution to fix it: banner_image reference added to deleteLanguage()

@ghost
Copy link

ghost commented Aug 16, 2016

Oh, yes, you're right. I created a pull request: 79c9fe9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants