Closed (fixed)
Project:
Amazon associate tools
Version:
4.6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2006 at 17:11 UTC
Updated:
15 May 2006 at 17:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
heine commentedAmazon CVS doesn't work on Drupal 4.6 because it calls functions specific for Drupal 4.7
Comment #2
amok commentedI guess I should have figured that. But when I use amazontools 4.6 I get this error after filling out the form to search:
Fatal error: Cannot access undefined property for object with overloaded property access in /home/blogc2/public_html/modules/amazontools/amazon.php5.inc on line 187
CURL & DOMXML are enabled and I am using Drupal 4.6.6, PHP 5.0.4 & MySQL 4.1.14-standard
Comment #3
Prometheus6 commentedAre you searching from search/amazon or admin/amazon_import?
Comment #4
amok commentedThat error occurs with both, plus when I try to add an amazon node, review, etc.
Comment #5
Prometheus6 commentedOkay, you've got a different kind of situation going on.
With PHP5, the DOM XML module is depreciated...not shipped in fact. In its place the DOM extension is enabled by default. They are not compatible.
The difference between amazon.php4.inc and amazon.php5.inc is the former uses DOM XML to implement its functions and the latter uses DOM. amazon.module checks the php version and uses it to decide which to include. If you really have DOM XML enabled with PHP5 (more than possible) renaming amazon.php4.inc to amazon.php5.inc should do it.
Comment #6
amok commentedThanks for the reply & the help Prometheus6:
I renamed amazon.php4.inc to amazon.php5.inc and this error occured.
Fatal error: Call to undefined function: domxml_open_mem() in /home/blogc2/public_html/modules/amazontools/amazon.php5.inc on line 313
Comment #7
Prometheus6 commentedTry this.
I've worked a lot of code since that module was branched. The attached file is where AAT was when the Form API reared its ugly head.
Comment #8
amok commentedOk,
I reinstalled everything and ran it as is and got:
Fatal error: Cannot access undefined property for object with overloaded property access in /home/blogc2/public_html/modules/amazontools/amazon.php5.inc on line 199
I also tried re-naming php4.inc to php5.inc again:
Fatal error: Call to undefined function: domxml_open_mem() in /home/blogc2/public_html/modules/amazontools/amazon.php5.inc on line 327
Thanks again for the help.
Comment #9
Prometheus6 commentedI can't duplicate this at all.
You're going to have to tell me what you're searching for. Your query isn't returning any items, according to the error message. If you're searching for books and haven't modified the code then it will be a difference between our PHP versions...I'm running 5.1.2.
Comment #10
amok commentedThank you for the help. I'll try and keep plugging away at it.
Comment #11
Prometheus6 commented