Jump to content

Corrupted XML files


Recommended Posts

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) :wacko: 

 

Where can i download a copy them or how can i rebuild them?

Link to comment
Share on other sites

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  :blink: 
module: productcomments.zip download ok extract Fail  :wacko: 
module: sendtoafriend.zip download ok extract ok  :rolleyes:
module: cronjobs.zip download Fail  :angry:

 

Link to comment
Share on other sites

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

 
 
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

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. B)

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...