Module not working.
when pressing "test" got error:
warning: Invalid argument supplied for foreach() in /home/content/T/o/m/modules/a/amazon/amazon.module on line 242.

tried different afiiliate ID's, differnt ASIN - no effect

Comments

eaton’s picture

warning: Invalid argument supplied for foreach() in /home/content/T/o/m/modules/a/amazon/amazon.module on line 242.

Just tested the same feature and it's working fine on this end -- can you include any additional information about your server setup (PHP version, etc.)? What text are you entering into the Test screen's textfield?

eaton’s picture

Status: Active » Postponed (maintainer needs more info)
tomceek’s picture

File system Writable (public download method)
GD library bundled (2.0.34 compatible)
MySQL database 5.0.45
PHP 5.2.5
PHP memory limit 64M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache
drupal 6.2

I have entered ASIN code from amazon product page (tried different numbers- the same issue)

bomarmonk’s picture

Same problem. This module (beta 5 in my case) just will not work. I run the test and I get "warning: Invalid argument supplied for foreach() in /home/.muckl/mysite.com/sites/all/modules/amazon/amazon.module on line 272." I have tried different versions of this module, uninstalling, reinstalling, clearing my cache, and various patches that are still in the patch que (I even tried switching browsers in case it was an issue with my browser cache). Amazon just will not work. Any ideas why this module generates this warning instead of retrieving the Amazon data? I did upgrade from Drupal 5 and I previously had the amazon tools module installed (which has now been removed). I have MySQL, 5.0.67 PHP 5.2.6, and Drupal 6.9. I am currently trying the regular Beta 5 of this module with the patch here http://drupal.org/node/338097. I have tried Beta 3 and Beta 5 without patches, but to no avail. Any help would be greatly appreciated!

rfay’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I'm going to close this for now, as it seems to work in many different environments.

Of course, the standard advice applies:

1. Disable the module
2. Uninstall the module
3. Remove the module
4. Look in the database for any tables previously owned by amazon and remove them.
5. reinstall.