Images not visible

Forum rules
Support ended: 31.12.2011

Images not visible

Postby Dr_dre » Tue Dec 11, 2007 2:34 pm

Hello,

After installing 0.2.1b on phpbb3.rc7 and setting everything according to the very nice installer. I tried to upload a picture.

I can upload a picture But as sson as i hit Submit.. The screeen goes blank.

The picture is not visible in the album. But the picture is in the gallery/upload directory on the host.

No log file is avail with errors.

Any idea where i went wrong ?
Dr_dre
Posts 10 - 20
Posts 10 - 20
 
Posts: 11
Topics: 4
Joined: Tue Dec 11, 2007 2:31 pm
phpBB.de: Dre

Re: Images not visible

Postby nhdriver4 » Wed Dec 12, 2007 2:05 am

Dr_dre, put the following code on line 435 of upload.php (Right before the SQL queries start) so we can see if it's an image handle issue, or a database issue.

Code: Select all
echo 'Did we get here?';


Try to upload a new image, and tell us if it gave you that message.
nhdriver4
Posts 10 - 20
Posts 10 - 20
 
Posts: 13
Topics: 5
Joined: Sun Nov 18, 2007 2:08 am
phpBB.com: NHDriver4

Re: Images not visible

Postby Dr_dre » Wed Dec 12, 2007 10:07 am

sorry to say But No message appeared :(

i used your idea to iron out the lines where it stops .. and it stops in this part of the code
Code: Select all
      $src = @$read_function(ALBUM_UPLOAD_PATH  . $pic_filename);
      if (!$src)
      {
         $gd_errored = TRUE;
         $pic_thumbnail = '';
      }
      else if (($pic_width > $album_config['thumbnail_size']) || ($pic_height > $album_config['thumbnail_size']))
      {
         // Resize it
         if ($pic_width > $pic_height)
         {
            $thumbnail_width    = $album_config['thumbnail_size'];
            $thumbnail_height    = $album_config['thumbnail_size'] * ($pic_height/$pic_width);
         }
         else
         {
            $thumbnail_height    = $album_config['thumbnail_size'];
            $thumbnail_width    = $album_config['thumbnail_size'] * ($pic_width/$pic_height);
         }
Dr_dre
Posts 10 - 20
Posts 10 - 20
 
Posts: 11
Topics: 4
Joined: Tue Dec 11, 2007 2:31 pm
phpBB.de: Dre

Re: Images not visible

Postby Dr_dre » Wed Dec 12, 2007 10:41 am

Disabling the Thumbnail cache allows me to upload !

but ofcourse no thumbnails are generated.

What are the requirements to enable thumbnail generation ? Is it something that is installed on default or ?

Cheers

Dre
Dr_dre
Posts 10 - 20
Posts 10 - 20
 
Posts: 11
Topics: 4
Joined: Tue Dec 11, 2007 2:31 pm
phpBB.de: Dre

Re: Images not visible

Postby Dr_dre » Wed Dec 12, 2007 11:32 am

Its never wrong to read up on newbie stuff :)

I enabled the GD2 extension and now its works :)


thnx for the help
Dr_dre
Posts 10 - 20
Posts 10 - 20
 
Posts: 11
Topics: 4
Joined: Tue Dec 11, 2007 2:31 pm
phpBB.de: Dre

Re: Images not visible

Postby nickvergessen » Wed Dec 12, 2007 9:59 pm

you should not use php modules which aren't installed lol ;)
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Images not visible

Postby nhdriver4 » Thu Dec 13, 2007 1:08 am

nick, perhaps in the installer, a check could be added along with a message if gd is not detected:
Code: Select all
// (PHP 4 >= 4.3.0, PHP 5)
if(!function_exists('gd_info'))
{
   // Major Catastrophic Error or Alert Message
}
nhdriver4
Posts 10 - 20
Posts 10 - 20
 
Posts: 13
Topics: 5
Joined: Sun Nov 18, 2007 2:08 am
phpBB.com: NHDriver4


Return to Support & Administration

Who is online

Users browsing this forum: No registered users and 0 guests