Forums

[Plugin: NextGEN-ImageFlow] getimagesize error: URL file-access is disabled (3 posts)

  1. AndrewRH
    Member
    Posted 10 months ago #

    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/36/d183424680/htdocs/wordpress/wp-content/plugins/nextgen-imageflow/lib/functions.php on line 92

  2. AndrewRH
    Member
    Posted 10 months ago #

    Page with that error message:
    http://www.reeves-hall.net/nggallery/page-2071/images/

    I am using WP 2.7 and NextGen 1.0.2 and NextGEN ImageFlow 1.1

    Is actually two messages per photo in the gallery:

    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the
    server configuration in /homepages/36/d183424680/htdocs/wordpress/wp-content/plugins/nextgen-imageflow/lib/functions.php
    on line 92
    
    Warning: getimagesize(http://www.reeves-hall.net/wp-content/gallery/2008-06-corfu-scenes/ARH20080607-2393 (Large).jpg)
    [function.getimagesize]: failed to open stream: no suitable wrapper
    could be found in /homepages/36/d183424680/htdocs/wordpress/wp-content/plugins/nextgen-imageflow/lib/functions.php
    on line 92

    ~Andrew~

  3. silencedmessage
    Member
    Posted 9 months ago #

    Hi Andrew,
    I was facing a similiar problem. I only had the second message, and am not much of a programmer, but this is what worked for me. Credit to the author of the plugin for the solution.

    In nextgen-imageflow/lib/functions.php you currently have this:

    foreach ($pictures as $picture) {
        $image = $siteurl.'/'.$picture->path.'/'.$picture->filename;
        $size = getimagesize($image);
        $width = $size[0];
       $height = $size[1];

    You should change it to this:

    foreach ($pictures as $picture) {
        $image = $siteurl.'/'.$picture->path.'/'.$picture->filename;
        $img = 'ABSOLUTE PATH TO WP/'.$picture->path.'/'.$picture->filename;
        $size = getimagesize($img);
        $width = $size[0];
       $height = $size[1];

    Change ABSOLUTE PATH TO WP to the correct path, in your case I'd assume:
    /homepages/36/d183424680/htdocs/wordpress/

    Hopefully this helps.

Reply

You must log in to post.

About this Topic