Hi David,
I have sent a support message to linkshare but you might be able to help.
I used to be able to connect to a data feed using ftp://username:password@example.com/feed.xml.gz to download the entire XML feed for each publisher. I have noticed that this is now not working,
Linkshare also have a subfolder for each publisher which has feeds for each category when I connect to {link saved} then I can download the feed.
Any reason why the top level wouldn't download but the subfolder would? This seems to be a new thing.
I can connect and download using FTP
Thanks
Richard
Hi david,
Still not working unfortunately, I also tried switch to CURL and PASV mode.
The weird thing is that files in the subdirectory are fetching fine.
I cannot get 39613_3525076_mp.xml.gz from top level but can get 39613/39613_3525076_1_cmp.xml.gz
The password and username is the same for both files. Could it be permissions related?
Thanks
RIchard
Hi Richard,
Something rang a bell and I recalled another thread also Linkshare FTP related - please could you try the mod from this comment which sets FTP PASV mode...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi David,
I have tried using CURL and PASV move mentioned above without luck.
It thinks for quite a while and I can see a temp file be created in FTP. It then dissapears and says "ERROR - TRANSFER FAILED"
I have asked linkshare without much luck. They just talk about being part of a program, which I know I am.
The annoying thing is the sub directory works, with the same password and username. Its just that the sub directory has category files and not the full feed.
Thnaks
Richard
Hi Richard,
Please could you post the 2 links again (feed and category file) without your username:password and I'll have another think...
Thanks,
David.
--
PriceTapestry.com
Hi David,
36862 = Merchant
3627115 = My Site ID
This is the top level file (not working)
{link saved}
The subdirectory (working)
{link saved}
In this instance, the 1 in the 2nd file means all categories, so effectively this is the full feed. In most instances there are up to 20 feeds for each category in the subdirectory
I have multiple site ids and 100's of merchants, it used to work.
Can it be hosting related?
Thanks
Richard
Hi David,
A good example is AHAVA (35968)
Main Feed File = {link saved} (111 products)
Category Skin Care = {link saved} (51 products)
Category Bath and Body = {link saved} (53 products)
I can retrieve and extract the 2 category files, seperately. But cannot get the main feed file.
I can download all 3 in FTP or via the browser.
Very weird.
Hi Richard,
The first main link worked perfectly on my test server - please could you drop me an an email and I'll follow up with a test version of the automation library to include additional error information from CURL...
Thanks,
David.
--
PriceTapestry.com
Thanks David.
What information do you need via email? Just admin access details?
Hi Richard,
I shouldn't need access at this stage, just want to reply with the modified library to try;
Cheers,
David.
--
PriceTapestry.com
Hi David,
Was there a solution to this as I too have the same issue with Linkshare
Best regards
Richard
Hi Richard,
The user above was able to transfer the Linkshare feeds successfully using the PHP automation handler instead of cURL. To try this, edit config.advanced.php and change line 43 as follows;
$config_automationHandler = "php";
If that does the trick, double check of course that other feeds from different networks and possibly protocols transfer successfully using PHP mode...
Cheers,
David.
--
PriceTapestry.com
Hi David,
Many thanks, yes it appears to work ok. The only reason for hesitation is that feeds from webgains are not working but I think that is unrelated!
Have a great weekend.
Rich
Hello Rich,
If you are still having issues with feeds from other networks do let me know and I'll check it out further with you of course...
Cheers,
David.
--
PriceTapestry.com
David,
$config_automationHandler = "auto";
Allows Impact radius feeds to download but not linkshare.
$config_automationHandler = "php";
Allows Linkshare feeds to download properly but impact radius ones fail.
cj works either way.
Is there anyway to change this on a per feed basis?
Hi,
"auto" will be selecting "curl" in most cases; so what you could do to override $config_automationHandler by specific feed URL is to edit includes/automation.php and look for the following code at line 16:
$status = "OK";
...and REPLACE with:
$status = "OK";
if (strpos($job["url"],"example.com")) $config_automationHandler = "curl";
if (strpos($job["url"],"example.org")) $config_automationHandler = "php";
...where example.com is the domain from which Impact Radius feeds are served and similarly example.org for Linkshare. Add additional lines if other networks are only working with one or the other...
Cheers,
David.
--
PriceTapestry.com
Hi Richard,
I assume you are using the feed URL in the Automation Tool in which case it is almost certainly because there are characters, probably in the password, that need to be URL encoded.
There is a table of the characters most commonly found in passwords that need to be encoded and the encoding to replace them with in this comment - that should be all it is...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com