• First, thanks Ben for taking on this plugin. It has been one of my favorite that I’ve used and was excited to see that it’s been updated. And thanks for the heads up via your blog today about the API key.

    I recently changed hosting services (now with FatCow) and I can no longer add books. I’m running the newest version of WordPress. The error that I am receiving is:

    Fatal error: Call to a member function on a non-object in /hermes/web03/b615/moo.mawbooks/blog/wp-content/plugins/now-reading-reloaded/amazon.php on line 151

    I read through the other posts in this forum but I’m still a bit confused on what the fix is for this. Any help that you might give would be appreciative.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Please do two things for me:

    1. Publish the system config (PHP version, server, etc.)

    2. Enable debug mode (in the options screen) and try the search again. Copy and paste the “Raw XML” you receive (but please excise the Access Key and Secret Key if they existing in the output).

    Thread Starter mawbooks

    (@mawbooks)

    Okay, I think this is the info you are asking for:

    Platform Type
    Debian

    MySQL Version
    5.0.77

    Perl Version
    5.8.8

    PHP Version
    4.4.8

    raw XML:
    string(8) “raw XML:”
    string(401) “
    <?xml version=”1.0″?>

    <ItemSearchErrorResponse xmlns=”https://ecs.amazonaws.com/doc/2009-03-31/”&gt;

    <Error>


    MissingParameter

    <Message>
    The request must contain the parameter Signature.
    </Message>

    </Error>

    <RequestID>
    fad6135e-11d6-4170-8e1c-3a5ea6794be3
    </RequestID>

    </ItemSearchErrorResponse>

    I can tell you right off the bat that Now Reading Reloaded doesn’t support PHP4, though the errors w.r.t. that are usually different….

    Based on the error message you’re getting, I would suppose one of two things:

    1. You aren’t running 5.1.0.0 (though you appear to be, based on your site’s meta tag)
    2. You haven’t entered a correct Access Key and Secret Key in the options.

    Alternatively, it could be that you have done both 1 and 2, but your PHP4 config is messing the plugin up somewhere.

    I love the plugin! Since I updated my WordPress and the plugin, I am having the same issue as mawbooks. I have updated to 5.1.0.0 and I entered the Access Key and the Secret Key. I get the same error, and my debug information is the same
    My server info is:
    Operating system Linux
    Kernel version 2.6.30.5.dn.am
    Machine Type i686
    Apache version 2.0.63
    PERL version 5.8.8
    PHP version 5.2.6
    MySQL version 4.1.22-standard
    Using WordPress 2.8.4.

    Fatal error: Call to a member function on a non-object in /home/public_html/blog/wp-content/plugins/now-reading-reloaded/amazon.php on line 151

    raw XML:
    string(8) "raw XML:"
    string(401) "
    <?xml version="1.0"?>
    
    <ItemSearchErrorResponse xmlns="https://ecs.amazonaws.com/doc/2009-03-31/">
    
    <Error>
    
    <Code>
    MissingParameter
    </Code>
    
    <Message>
    The request must contain the parameter Signature.
    </Message>
    
    </Error>
    
    <RequestID>
    8b70e3b2-94bb-4a38-b0a1-003d79d5395e
    </RequestID>
    
    </ItemSearchErrorResponse>
    "

    I have the same problem as qdmanx.

    Please download and test the beta version here:

    https://heliologue.com/host/now-reading-reloaded_beta.zip

    I deactivated and removed 5.1.0.0, and installed the beta. When I search for a book I get the following error:
    Warning: query_amazon(/home/qdmanx/public_html/blog/wp-content/plugins/now-reading-reloaded/sha256.inc.php) [function.query-amazon]: failed to open stream: No such file or directory in /home/qdmanx/public_html/blog/wp-content/plugins/now-reading-reloaded/amazon.php on line 15

    Whoops, forgot to include the hashing library.

    I uploaded a fixed version; go ahead and download it again.

    That works great! Thank you for the quick response!

    Thanks for the quick response. It’s not working for me, though. This is what I get with the new beta:

    raw XML:
    string(8) “raw XML:”
    string(535) “
    <?xml version=”1.0″?>

    <ItemSearchErrorResponse xmlns=”https://ecs.amazonaws.com/doc/2009-03-31/”&gt;

    <Error>


    SignatureDoesNotMatch

    <Message>
    The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
    </Message>

    </Error>

    <RequestID>
    a874d0f1-0cd2-4c3c-8b02-c2d303b04f4e
    </RequestID>

    </ItemSearchErrorResponse>

    Here’s my system data:

    Hosting package Platinum Pak
    Server Name box514
    cPanel Version 11.24.5-RELEASE
    cPanel Build 37946
    Theme bluehost
    Apache version 2.2.13 (Unix)
    PHP version 5.2.9
    MySQL version 5.0.81-community-
    log
    Architecture x86_64
    Operating system Linux
    Shared Ip Address 69.89.22.127
    Path to sendmail /usr/sbin/sendmail
    Path to PERL /usr/bin/perl
    Kernel version 2.6.28-10.7.intel
    .E1000E.BHsmp
    cPanel Pro 1.0 (RC1)

    Oh, and here’s the error:
    Fatal error: Call to a member function children() on a non-object in /home3/sdinterv/public_html/jameschoung.net/wp-content/plugins/now-reading-reloaded/amazon.php on line 169

    This may sound like a dumb question, but are your Access ID and Secret Key correct and set in the options page?

    Not a dumb question, but it was in. And I re-cut and pasted them back in again, and still get the same response.

    Ooo — sorry. I looked more carefully and saw that I had added an extra space in the second identifier. All is working now! Thank you so much!

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: Now Reading Reloaded] Fatal error: Call to a member function on a non-object’ is closed to new replies.