• Resolved remotesocket

    (@remotesocket)


    I am using WP BookList on my site. The book covers are not showing up after adding ISBN 13 to two books just in case the first was no good. I’ve cleared cache. Tried it on your demo website, it was successful.

    PHP Ver: 7.0.21
    WP Ver: 4.8.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Evans

    (@forwardcreation)

    Determined that the issue was a combination of server settings not allowing the PHP file_get_contents() function to work properly for external sites, and Kindle/eBook support.

    Thread Starter remotesocket

    (@remotesocket)

    Author, Could you please give me an insight on how you came to this conclusion so I can forward the issue to my sys admin?

    Thank you.

    Plugin Author Jake Evans

    (@forwardcreation)

    Sure,

    So sometimes (although this usually isn’t the norm) a hosting company will disable or otherwise restrict the usage of some PHP functions, like the file_get_contents() function. Basically, the file_get_contents() function is a way for a script/program to contact an outside resource and receive information back from that resource (such as book info from Amazon). There are other alternatives to the file_get_contents() function however, such as the PHP cUrl() function. This is how I resolved your issue – I switched out the file_get_contents() function for the cUrl function().

    I determined that the file_get_contents() function was to blame by trying to view the raw results from the file_get_contents() function call – and there was none. Then I switched to using cUrl and I received the appropriate response I was expecting.

    It’s not that anything is broken or wrong, its’ just that your hosting company (or your company/employer?) has things configured a bit differently (also, as a little technical aside, sometimes the file_get_contents() function can work for retrieving local information and resources, but still fail when trying for external info and resources from a different domain/URL, such as in your case – all depends on how things are configured server-side).

    Clear as mud? Hope this makes some kind of sense!

    Thanks again for using WPBookList!

    -Jake

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Book Cover won’t update’ is closed to new replies.