Forums

Link Library
No own images are generated (5 posts)

  1. csigncsign
    Member
    Posted 11 months ago #

    Hi,

    I use the thumbshots-images. But the annoying thing for months is, that I have always this "coming soon"-image.
    All solutions in this forum failed.

    If I use the option "generate thumbnails and store locally" I get the error

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /.../wp-content/plugins/link-library/link-library.php on line 602

    and no images are generated.

    It's really hopeless and looks really not good, if I only have a coming soon image with my link list for month :-(

    I do had uploaded own images with each link - but when I deactivate "thumbshots", then I have only a blank box instead of any image.

    My blog:
    http://tinyurl.com/67fc9zu

    http://wordpress.org/extend/plugins/link-library/

  2. Yannick Lefebvre
    Member
    Posted 10 months ago #

    Hi, and sorry for the late reply. The first thing to see would be if you can get file access activated on your site to be able to store the files using the generation button.

    Now, when you say that you uploaded your own images and deactivated thumbshots, could you see the path to these images in the link editor?

    Could you potentially give me access to your site admin page so I could see what is happening? You can send it to me to my contact form on http://yannickcorner.nayanna.biz. I would need to know the path where you uploaded the images.

  3. pascaldaniela
    Member
    Posted 8 months ago #

    Hi csigncsign,

    probably you resolved your problem, but I decided to post a solution here anyway, because I might be helpful for others and maybe Jack could implement it in his next release ...
    Solution for the "file-access is disabled in the server configuration" problem, which seems to be caused by a restrictive server-side php configuration.
    1. Create a file with the following code and save it on your server as wp-includes/yourcurlinc.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    2. Open link-library.php, go to line 651, and replace file_get_contents with curl_get_contents
    3. add in the same file, after the header (line 36):
    require_once(ABSPATH . 'wp-includes/yourcurlinc.php');
    4. Save and upload the modified file to your server.
    That's it, on my server the "Generate Thumbnails and Store locally" button worked perfectly after these modifications.

    Pascal

  4. Yannick Lefebvre
    Member
    Posted 8 months ago #

    Hi Pascal,

    I can definitely look at including this in the plugin. However, your code contents for the yourcurlinc.php file is not part of your post. You need to use pastebin as mentioned.

  5. pascaldaniela
    Member
    Posted 8 months ago #

    Hi Jack, thanks for your reply. You're really doing a good job with this useful plugin.
    Sorry for not having read the forum rules :)
    So here we go with the curl code for the above include file:
    http://pastebin.com/DJSXbscR
    Hope this works now. As I understand, the rejection of file_get_contents with an external source comes from a server side disabled allow_url_fopen php directive, which seems to be security standard for php5.2.
    I've got another issue with Thumbshots.com. On their site, they ask for inclusion of this "Activation Code" to make dynamic thumbshots work: <a href="http://www.thumbshots.com" title="Thumbnails Screenshots by Thumbshots">Thumbnail Screenshots by Thumbshots</a>. Could this be a reason for the "Image coming soon" problem?
    Anyway, I included it in my footer, with a nasty display: none css marker, because I have my credits on another page. I'll tell you about the results.
    Btw, my site's (unfinished) link-library implementation is here: http://www.observatorioindigena.org/enlaces/.

    Keep going,
    Pascal

Reply

You must log in to post.

About this Plugin

About this Topic