Waseeman Posted August 29, 2013 Share Posted August 29, 2013 Hi everyone, can anyone tell me what do these lines, in the file webroot / shop / install / models / install.php do: if (!@simplexml_load_string($localization_file_content)) $localization_file_content = false; if (!$localization_file_content) { $localization_file = _PS_ROOT_DIR_.'/localization/default.xml'; if (file_exists(_PS_ROOT_DIR_.'/localization/'.$data['shop_country'].'.xml')) $localization_file = _PS_ROOT_DIR_.'/localization/'.$data['shop_country'].'.xml'; $localization_file_content = file_get_contents($localization_file); } This is my first installation of Prestashop and I am not a developer so I am having some difficulty in debugging the problem. I hope I can get some good advice. Why I need to know: I downloaded and started the installation of Prestashop 1.5.5.0 on a linux shared hosting at Godaddy. During the last step, I got stuck at 45% of the installation process with error with shop configuration. After some research here and on google, it seemed one of the reasons was related to the localization process, as described here: http://www.inmotionhosting.com/support/edu/prestashop-15/302-an-error-occurred-during-installation I tried to follow instructions, and added the line unset($localization_file_content); in the webroot / shop / install / models / install.php That did not seem to help. So to further debug the problem, I deleted the following lines: if (!@simplexml_load_string($localization_file_content)) $localization_file_content = false; if (!$localization_file_content) { $localization_file = _PS_ROOT_DIR_.'/localization/default.xml'; if (file_exists(_PS_ROOT_DIR_.'/localization/'.$data['shop_country'].'.xml')) $localization_file = _PS_ROOT_DIR_.'/localization/'.$data['shop_country'].'.xml'; $localization_file_content = file_get_contents($localization_file); } The shop installed successfully. Link to comment Share on other sites More sharing options...
NemoPS Posted August 30, 2013 Share Posted August 30, 2013 Those lines simply get localized strings as you can see from file_get_contents Link to comment Share on other sites More sharing options...
Waseeman Posted August 30, 2013 Author Share Posted August 30, 2013 Hi Nemo, thanks for the reply. So in this case the shop itself should function properly? Is there a way then that I can manually translate the strings? Link to comment Share on other sites More sharing options...
NemoPS Posted August 30, 2013 Share Posted August 30, 2013 Well, try and see if you can translate files into other languages. If it does, there shouldn't be further issues Hopefully Link to comment Share on other sites More sharing options...
Waseeman Posted August 30, 2013 Author Share Posted August 30, 2013 well thanks for that. That sounds reassuring On the risk of sounding lazy, can I get a quick direction. Can translation be done through the backbone or do I actually need to edit php files? Link to comment Share on other sites More sharing options...
NemoPS Posted August 30, 2013 Share Posted August 30, 2013 You mean the back office? Yes, you can go to localization, translations Link to comment Share on other sites More sharing options...
Waseeman Posted August 30, 2013 Author Share Posted August 30, 2013 Nemo thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now