Discussion
Can't generate thumbnails(back to index)Hi folks..
I just installed folderblog on my winxp home webserver running networkactiv web server software.
For some strange reason, the webpage generates ok, but there are no thumbnails. When I look at the thumbnails folder its empty.
Here's a link so you can see what it looks like:
http://blitzautomatik.myphotos.cc/photoblog/fb.php
I've tried changing the permission on the folders, but winxp doesn't support the unix chmod command.
Please help!
posted by
sammy on 11 Nov 05 at 4:42 PM
oh yeah, I've also created all the required directories (thumbs, comments, etc)
posted by
sammy on 11 Nov 05 at 4:44 PM
I presume your server is linux/apache but you should find out.
You need to set the permissions on the folder on the server -- it can't be set before you upload from Windows. To do this, you need to access the folder properties from the server -- more tips depend on what software you use to connect to server, but really you should check the help files or web documentation for your software before getting help here. Or just search Google.
In my case, 755 works fine, but it depends on how php is running, whether it is as an apache module or cgi -- because this changes who the identity of php as ww or as the your user, who would also be the owner of the folders you create and hence what permissions are required.
If it doesn't work with permissions set to 777, then it may be a problem with your file names - you really shouldn't have all those spaces in there, which could be causing the problem and you should test a simple image file name like picture.jpg to find out.
I'd also recommend you resize your photos before uploading them. I'm going to be working on an extension for folderblog to do this automatically but until then, you could use the code described in the post "resizing photos" --if you have any comfort in modifying the php of folderblog.
See http://www.zzee.com/solutions/unix-permissions.shtml for more info on unix permissions.
posted by geoff on 11 Nov 05 at 6:01 PM
thanks for the reply, Geoff.
My server is actually my winxp machine running a web server software package called: networkactiv
http://www.networkactiv.com/WebServer.html
This does not require linux/unix and access the file structure right on my desktop.
I'm not sure if it's a permissions issue since it was able to generate comment files in the photos folder.
I'm running php 5.0.4.
I tried a "proper" photo filename and that didn't help either.
I will resize my photos, but I want to make sure I can get folderblog working before i proceed.
If you have any other suggestions, please let me know!
thanks again!
sam.
posted by
sammy on 11 Nov 05 at 8:48 PM
my other tip would be to check your fb_settings.php for the name of the thumbnails folder (it's in a group at the bottom) and ensure it matches the name you're using.
Ah..and I just thought of another more likely solution: have you got gd enabled with your php installation?
Check phpinfo(); if you're not sure.
posted by geoff on 12 Nov 05 at 12:04 AM
Hi Geoff.
Checked the fb_settings.php and verified that the folder names are correct.
I found that folderblog is able to create the comment files into the photos folder, it just can't do the thumbs for some reason.
What is gb?
thanks!
sam.
posted by
sammy on 14 Nov 05 at 9:04 AM
gd is a graphics library that is necessary to create the thumbnails.
posted by
ikue on 14 Nov 05 at 1:00 PM
sammy, try creating a test page named gdtest.php and put the following code in it:
<?php
echo 'Here is your gd info:';
var_dump(gd_info());
?>
I'm not sure what it will say, if anything, if you don't have gd enabled.
If you need to configure php5 with gd enabled on winxp, search for these terms: [gd installation php5 winxp]. I know nothing about doing that setup.
posted by geoff on 14 Nov 05 at 4:34 PM
Post a Reply:
(back to index)