kinkibcn Posted August 1, 2013 Share Posted August 1, 2013 I have upgraded my PS in two steps. Firt step from 1.4.2.5 to 1.4.11 and the second one from 1.4.11 to 1.5.4.1 The upgrading process finished without any problem and when I was trying to import a new language into the version 1.5.4.1 the program finished with this error " Property Tab->name is empty " How can fix it ?. Thanks in advance, Toni Link to comment Share on other sites More sharing options...
NemoPS Posted August 2, 2013 Share Posted August 2, 2013 Hi, Which method are you using for the import? Link to comment Share on other sites More sharing options...
kinkibcn Posted August 2, 2013 Author Share Posted August 2, 2013 Hi Nemo1, I use PS backoffice, Localization->Translations -> Import a language pack manually Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted August 3, 2013 Share Posted August 3, 2013 Have you tried with localization->localization and then using Import a localization pack by only selecting language? Link to comment Share on other sites More sharing options...
kinkibcn Posted August 3, 2013 Author Share Posted August 3, 2013 Hi Nemo1, I have tried your suggestion localization->localization and then Import a localization pack->languages (unchecking the others options) and the result is this error message: [PrestaShopException] Property Tab->name is empty at line 874 in file classes/ObjectModel.php 868. 869. $message = $this->validateField($field, $value, $id_lang); 870. if ($message !== true) 871. { 872. if ($die) 873. throw new PrestaShopException($message); 874. return $error_return ? $message : false; 875. } 876. } 877. } 878. ObjectModelCore->validateFieldsLang - [line 306 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 637 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 478 - classes/Tab.php] - [1 Arguments] TabCore->update - [line 594 - controllers/admin/AdminTranslationsController.php] - [0 Argument] AdminTranslationsControllerCore::addNewTabs - [line 814 - classes/Language.php] - [2 Arguments] LanguageCore::downloadAndInstallLanguagePack - [line 297 - classes/LocalizationPack.php] - [2 Arguments] LocalizationPackCore->_installLanguages - [line 73 - classes/LocalizationPack.php] - [1 Arguments] LocalizationPackCore->loadLocalisationPack - [line 168 - controllers/admin/AdminLocalizationController.php] - [2 Arguments] AdminLocalizationControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin0425/index.php] - [0 Argument] I am not a programmer so I do not undertand the error, and I hope there is enough information for you to identify the problem. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted August 3, 2013 Share Posted August 3, 2013 Hm, which language are you trying to import? Link to comment Share on other sites More sharing options...
kinkibcn Posted August 3, 2013 Author Share Posted August 3, 2013 Hi Nemo1, I have tryed several languages: Italian, Deutch, Galician, etc. and ,no matter the language, I get always the same error message Link to comment Share on other sites More sharing options...
NemoPS Posted August 5, 2013 Share Posted August 5, 2013 I came across this when I was adding a module on a client's site, and I was not using the default language for the back office. How many languages do you have? is the one you're using the default one? 1 Link to comment Share on other sites More sharing options...
kinkibcn Posted August 5, 2013 Author Share Posted August 5, 2013 Hi Nemo1, I have installed and active three languages: Spanish, Catalan and French. The BO language administrator is Spanish and front office default language is also Spanish. Link to comment Share on other sites More sharing options...
NemoPS Posted August 5, 2013 Share Posted August 5, 2013 Do you know which is the % of completion of the catalan language? might be missing something Link to comment Share on other sites More sharing options...
kinkibcn Posted August 5, 2013 Author Share Posted August 5, 2013 Hi Nemo1, All three languages, Spanish, Catalan and French, are 100% completed Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 10, 2013 Share Posted September 10, 2013 hi nemo , I have created a backoffice tab through my module i am getting this error [PrestaShopException]Property Tab->name is emptyat line 878 in file classes/ObjectModel.php how to resolve it ? my default language is english, after getting the error if i reload means i am getting the page. Link to comment Share on other sites More sharing options...
HabibSmith Posted September 13, 2013 Share Posted September 13, 2013 Hi everybody, I had the same problem today. When giving the name of the tab, make sure it's this way : foreach(Language::getLanguages(false) as $lang){ $tab->name[(int) $lang['id_lang']] = $tabName; } or true for only active languages. Most probably you used to make it this way : $tab->name = $tabName; Hope this helps! 3 1 Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 16, 2013 Share Posted September 16, 2013 (edited) thank you habib I have sort it out already and i am able to add a tab now. Edited September 16, 2013 by karthik who_am_i (see edit history) Link to comment Share on other sites More sharing options...
sadlyblue Posted October 8, 2013 Share Posted October 8, 2013 Hi everybody, I had the same problem today. When giving the name of the tab, make sure it's this way : foreach(Language::getLanguages(false) as $lang){ $tab->name[(int) $lang['id_lang']] = $tabName; } or true for only active languages. Most probably you used to make it this way : $tab->name = $tabName; Hope this helps! I'm having the same error when importing a new language. Where should i change this? In my costum modules? Thanks Link to comment Share on other sites More sharing options...
creacion Posted October 8, 2013 Share Posted October 8, 2013 (edited) I had the same error. Maybe due to a bug during the upgrade process (My shop was upgraded from 1.3) there are empty values in the table ps_tab_lang. Just search: SELECT * FROM `ps_tab_lang` where name = NULL OR name = "" You can correct it by adding some text: UPDATE `ps_tab_lang` SET name = "CHANGEME" where name = NULL OR name = "" Cheers! Edited October 8, 2013 by creacion (see edit history) Link to comment Share on other sites More sharing options...
prestamax Posted November 13, 2013 Share Posted November 13, 2013 I am getting the same error even if I set the default language to English. No empty values were found in table ps_tab_lang. Any other tips how to being able to import a language without getting an error message are appreciated. Link to comment Share on other sites More sharing options...
rezaaaaaaa Posted February 11, 2017 Share Posted February 11, 2017 hi a want to import csv of product.but give me can not save and Property Product->name is empty.my ps version is 1.6.1.5.(test import ps sample file) i test various file and the problem is not from the file. pls help me guys Link to comment Share on other sites More sharing options...
Recommended Posts