thumbs not displaying! thumbs not displaying!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

thumbs not displaying!

Started by blueblue, May 12, 2005, 05:04:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blueblue

Hi there... greetings and respect for all the work done on a fantastic project  :-*

This is the second or third time I have used coppermine (usually no problems) I am no expert but not a coding novice either. However, I have a problem I just can't seem to fix and have burned out looking over the board - but found no similar problems.

I am confident that the permissions (chmod) are correct (but prepared to conceed that one more check will do no harm). All seems in order with the php and GD intallation except for the one feature that the server has disabled - proc_open, any advice welcome on that one. Details from the debug below...


==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.15-log
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.13
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | proc_open | proc_open
file_uploads | On | On
include_path | .:/usr/local/share/pear | .:/usr/local/share/pear
open_basedir | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/lib/php:/usr/local/mysql/bin:/usr/local/share/pear:/pub/home/gracex77 | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | gracex77@valuehost.co.uk | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================

server system ......... FreeBSD 4.8-STABLE #0: Mon Apr i386

I use both Firefox 1.3 and MS explorer (firefox mainly)

The actual installation of Coppermine was a dream, inc the mysql etc. The gallery is running well and correctly except for the fact that the thumbs and the intermediate picture do not display  ??? The system is generating the thumbs and mid sized picture and placing them in the correct folder. I have verified this by accessing the folders on my server via my FTP client (flashFXP) and I can view the results (all three images, which are perfect) via the FTP and Fireworks.

The main (full sized picture) displays with no problems at all. This can be effected by clicking the (broken link) image displayed where the thumb etc. should be. So I am guessing that the problem is not a permissions issue!

I have checked the path (via right click - properties) from the place holder for the thumbs and all seems to be correct - the path should lead to an image which is most certainly present and correct in the folder.

So you see I am rather stumped! I have even tried removing all traces of Coppermine from the server and reinstalling it (including removing the dbase and creating a new one.

I stress again that everything else is working perfectly, the thumbs are being generated correctly and the links displayed in the albums ... it is just that the thumbs and mid-size images are not displaying.

Any ideas - suggestions - help would be appreciated and thanks again for a great picture gallery - I am sure that the problem will turn out to be something small which I have overlooked!







Abbas Ali

A link to your site will be good :).
Chief Geek at Ranium Systems

blueblue

hi there

Thanks for the reply!  ;)

http://wed2music.co.uk/wedgal/

Sorry to be a bit slow with the reply... been away for a few days  8)

To add to the information... the url above leads to a fresh install! the third I have put on this server. I did this just to be on the safe side and double, nay tripple checked the chmod / permissions of each file / folder individually. I am as sure as I can be that they were all correct at the time of install, this was done before running the internal confiq utility. I even erred on the safe side and set everything to 0777! plan to change them later.

The situation remains the same ... exactly the same! Thumbs and normal (resized) images are present on the server (permission 777) inside a folder with 777 permissions. I can access the thumb, normal and original pictures via FTP / fireworks but Coppermine refuses to display the thumb or the normal size picture! The original can be dispalyed within Coppermine.

All other functions witin Coppermine seem to be running just fine and the actual installation was perfect (as usual) I am getting good at it  ;)

While checking through the folders post instalation and post test upload... I notice that the index.html created inside the folder created by the upload (contaning the images) has permissions set at 660. I set the default in the config application for files to 777. The server will not allow me to reset the permissions on this file!

Further... if I try to access the images by pointing firefox to the location (HTTP: etc) I get "you don't have permission" errors for both the normal and the thumb images but can access the original image this way.

There you go, I don't think I can gove any fuller details at this stage. Hope that someone can shed light on the problem I have or the problem I have created.








Abbas Ali

What are the permissions of thumbnails and intermediate pics created on the disk after uploading a file?

Make sure that the " Default mode for files" on config page is set to 0666.

Chief Geek at Ranium Systems

blueblue

Once again a thousand smiley face for the reply!

I set the default for files to 0666 as suggested... and uploaded a test image.

The result as far as the display in Coppermine was the same -  no thumb and no normal sized image but the original (full sized) image will display.

As requested, I checked the permisions granted to the uploaded image files on the server (via FTP) they are:

full size image - 660
normal size - 666
thumb - 666


Again, the images have been created correctly.

Also following the change of the default permissions, the following  (php?) warnings were displayed

Warning: chmod(): Operation not permitted in /pub/home/gracex77/htdocs/wedgal/upload.php on line 1209

and

Warning: chmod(): Operation not permitted in /pub/home/gracex77/htdocs/wedgal/upload.php on line 2232

However all the information dispalyed within Coppermine indicated successfull upload and placing of image in the correct album!  ???

Hope that this is clear enough to make some sense.

Many thanks



Abbas Ali

What I suggest is manually change the permissions of one of the thumb or intermediate pic to 777 and then access it directly through browser and see if the same Fobidden (Access denied) error comes or not?

Also check the owner of the uploaded pic and thumbs.
Chief Geek at Ranium Systems

blueblue

#6
More thanks as this seems to be turning into a long one!

Following your suggestions brings some interesting results!

first, the server will not allow me change permissions via FTP error message..

550 could not change perms on -------- Bad file descriptor

Also there are some test images that already have permissions set at 777 (from when I set the default on the config page to 777) pointing the browser to this file also resulted in 'Forbidden' despite the 777 setting.

Re owner of the file... I think we are getting into Unix here and a tad out of my depth.. I really do not know how to establish the owner. Guess I lose but will remember not to lose the lesson!

I feel that this whole issue is leading to something to do with the actual server / server config and I am starting to feel guilty about wasting your time here, as the issue is not related to Coppermine at all!

I look forward to your comments, many thanks

Abbas Ali

Yes, I guess you are correct. You should contact your server administrator and let him know your problem. Tell him that you have files with 777 and 666 permissions and you cant access them via browser.

If you have some other server try installing coppermine on that server.

Lets hope that your server admin sorts this one out. If you have any other problem regarding coppermine then you are most welcome to put your problem on respective board.

Also if the server admin sorts out the problem then do reply with what he has done so that other people who have similar problems can get help.
Chief Geek at Ranium Systems

blueblue

Thanks again for the time and trouble...

At least we are narrowing down on the root of the problem.  ;)

I have contacted the server admin and await their comments.  :\'(

I will certainly post a follow up here with the results and hopefully a final solution which as you say may be of interest / help to others in the future.

Great service guys and a great application (I have used it before).