Author Topic: Shortcode stuck in recursive search?  (Read 1137 times)

JB

  • Guest
Shortcode stuck in recursive search?
« on: June 16, 2010, 07:52:51 AM »
Hi Peter,

I'm looking to implement a page on my blog (www.binary-organism.com) to display my wish list - yours seems to be the only plugin with decent support and a recent release schedule... plus a myriad of features.

I've installed the plugin (automatically via the wordpress plugin search - reporting version 3.3.1) and changed the settings to point to my wishlist ID with my key etc.

From looking at http://blog.avirtualhome.com/2008/12/05/show-your-christmas-list-on-your-blog/ I see I need to use the shortcode box to enter a few options... when I scroll down to the shortcode box I see it "Searching" and it just keeps searching and searching. Clicking "ASIN" yields no result - just takes me back a page...

I've attempted to change my settings but this doesn't seem to have helped. I've de-activated the plugin and activated again to now avail.

Any pointers?

Cheers,
JB

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Shortcode stuck in recursive search?
« Reply #1 on: June 16, 2010, 08:41:41 AM »
The "searching" is actually a bug, it's just a animated gif being displayed which shouldn't be displayed when you go to the page the 1st time around.

My Christmas list shortcode is:
[avhamazon wishlist="FK26T6RYR3Q" asin="all" linktype="pic-text" locale="US"]

You can use the following options in the shortcode

  • asin
    ASIN can have the following values:
    The ASIN of the item you want to display.
    all to display all the items from the given wishlist.
    random to display a random item from the wishlist.
  • locale
    US/CA/DE/UK/FR. If not given it defaults to the locale set up in the administration page.
  • linktype
    text    : Only show the text of the item that is retrieved
    pic    : Only show the picture of the item that is retrieved
    pic-text   : Show a picture with a caption of the item that is retrieved
  • wishlist
    Wishlist ID. Use this in combination with the ASIN values all or random.
  • picsize
    The size of the picture. small/medium/large
  • col
    Amount of columns to use. Default is 1.
  • sort_order
    DateAdded/LastUpdated/Price/Priority

Let me know if you need more help.
Peter van der Does
AVH Plugins developer

JB

  • Guest
Re: Shortcode stuck in recursive search?
« Reply #2 on: June 16, 2010, 08:31:11 PM »
Ok - thanks Peter. I was over complicating things and didn't think to just enter the short code and ignore the Short Code box.

I imagine my next problem is an easy one:

avhamazon error:http_request_failed - Could not open handle for fopen() to http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=<snipped this out>&AssociateTag=avh-amazon-20&Condition=All&IdType=ASIN&Operation=ItemLookup&ResponseGroup=Medium&Service=AWSECommerceService&Timestamp=2010-06-17T00%3A27%3A55Z&Version=2009-10-01&Signature=GSbYwwasBDu75a8V3hmY%2BG3QNrxh41mQbRX9XAUA%2BZ8%3D

as far as I'm aware my key/secret key/wish list ID is correct.

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Shortcode stuck in recursive search?
« Reply #3 on: June 17, 2010, 08:38:48 AM »
Looks like you can't open a link from the server you are running your blog on.
Do you have problems with automatic updating of the plugins in WordPress?
Peter van der Does
AVH Plugins developer

JB

  • Newbie
  • *
  • Posts: 4
Re: Shortcode stuck in recursive search?
« Reply #4 on: June 18, 2010, 01:49:01 AM »
mmmmmmmm - I don't have any problems with updates no.

I have root access to the host - are there any tests I can run from the shell level?

I thought it might be caused by me doing a 'preview' and not an actual publish - but I've published with the same shortcode to no avail. Might give it a go with you wishlist shortcode to rule out my code being faulty.

Any other ideas?


JB

  • Newbie
  • *
  • Posts: 4
Re: Shortcode stuck in recursive search?
« Reply #5 on: June 18, 2010, 01:52:07 AM »
AH HA! Making progress - if I browse directly to the URL that is being thrown Amazon provides something helpful:

<ItemLookupErrorResponse xmlns="http://ecs.amazonaws.com/doc/2009-10-01/"><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.</Message></Error><RequestID>061ea39e-9368-4f60-a2cd-d99b966ac569</RequestID></ItemLookupErrorResponse>

JB

  • Newbie
  • *
  • Posts: 4
Re: Shortcode stuck in recursive search?
« Reply #6 on: June 18, 2010, 01:58:59 AM »
 :-[

embarrassing. I had a single white space appended to my secret key.

Now at least I am seeing:
"Item with ASIN doesn't exist"

Incorrect wish list id? Something else basic I am missing.

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Shortcode stuck in recursive search?
« Reply #7 on: June 18, 2010, 10:11:08 AM »
Try emptying the cache in Tools -> AVH Amazon. If that doesn't help:
Are you using the shortcode with an ASIN, or wishlist, if you use wishlist how are you displaying items, random or all?
Peter van der Does
AVH Plugins developer

JB

  • Newbie
  • *
  • Posts: 4
Re: Shortcode stuck in recursive search?
« Reply #8 on: June 19, 2010, 04:43:32 AM »
Sorted! Clearing cache was the trick. Appreciate the assist.

Pretty nifty little plugin.

Cheers,
JB