Author Topic: Warning: array_rand()  (Read 691 times)

janes

  • Newbie
  • *
  • Posts: 1
Warning: array_rand()
« on: July 06, 2010, 09:24:48 AM »

Just installed AVH Amazon to my Wordpress 3.0 blog


Set up Amazon AWS keys + wishlist + Associate id for amazon.co.uk


When installed plugin into blog I get error  :

Warning: array_rand() etc




I know this has been discussed sometime in the past - has it ever been resolved ???



Peter

  • Administrator
  • Regular
  • *****
  • Posts: 415
    • http://blog.avirtualhome.com
Re: Warning: array_rand()
« Reply #1 on: July 10, 2010, 05:55:52 PM »
It usually means the wishlist is empty. Try emptying the cache, make sure you have no typo's in your wishlist ID.

What is your wishlist ID, that way I could do some debugging as well.
Peter van der Does
AVH Plugins developer

qtec

  • Newbie
  • *
  • Posts: 1
Re: Warning: array_rand()
« Reply #2 on: August 15, 2010, 08:52:23 AM »
Same error here. I want to display the wishlist with the ID HYFSS2D0I66D from amazon.de, but i get the following error.
Code: [Select]
Warning: array_rand() [function.array-rand]: First argument has to be an array in ..../qtec/wp-content/plugins/avh-amazon/2.8/avh-amazon.client.php on line 501
Site: http://qtec.in

Thanks so far :)

Powergeek

  • Guest
Re: Warning: array_rand()
« Reply #3 on: September 05, 2010, 11:42:43 PM »
Make sure your wish list is a public one you created and not the default private list from Amazon.  I had this same problem until I created a public wishlist.

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 415
    • http://blog.avirtualhome.com
Re: Warning: array_rand()
« Reply #4 on: September 06, 2010, 07:42:34 AM »
Thank you jane for this info. I had no idea.
Peter van der Does
AVH Plugins developer