ZioCan Posted September 7, 2015 Share Posted September 7, 2015 These two files: modules_native_addons.xml (size = 249 KB) must_have_modules_list.xml (size = 102 KB) located in the dir: /prestashop/config/xml of my installation, seems corrupted (truncated) Where can i download a copy them or how can i rebuild them? Link to comment Share on other sites More sharing options...
tuk66 Posted September 8, 2015 Share Posted September 8, 2015 These files are downloaded so try to install again. Link to comment Share on other sites More sharing options...
ZioCan Posted September 8, 2015 Author Share Posted September 8, 2015 I have problem, the installation hangs at 78% (error while installing addons modules) After investigating i found these problem: The installer downloads the addons modules as .zip file, but extraction often fails. This is a real example: module: gamification.zip download ok extract Fail module: blockwishlist.zip download ok extract Fail module: productcomments.zip download ok extract Fail module: sendtoafriend.zip download ok extract ok module: cronjobs.zip download Fail Link to comment Share on other sites More sharing options...
ZioCan Posted September 9, 2015 Author Share Posted September 9, 2015 After a successfully installation, the problems with the XML files are still there. I think there is a problem in the file transfer between addons.prestashop.com and my shop, i think these files are not created during installation but downloaded from addons.prestashop.com. Link to comment Share on other sites More sharing options...
ZioCan Posted September 9, 2015 Author Share Posted September 9, 2015 I tried deleting the two files (modules_native_addons.xml and must_have_modules_list.xml) and i could see that these are recreated after I log-in as admin. But the contents of the files are still corrupted (the files are truncated). Link to comment Share on other sites More sharing options...
ZioCan Posted September 10, 2015 Author Share Posted September 10, 2015 My hosting provider has suggested this change, in the file /classes/Tools.php from: if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) { return @file_get_contents($url, $use_include_path, $stream_context); } elseif (function_exists('curl_init')) { to: /* if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) { return @file_get_contents($url, $use_include_path, $stream_context); } */ if (function_exists('curl_init')) { It works. Link to comment Share on other sites More sharing options...
tuk66 Posted September 10, 2015 Share Posted September 10, 2015 Clever guy. I only wonder why the file_get_contents function fails at his server. 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