You are here:  » Cannot Parse Tradedoubler Voucher Code Feed


Cannot Parse Tradedoubler Voucher Code Feed

Submitted by NiceGuyEddie on Thu, 2014-04-03 15:16 in

Hi,

I am having some problems parsing a voucher code feed from Tradedoubler. When trying to register the feed, all the data appears in one field, making it impossible to parse.

Is it a problem with just my installation of PT or is this the same for others? If so, do you have a solution please? :)

http://dev.tradedoubler.com/vouchers/publisher/

Cheers

Eddie

Submitted by support on Thu, 2014-04-03 15:23

Hi Eddie,

Could you let me know the installation URL and filename of the voucher code feed as saved in your /voucherfeeds/ folder (I'll remove before publishing your reply) and I'll download it to my test server and check it out for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Thu, 2014-04-03 17:09

Hi David,

Here is the url for the voucher code feed in question:

{link saved}

Cheers

Eddie

Submitted by support on Thu, 2014-04-03 17:13

Hi Eddie,

Whilst I can see the XML content within the feed, it appears to be interspersed with some random data so I think the download may have failed - possibly just a transient issue.

Please could you refetch the feed and see if that resolves the problem, otherwise, if you could let me know the actual source URL that you are using (I'll remove before publishing your reply) I'll give that a go for you

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Thu, 2014-04-03 20:20

Hi David,

It's strange. When I view the voucher feed url in a browser it returns formatted xml but when I import the same url into my PT installation it gets corrupted.

Could it be that there are some characters in the feed that break it on import?

Here is the url for my feed:

{link saved}

Cheers

Submitted by support on Fri, 2014-04-04 09:30

Hi Eddie,

The link from source worked fine on my test server, using the Automation Tool to fetch the feed, with both "php" and "curl" as the handler ($config_automationHandler in config.advanced.php).

Are you using the Automation Tool to fetch the feed to your /voucherfeeds/ folder? If not, can you describe the method you're using and i'll see if I can see what's going on...

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Fri, 2014-04-04 13:49

HI David,

I changed the $config_automationHandler to "curl" and t is now importing the voucher code feed with no problem.

Strange that the problem occurred with the TD voucher code feed when all other feeds were imported without problems using "php" as the $config_automationHandler

Cheers

Eddie