Jump to content

Error with installation of prestashop on godaddy


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...