warning: implode() [function.implode]: Bad arguments. in /home/www/drupal-5.3/sites/all/modules/asin/asin.module on line 206.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | implode-error.patch | 1.29 KB | oadaeh |
| #3 | fix_implode.patch | 903 bytes | curtisc@drupal.org |
warning: implode() [function.implode]: Bad arguments. in /home/www/drupal-5.3/sites/all/modules/asin/asin.module on line 206.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | implode-error.patch | 1.29 KB | oadaeh |
| #3 | fix_implode.patch | 903 bytes | curtisc@drupal.org |
Comments
Comment #1
robbt commentedI noticed that this worked with the Amazon Nodes content type, but it doesn't work for just adding the ASIN field to a content type and typing in the isbn. It will show the image and the price but it doesn't show the author, but displays this error.
Comment #2
jo1ene commentedI am also having this problem. I didn't when I first installed and started using the module, but I appear to have it now. I will try to track this down.
Comment #3
curtisc@drupal.org commentedThe problem is because the implode function in theme_asin_field is using the wrong variable. The code right now says the following:
implode(', ', $asin->author)
But that should really be this:
implode(', ', $product->author)
There is no $asin variable in this function and it looks like the latest commit broke this. I've attached a patch to fix it.
Comment #4
Cory Goodwin commentedThis patch work perfectly. Thank you curtisc.
Comment #5
conniec commentedMany thanks curtisc! You've made my day!
Connie
Comment #6
oadaeh commentedActually, there are two places in that line with the wrong variable name. My attached patch handles them both. My patch was created against DRUPAL-5, but applies cleanly to 5.x-1.4.
(I did not change the CSS class name of asin-author, which doesn't appear to be used anywhere, but then, neither is product-author.)
Comment #7
oadaeh commentedThis is a duplicate of http://drupal.org/node/182412.