Problem with adding different sizes of thumbnails?

MCM

No avatar

2007-11-26 21:38

Hello,

I tryed to change sizes of thumbnails using this instructions:

http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_add_other_sizes_of_thumbnails

and I have done everything right, but when I come to part where I choose thubmnail 1 and thubmnail 2 size in admin panel (in my case I choosed my unique values thubmnail 1 = 300 and thubmnail 2 = 300 ), and than, when I click on "Save" I receive next error message:


"Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10053 is not allowed to access /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/files/300 owned by uid 33 in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 287

Warning: copy(files/300/sv_pol236w[1].jpg_backup.jpg) [function.copy]: failed to open stream: No such file or directory in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 287

Warning: getimagesize() [function.getimagesize]: Unable to access files/300/sv_pol236w[1].jpg_backup.jpg in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 288

Warning: getimagesize(files/300/sv_pol236w[1].jpg_backup.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 288

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10053 is not allowed to access /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/files/300 owned by uid 33 in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 287

Warning: copy(files/300/sv_pol236w[1].jpg_backup.jpg) [function.copy]: failed to open stream: No such file or directory in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 287

Warning: getimagesize() [function.getimagesize]: Unable to access files/300/sv_pol236w[1].jpg_backup.jpg in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 288

Warning: getimagesize(files/300/sv_pol236w[1].jpg_backup.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php on line 288

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/libraries/FotoJobs.php:287) in /var/www/vhosts/centralni-servis.co.ba/httpdocs/tdm/CMS/actions_admin/p.php on line 19"

I am not sure how to solve this problem because whatever I do I always get error message from above text.

I have only noticed that when I choose thumbnail 1 and 2 size on value 100 or 150 everything works OK, and I dont receive any error message after I click "Save"??

Any help is appreciated!

cheerss:D

» Quick.Cms v2.x

MCM

No avatar

2007-11-27 07:45

any hints?

merci

No avatar

2007-11-27 08:55

MCM - do you have chmod set as it should be: http://opensolution.org/Quick.Cms/docs/?id=requirements check also if you have GD2 library on your server.

MCM

No avatar

2007-11-27 11:03

thnx for reply

regarding chmods all files are chmod as in instructions, except subfolders "200", "250" and "300" (the ones which I had add in general.php) under directory "files", ther chmods are set to 755 and when I try tlo set it on 777 its showing me this error in my FTP client:

"Operation not permitted"

So I have google a little bit and I think I have find solution.. this is link where I have found solution:

http://gallery.menalto.com/node/18315

It looks like PHP script automatically creates these folders (in my case 200, 250 and 300) and user cant change permisions. Not sure why, but anyway, I deleted automatically created folders and than I created them manualy so I was able to change permissions to 777. Now, when I add some item in admin mode and click save I dont receive any errors, and thats it:P

p.s. after using <?php echo phpinfo(); ?> command this is info I received:

"4.4.4-8+etch4"

does this means that gd2 library is instalated?

thnx in advance for info!

4.4.4-8+etch4

merci

No avatar

2007-11-28 09:42

MCM - yes, you are right about this chmod, in next version we will modify it and make automatically chmod 777 for thumbnails directories, but now, you have to do it by yourself:
1. open file core/files-admin.php
2. in function generateThumbs( ) find code:

if( !is_dir$sThumbsDir1 ) )
      
mkdir$sThumbsDir1 );
    if( !
is_dir$sThumbsDir2 ) )
      
mkdir$sThumbsDir2 );

and replace it for the following:

if( !is_dir$sThumbsDir1 ) ){
      
mkdir$sThumbsDir1 );
      
chmod$sThumbsDir10777 );
    }
    if( !
is_dir$sThumbsDir2 ) ){
      
mkdir$sThumbsDir2 );
      
chmod$sThumbsDir20777 );
    }

Now you don't have to create directories for thumbnails manually.

If about : "4.4.4-8+etch4" - it is probably PHP version, not GD2.

Back to top
about us | contact