Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Not seeing any picture
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=121
Page 1 of 1

Author:  Anders [ 16. Dec 2005, 09:06 ]
Post subject:  Not seeing any picture

Hello!

I'd like some help please. I've set up a gallery that worked fine on my local server. However at my ISP and can't get the gallery to work. I've set the permissions to 777 for the cache, counter and xml folders, I've checked info.php and everything seems fine (PHP 4.4.1, gd 2.0.28, freelib), print_text is off. Still, the server don't create the thumbnails.

Please have a look at the gallery
#removed_broken_link

and at info.php
#removed_broken_link

I get the following error messages in the error log:
12.16.2005 8:03:20 - ERROR 2 in om/assets/twg/inc/imagefunctions.inc.php, line 208: imagejpeg(): Unable to access ./cache/Blandat_Moab+010.jpg.thumb.jpg
12.16.2005 8:03:20 - ERROR 2 in om/assets/twg/inc/imagefunctions.inc.php, line 208: imagejpeg(): Invalid filename './cache/Blandat_Moab+010.jpg.thumb.jpg'
12.16.2005 8:03:20 - cannot save: ./cache/Blandat_Moab+010.jpg.thumb.jpg
for each picture that should be resized.

The only thing I can think of might be the php memory limit, but alot of the photos aren't that big and should be converted properly.

Any ideas? :roll:

Author:  TinyWebGallery [ 16. Dec 2005, 10:34 ]
Post subject: 

Hi,

Just checked you site.
I seems that php does not allow to write files.

can you delete cache/_rotation_available.jpg?
if you call info.php this file should be created again (I don't know if you have uploaded this file!)
Than you know if you can write files at all.

The files are not that big and you would get another error message anyway.

Maybe your isp can help you here - you can ask him if there are any restrictions with php on this server.
and maybe your php has problems with the relative path starting with ./

go to the image.php line 186:
$small = "./" . $cachedir . "/" . urlencode(str_replace("/", "_", $twg_album) . "_" . $image) . "." . $extension_small;


remove the "./" .

retry. (this only fixes the thumbs - has to be done for the other sizes later as well ...).

The xml files seem to work ... therefore writing should be fine. try the ./ thing. (cache is really 777?)
I'll be on holiday from one week. I can help you next week if i is still not running ...



/Michael

Author:  Anders [ 16. Dec 2005, 11:05 ]
Post subject: 

Hi!

Thanks for the quick answer.

Well, the file '_rotation_available.jpg' wasn't created after i deleted it so I guess I uploaded it. The removal of the "./" didn't do anything either.

Can this have anything to do with PHP being in safe_mode on?

I'll contact my ISP to see whats going on...

Thank you!

Author:  Anders [ 16. Dec 2005, 12:14 ]
Post subject: 

Ok,

I got in touch with the ISP and they said that this was probably due to a security update they'd made recently of PHP and that the specifications of the GD libs had changed in PHP safe-mode on. Something like that. I didn't understand excatly what he meant to be honest. Anyway, it seems that many users have had problems with GD lib with this ISP (www.surftown.se)

If anyone has the same problem or a solution, let me know. If I find somthing I'll post it here...

Author:  Anders [ 16. Dec 2005, 12:19 ]
Post subject: 

Ok,

I got in touch with the ISP and they said that this was probably due to a security update they'd made recently of PHP and that the specifications of the GD libs had changed in PHP safe-mode on. Something like that. I didn't understand excatly what he meant to be honest. Anyway, it seems that many users have had problems with GD lib with this ISP (www.surftown.se)

If anyone has the same problem or a solution, let me know. If I find somthing I'll post it here...

Author:  Anders [ 16. Dec 2005, 12:25 ]
Post subject: 

Sorry for the dubble post!

Acctually I've already found a solution. If anyone has the same problems do this:

1. Open the file inc/imagefunctions.inc.php
2. Locate the line (208)
if (imagejpeg($dst, $small, $compression)) {
3. Insert these two lines before the if-statement
$fh=fopen($small,'w');
fclose($fh);


I've read somewhere that this should be caused by a bug. This solved the problem for me.

Author:  TinyWebGallery [ 16. Dec 2005, 12:53 ]
Post subject: 

Hi,

Great.
I will include this fix in the new version.

Have fun using TWG

/Michael

Author:  guswi401 [ 31. Dec 2005, 15:18 ]
Post subject:  Yepp, solved the problem alright

Great, this solved the problem for me as well. Had a hard time figuring out what it could be in the first place.

/Gustav

Anders wrote:
Sorry for the dubble post!

Acctually I've already found a solution. If anyone has the same problems do this:

1. Open the file inc/imagefunctions.inc.php
2. Locate the line (208)
if (imagejpeg($dst, $small, $compression)) {
3. Insert these two lines before the if-statement
$fh=fopen($small,'w');
fclose($fh);


I've read somewhere that this should be caused by a bug. This solved the problem for me.

Author:  feichtm [ 24. Feb 2006, 00:15 ]
Post subject:  similar problem!

I have a similar problem as stated above:
pictures/thumbnails are only shown partly...

I have checked the tips in the faqs...
- I have set the sile permissions in the directories
- I have 10Meg of memory and the pictures are not that big.
- I have tries the bugfix above - without success

Could you please check my site:
http://feichtm2.cwsurf.de/index.php

info File
http://feichtm2.cwsurf.de/info.php

Thanks,
Matthias

Author:  TinyWebGallery [ 24. Feb 2006, 10:08 ]
Post subject: 

Hi,

The overview pictures from my demo don't even show.
It says that my folder.png is not o.k.
http://feichtm2.cwsurf.de/image.php?twg ... folder.png

Haven't had this problem before.

And i I want to see the missing images and I click on the Link it does only show the link itself and no error message like normally.

You downloaded your version last week I think because the debug file has many errors because I released a old config for a couple of days.

If you like I can send you the actual build of 1.4 - There are small fixes already included (But yours does not fit in anything I've seen yet ...). Please send me an email if you want to try it.

It looks like that all images that are returned by php are not prcessed properly! The images that are shown directly like the thumbs on the thumbspage are fine ...

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/