Support » Fixing WordPress » [Plugin: NextGEN-ImageFlow] getimagesize error: URL file-access is disabled

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AndrewRH

    (@andrewrh)

    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~

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN-ImageFlow] getimagesize error: URL file-access is disabled’ is closed to new replies.