• Resolved alanzych

    (@alanzych)


    I’ve installed the most recent version of the plugin and I’m getting a strange error when I try to search based on an ISBN or title.

    I get several screens full of the following

    Warning: pack() [function.pack]: Type H: illegal hex digit N in ../wp-content/plugins/now-reading-reloaded/amazon.php on line 27

    and then a final line reading

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

    Any idea what could be going wrong?

    https://www.ads-software.com/extend/plugins/now-reading-reloaded/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’ve heard of this error once before, but was never able to tie it to a particular cause. Can you tell me your relevant software versions (PHP version, esp.)?

    Thread Starter alanzych

    (@alanzych)

    I’m hosted on 1and1 and unless forced by .htaccess they run php4 so I’ve added an .htaccess at the root to force php5 and the server is running Apache and MySQL 5

    If it helps at all I’ve also tried to get the “now watching” fork of the plugin running and it has the exact same problem when I try to search Amazon.

    Shot in the dark here, could something be wrong with my AWS keys?

    Many Thanks

    It’s possible, although this appears to be a flaw with the function, and not an error response from Amazon.

    Do you know which version of PHP5 you’re running?

    An easy way to find out is to make a file test.php which contains only <?php phpinfo(); ?> and access it through your web browser. That should tell you the version.

    Thread Starter alanzych

    (@alanzych)

    Thank you!

    I created the test.php file and what came up initially was showing PHP4 which is odd because I have AddType x-mapp-php5 .php & AddHandler x-mapp-php5 .php in a .htaccess file.

    It turns out that I wasn’t as careful as I should have been when uploading the .htaccess file. I didn’t place it in the root of the site.

    So now with the correct .htaccess file forcing PHP5 everything is working beautifully.

    Sorry to have wasted your time.

    Thanks for your great work.

    Alan

    Hmm, some people with PHP4 experience no problems (I think) with this function.

    In any case, I think the future of the plugin is going to be PHP5-only. I’ve run into far too many PHP4 problems, and don’t have a good environment to test against it. Hopefully WordPress itself will do it soon, too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Now Reading Reloaded] Warning: pack() [function.pack]: searching an ISBN’ is closed to new replies.