You are here:  » Amazon Error Message


Amazon Error Message

Submitted by allanch on Wed, 2015-05-06 12:30 in

Hi David!

I hope you're been well. I get an occasional error message concerning Amazon searches.

Warning: file_get_contents() Service Unavailable

The prices display okay but this message pops up. Is there a way to surpress this msg? Thanks

Allan

Submitted by support on Wed, 2015-05-06 12:35

Hello Allan,

Sure - in the plugin file api/pto_api_amazon.php look for the following code at line 167:

  $xml = file_get_contents($url);

...and REPLACE with:

  $xml = @file_get_contents($url);

The "@" prefix in front of the call will suppress the error message.

Cheers,
David.
--
PriceTapestry.com

Submitted by allanch on Wed, 2015-05-06 12:40

Wow, that was quick! Will do that. Thanks again!