Closed (won't fix)
Project:
Amazon associate tools
Version:
5.x-1.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2007 at 00:16 UTC
Updated:
17 Sep 2008 at 21:35 UTC
I have 2 different drupal sites, one 5.0 and one 5.1, and on both when I go to create content -> amazon node, I get the exact same error on line 195.
Fatal error: Call to a member function on a non-object in /home/celebcom/public_html/modules/amazontools/amazon.php4.inc on line 195
Comments
Comment #1
jt6919 commentedI get this error on 6 different drupal 5.x installs (on different domains) now. This is really critical - I can't add any amazon nodes at all. Anyone have any info??
Comment #2
jt6919 commentedstill no responses and I have checked everything. does anyone have any ideas?
Comment #3
9802008 commentedHi There
I am experiencing a similar problem in 4.7.2 - except that adding a book sometimes works, and other times it gives the error message: Fatal error: Call to a member function on a non-object in /home/alternat/public_html/site/modules/amazontools/amazon.php4.inc on line 198
I have the latest version of amazontools installed: http://ftp.osuosl.org/pub/drupal/files/projects/amazontools-4.7.x-1.3.ta...
The problem appears to be with curl in function amazon_get_XML($Amazon_Params) line +- 300. This function is supposed to return XML from Amazon in the string $AmazonXML. However it is returning an empty string.
I have replaced amazon_get_XML with the following code to retrieve the xml (uses fopen instead of curl):
It still bombs out when trying to connect to Amazon which makes me think it is a problem with the server.
Comment #4
jt6919 commentedI don't know how it could be a problem with the amazon server, since when you get the error, you reload, and then you get the second error, but sometimes you get the picks from amazon with checkboxes to choose from. Then of course, when you go to choose any of them to add you get the error again.
What I really don't understand is how we haven't gotten any responses from anyone willing to help or with similar problems. Obviously people are using this every day without problems. But I have 5 different Drupal 5.x installs now and this doesn't work on of the different domains at all. I have different themes, a little bit of variation on the modules, and both Curl and Domxml are installed with php 5.2.6.
I just don't get it...I would love to get any kind of help with this.
Comment #5
jt6919 commentedI'm beginning to think this module just doesn't work anymore (connecting to Amazon)....it doesn't work in any of my sites at all, different installs and drupal versions, etc.
Is anyone maintaining this module anymore? There haven't been any response from any maintainers in a very long time...any help at all would be appreciated.
thx!
Comment #6
csc4 commentedJust a fellow user - haven't seen this problem so not sure if I can help - except to confirm that the module is working for me but as I'm Windows PHP5 I'm not sure that helps much.
Just a few thoughts - are all the Drupal installs on the same box? if so it would probably suggest a CURL/network problem - if on different boxes then what else is common apart from Drupal?
Have you tried connecting from the box to amazon at the time the problem happens?
Comment #7
wayland76 commentedCurl removing patch: http://drupal.org/node/155378
Comment #8
MGParisi commentedNo longer supports 4.X! Sorry, but I cant test this patch...