Closed (fixed)
Project:
Amazon associate tools
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2006 at 03:37 UTC
Updated:
4 Jun 2006 at 05:34 UTC
Has something changed in the Amazon REST setup? I've not changed the configuration of my drupal site or the amazon modules, and suddenly I'm getting a log stuffed full of the following five errors:
domxml_open_mem(): Space required after the Public Identifier in....
domxml_open_mem(): SystemLiteral " or ' expected in...
domxml_open_mem(): SYSTEM or PUBLIC, the URI is missing in...
domxml_open_mem(): Opening and ending tag mismatch: hr line 7 and body in...
domxml_open_mem(): Premature end of data in tag html line 2 in...
all refer to amazon.php4.inc line 327
Comments
Comment #1
Prometheus6 commentedIt's both the php4 and 5 versions, so something at Amazon has changed today. I'll check...
Comment #2
Prometheus6 commentedSeems they fixed whatever it was from my end. Let me know if you're still having a problem.
Comment #3
ckclarke commentedHmm, no, still getting errors as at 2006-05-08 14:23...
Comment #4
ckclarke commentedI'm also now getting this error when trying to post a node using amazon tools:
Fatal error: Call to a member function on a non-object in /home/virtual/mysite.com/webroot/htdocs/modules/amazontools/amazon.php4.inc on line 196
Comment #5
Prometheus6 commentedOkay, I got nothing. I've checked against every Amazon store, done searches and imports. Nothing.
This is a hint to me that you've modified the code.
Comment #6
ckclarke commentedNope, haven't. As I mentioned in my initial post, nothing had changed in my setup for several days, it was working well, and then suddenly the log started filling up with those errors. That's why I asked if Amazon had suddenly changed things.
I even just downloaded the module again from the drupal site and reinstalled it. Still getting the same errors.
My next thing will be to update to 4.7.0 from the most recent RC, but this seems quite specific to the code in the amazon module itself.
Comment #7
Prometheus6 commentedWhat is your setup?
I've done all I can with the information you've given. Since no one else is complaining, I have to assume your problem is specific to your server. Has your web host changed or upgraded anything? What does php_info() say?
Comment #8
ckclarke commentedI've updated now to 4.7.0, still got the same errors.
I'm running PHP Version 4.3.11, Apache/2.0.53 (Fedora).
I just now added (at line327, where the dom errors are coming up)
echo amazon_get_XML($Amazon_Params);
exit;
And Amazon is returning the following:
Not Found
The requested URL /onca/xml was not found on this server
When someone tries to post an amazon node.
It seems that if Amazon doesn't return well-formed XML the module crashes?
Comment #9
Prometheus6 commentedTHIS is my problem. I cannot conceive of how that url is generated. Is this every search?
Honestly, I'm asking because I'm curious. I think you have to talk to your web host. The code hasn't changed and I can't duplicate your problem.
Comment #10
ckclarke commentedHi,
I know you're not trying to be difficult - neither am I. I'm just a bewildered user with very limited PHP knowledge, and I'm doing my best to give you as much information as I can to help get this nailed on the head. :)
THIS is my problem. I cannot conceive of how that url is generated. Is this every search?
The dom errors I described earlier are happening every visit, actually. I'm not quite sure what you mean about not knowing how the URL is generated - isn't that part of the Amazon REST address?
I did just spot something as I was looking up the exact time the errors started, and that's that my cron jobs, which are run by the poormanscron and is supposed to be triggered by visitors to the site, hasn't run since these errors started occurring. I hadn't spotted that before because the logs have been swamped with the dom error notices, and so you don't notice what is missing as a result.
I'm going to check the poormanscron module node here on Drupal and also issue a support ticket to my web host. Any tips you can give me on what I might ask them re: changes to the server config etc, would be welcome. Unless you give them something specific they always start by replying that you should make sure your computer is on, and plugged in etc. :S
Comment #11
Prometheus6 commentedThis isn't about php knowledge or being difficult. The code didn't change. Amazon didn't change. You didn't do anything. That really limits the possibilities to things I can't affect.
The only connectivity problem that was reported that I could never solve turned out to be a problem with a firewall.
Comment #12
Prometheus6 commented