Jump to content

imh-bradm

Members
  • Posts

    5
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Virginia Beach
  • Activity
    Web development agency

imh-bradm's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hi CarlFavre, I'm having a hardtime finding the newest 1.5 version. The changelog hasn't been updated and I'm not too familiar with sub version. If you wanted to help me find the right files, I'd be happy to test further. This URL is still not working, http://api.prestashop.com/download/localization/15/us.xml so I will assume that the code has been updated to know the call to that XML file was a 404?
  2. @Joe Michael The errors you're receiving are syntax errors, a little different then the other errors listed on this page. Have you made any changes to the code or have you tried by chance adding any extensions? @Dev On Web The problem I was having is that the PrestaShop installation was trying to load an xml file here: http://api.prestashop.com/download/localization/15/us.xml That URL is still returning a 404 error, which is breaking the install. I haven't testing 1.5.0.12, but do you know if any changes regarding that code have been changed?
  3. If you're still getting errors, I would suggest looking at your php error log, which for me was found at: /install/error_log Our errors looked like this: [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parser error : Space required after the Public Identifier in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parser error : SystemLiteral " or ' expected in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 [14-May-2012 13:54:30] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /home/inmoti6/prestashop.inmotiontesting.com/classes/LocalizationPack.php on line 41 Do your error messages look similar?
  4. Hi robkwal, The only change I made was adding this line: unset($localization_file_content); ... to models/install.php around line 401. If you look at the code I pasted initially (above), it should just take a moment to make this change. I hope that helps! Keep us updated and let us know if this helps. Thanks, - Brad
  5. I was working on installing PrestaShop 1.5 today, and was running across the same exact issues that were being reported here. I dug a little through the code and was able to resolve the problem. The problem is that the prestashop installer was trying to download a file from api.prestashop.com: http://api.prestasho...ation/15/us.xml That URL is resulting in a 404 error, so the team at Prestashop will need to look into that further (unless I'm wrong). I resolve the issue by making the following change: line 401 in models/install.php $localization_file_content = @Tools::file_get_contents('http://api.prestashop.com/download/localization/'.$version.'/'.$data['shop_country'].'.xml'); unset($localization_file_content); 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); } Basically, after that first line fails due to a 404 file not found, unset the variable so that the next few lines of code will run and instead grab us.xml locally instead of from api.prestashop.com. I hope that makes sense, I documented the full details on my site here: PrestaShop - Configure shop information - an error occurred during installation Thanks, - Brad
×
×
  • Create New...