Menu

#16 Problem with viewing images

open
nobody
None
5
2003-11-21
2003-11-21
Mr. Flibble
No

Hello!
You script is exactly what i was after - uploading,
text editing, and file deleting etc.
However, there is a slight problem with viewing images.
If i click on an image, your pgp frame loads, but i get
an error Warning: getimagesize(): Read error! in
/www/GetPetey/fm.php on line 1360 which equates to
$image_info = getimagesize($path.$pathext.$filename);

the title also says: Viewing "" at 25%
so i guess that the filename isn't getting passed to
function. unfortunately i don't know enough PHP to fix it!

Also, the back button doesn't seem to go up a
directory, it just seems to reload the current directory.

I am running it on SuSE 9, Apache 2.0.46 and PHP 4.3.3

thanks!

Discussion

  • johnny

    johnny - 2003-11-21

    Logged In: YES
    user_id=901098

    i dont have that probelm using it??
    i do have a probelm setting the dir path out side the folder
    where the fm is hosted. what is the correct path to use if
    running apache and php??

     
  • Nobody/Anonymous

    Logged In: NO

    I believe that this is a problem with register_globals being off,
    will look into this.

    lh

     
  • Mr. Flibble

    Mr. Flibble - 2003-12-01

    Logged In: YES
    user_id=169351

    ah, that would explain it. i tried printing those variables,
    and nothing happened.
    according to http://uk2.php.net/register_globals, it changed
    from the default of being on to off in v 4.2.0.
    A note on that page says to use .htaccess files to control
    the setting rather than changing the php.ini file.

     
  • Nobody/Anonymous

    Logged In: NO

    hi,

    if you set the defineroot = 0 there are some coding that have
    left out.

    you have to add all this

    if (isset($_REQUEST['filename'] )) { $filename = $_REQUEST
    ['filename']; }
    else { $filename = ""; }
    if (isset($_REQUEST['cz'] )) { $cz = $_REQUEST
    ['cz']; }
    else { $cz = ""; }
    if (isset($_REQUEST['za'] )) { $za = $_REQUEST
    ['za']; }
    else { $za = ""; }
    if (isset($_REQUEST['mkdir'] )) { $mkdir =
    $_REQUEST['mkdir']; }
    else { $mkdir = ""; }
    if (isset($_REQUEST['dirname'] )) { $dirname =
    $_REQUEST['dirname']; }
    else { $dirname = ""; }
    if (isset($_REQUEST['edit'] )) { $edit = $_REQUEST
    ['edit']; }
    else { $edit = ""; }
    if (isset($_REQUEST['cpmv'] )) { $cpmv =
    $_REQUEST['cpmv']; }
    else { $cpmv = ""; }
    if (isset($_REQUEST['save'] )) { $save = $_REQUEST
    ['save']; }
    else { $save = ""; }
    if (isset($_REQUEST['newcontent'] )) {
    $newcontent = $_REQUEST['newcontent']; }
    else { $newcontent = ""; }
    if (isset($_REQUEST['savefile'] )) { $savefile =
    $_REQUEST['savefile']; }
    else { $savefile = ""; }
    if (isset($_REQUEST['back'])) {$back = $_REQUEST
    ['back'];}
    else{$back = "";}

    Hope it helps.

     
  • Nobody/Anonymous

    Logged In: NO

    You little beauty - thanks for the patch it worked a treat for me.

    Cheers, Y

     
  • Arnout Engelen

    Arnout Engelen - 2005-02-04

    Logged In: YES
    user_id=392382

    This should be fixed in the next version.

     
  • Nobody/Anonymous

    Logged In: NO

    I also have this error!
    mine says:
    Warning: getimagesize() [function.getimagesize]: Read error! in /xxxx/xxxx/slideshow/gallery/fm.php on line 1334

    PLEASE HELP

     
  • Nobody/Anonymous

    Logged In: NO

    i downloaded this today and it has the patch in already but still has an error in viewing the images...

    any ideas?
    chris

     

Log in to post a comment.

MongoDB Logo MongoDB