You are here:  » Importing a gzip feed


Importing a gzip feed

Submitted by Nic0904 on Thu, 2016-02-11 17:28 in

Hi David,

I have tried to import a CJ Affiliate feed, they only use gzip, zip is not an option.

If I set it to unzip the feed fails, or a server issue, is there a way around this, or am I doing something wrong?

All my other feeds use plain text or zip where it is available, it is just one feed that gives me this problem.

Thanks
Dave

Submitted by support on Fri, 2016-02-12 09:48

Hello Dave,

It's possible that your server is running an older version of gzip that requires the -S parameter. In includes/automation.php look for the following code at line 241:

      $cmd = $config_automationUnzipPrograms["gzip"]." -c -d ".$tmp." > ".$tmp.".ungzipped";

...and REPLACE with:

      $cmd = $config_automationUnzipPrograms["gzip"]." -S '' -c -d ".$tmp." > ".$tmp.".ungzipped";

Hope this helps! If still no joy let me know and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com