• Resolved sebrousseau

    (@sebrousseau)


    Dear Robert,

    thank you for this great plugin!
    I have a question about Amazon lookup: since I registered affiliates program to be able to use lookup to add items, I get the Ajax error:0

    Did I do something wrong? (I entered my public and private keys, tag Id and region)

    Thanks in advance
    Sebastien

    https://www.ads-software.com/plugins/weblibrarian/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    Please read this thread:

    https://www.ads-software.com/support/topic/ajax-500amazon-error-solved

    Basically, you need to ask your hosting provider to install php5-curl. This should make things work.

    Thread Starter sebrousseau

    (@sebrousseau)

    Thank you for your support.
    I checked my PHP info and it seems to curl is already installed:

    PHP Version5.4.34
    cURL support enabled
    cURL Information 7.21.0
    Age 3
    Features
    Asynch DNS No
    Debug No
    GSS-Negotiate Yes
    IDN Yes
    IPv6 Yes
    Largefile Yes
    NTLM Yes
    SPNEGO No
    SSL Yes
    SSPI No
    krb4 No
    libz Yes
    CharConv No
    Protocols dict, file, ftp, ftps, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
    Host i486-pc-linux-gnu
    SSL Version OpenSSL/0.9.8o
    ZLib Version 1.2.3.4
    libSSH Version libssh2/1.2.6

    Is there something else to do?
    Thank you

    Plugin Author Robert Heller

    (@robertpheller)

    OK, you have to do some low-level debugging.

    First of all, do you know exactly what operating system your *server* is running?

    Secondly, do you have access to your server’s log files? Specificly the Apache error_log file? (The web server software is Apache, right?)

    The next step is to see what the Amazon AJAX php code is doing. In the location field of your web browser type this:

    https://yourhost.yourdomain/wp-content/plugins/WebLibrarian/AWSXmlGet.php?Operation=ItemSearch&ResponseGroup=Small&SearchIndex=Books&Title=Roadside%20Picnic&ItemPage=1&nocache=148371.90017427094

    Replace ‘yourhost.yourdomain’ with your actual server host name. This *should* result in either a proper XML response or an error message (in your case probably an error message of some sort). The error message will probably not be very informative and we will need to look at the server error log to find the problem. Somewhere near the end of the error log will be reference to AWSXmlGet.php and some PHP error messages. These error messages will tell us what is wrong. I suspect there is some server config error somewhere — *I* am not able to duplicate this error so I can’t debug it on my server — we have to debug it on your server.

    Note: if you get a proper XML response, then the problem is (somehow?) with your web browser.

    Thread Starter sebrousseau

    (@sebrousseau)

    Here are information I found:

    System Linux webm228.20gp.ha.ovh.net 3.10.23-grsec-hosting-build7-web #134 SMP Wed Aug 27 12:51:49 CEST 2014 x86_64

    Here is the 3 lines of Apache Server log file on nov. 28th (it seems not relevant for our case):
    [Fri Nov 28 11:09:06 2014] [error] [client 213.186.33.82] [host pret-immobilierfacile.com] (104)Connection reset by peer: FastCGI: comm with server “/homez.599/pretimmok/www/wp-cron.php” aborted: read failed
    [Fri Nov 28 11:09:06 2014] [error] [client 213.186.33.82] [host pret-immobilierfacile.com] FastCGI: incomplete headers (0 bytes) received from server “/homez.599/pretimmok/www/wp-cron.php”
    [Fri Nov 28 11:09:06 2014] [error] [client 213.186.33.82] [host pret-immobilierfacile.com] FastCGI: An error happend on Fastcgi processing, fallback to CGI

    Here is the Apache web log file for nov 2014: https://app.box.com/s/7hgc8mddqsuqwisw8842

    About getting xml info it seems to be no way:
    I tried to enter complete entire URL and result is “Page not found”
    I tried to the shorter one https://pret-immobilierfacile.com/wp-content/plugins/WebLibrarian/AWSXmlGet.php?Operation=ItemSearch&ResponseGroup=Small&SearchIndex=Books&Title=Roadside%20Picnic and I got same error

    Hope these information will help ??

    Plugin Author Robert Heller

    (@robertpheller)

    Try this URL:

    https://pret-immobilierfacile.com/wp-content/plugins/weblibrarian/AWSXmlGet.php?Operation=ItemSearch&ResponseGroup=Small&SearchIndex=Books&Title=Roadside%20Picnic&ItemPage=1&nocache=148371.90017427094

    (that is ‘weblibrarian’ instead of ‘WebLibrarian’ — I forgot that the wordpress repo convert camel case to all lowercase).

    Thread Starter sebrousseau

    (@sebrousseau)

    This one gives a better result.
    Here is a pdf and php file (don’t know if it is the best format to work on…)

    PDF
    PHP

    Thank you
    Seb

    Plugin Author Robert Heller

    (@robertpheller)

    OK, it looks like the PHP code is doing what it is supposed to do. That leaves the web browser as the source of the problem. What web browser are you using? What happens if you use a *different* web browser? (I know that FireFox *works* — it is what *I* use.)

    Thread Starter sebrousseau

    (@sebrousseau)

    I usually use Chrome on a Mac

    I just tried Firefox and it works!!!

    Thank you a lot for your assistance and your great WP plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Amazon lookup Ajax error: 0’ is closed to new replies.