Unable to Upload Images
-> Coppermine

#1: Unable to Upload Images Author: beej PostPosted: Wed Oct 04, 2006 7:54 am
    ----
Ok, I know theres beens tons of posts and boards on this already , but I just cant get this fixed.

Please can someone help.

Just installed the latest version of dragon when I try to add a picture i get this message
Quote::

Unable to create thumbnail or reduced size image.

File: /mounted-storage/home30c/sub002/sc26362-MJBP/www/modules/coppermine/db_input.php - Line: 450


The Debug info shown is
Quote::

Debug Information Integration vars
Selected CMS Theme: cpgnuke
Coppermine Theme: modules/coppermine/themes/default
Module path modules/coppermine
Nukelink index.php?name=coppermine
$_SERVER vars
DOCUMENT_ROOT: /home30c/sub002/sc26362-MJBP/www
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
SCRIPT_FILENAME: /home30c/sub002/sc26362-MJBP/www/index.php

QUERY_STRING: name=coppermine&file=db_input
PHP_SELF: /index.php
CPG Config
TABLE_PICTURES cms_cpg_pictures
TABLE_ALBUMS cms_cpg_albums
TABLE_COMMENTS cms_cpg_comments
TABLE_CATEGORIES cms_cpg_categories
TABLE_CONFIG cms_cpg_config
TABLE_USERGROUPS cms_cpg_usergroups
TABLE_VOTES cms_cpg_votes
TABLE_USERS cms_users
allow_private_albums 1
Site url (ecards_more_pic_target) www.fifebikers.co.uk/
fullpath modules/coppermine/albums/
USER_IN_GROUPS 1
Default Language english
Language Directory coppermine
Queries
GET Array
(
[name] => coppermine
[file] => db_input
)

POST Array
(
[event] => picture
[album] => 1
[MAX_FILE_SIZE] => 1048576
[title] => beej
[caption] => beej
[keywords] =>
[user1] =>
[user2] =>
[user3] =>
[user4] =>
)


and the errors at the bottom of the page are

Quote::

includes/imaging/gd2.inc
Warning line 95: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid/gid is 17314/17314 is not allowed to access /mounted-storage/home30c/sub002/sc26362-MJBP/www/modules/coppermine/albums/userpics/10002 owned by uid/gid 99/99
Warning line 95: imagejpeg() [function.imagejpeg]: Invalid filename

please help, im a novice.

#2: Re: Unable to Upload Images Author: Anomaly_2.0 PostPosted: Thu Oct 05, 2006 12:26 am
    ----
Please fill in your server specs for us, it helps us help you, here is where you find them on your df cms --> dragonflycms.org/Wiki/id=112.html

#3: Re: Unable to Upload Images Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Thu Oct 05, 2006 8:23 am
    ----
you need to "chmod -R 775 modules/coppermine/albums" if you still got problems use 777. Its just a "write permission" problem.

When you fill up the server specs, make sure you use infos on where your site is located not your own pc.

#4: Re: Unable to Upload Images Author: beej PostPosted: Thu Oct 05, 2006 8:46 am
    ----
Ok I have added the specs the best I can find hope that helps.

Have tried the chmod settings, changed modules/coppermine/albums (tried 755 and 777)
Also changed modules/coppermine/albums/userpics (Tried 755 and 777 aswell)

Still getting same problem.

#5: Re: Unable to Upload Images Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Thu Oct 05, 2006 10:04 am
    ----
oh ... i think this is an old bug that we have fixed in cvs.

gd its not able to create a new image under SAFE MODE so we made a change on our code to "touch" the image first and let gd copy the image on top the new created file.

#6: Re: Unable to Upload Images Author: beej PostPosted: Thu Oct 05, 2006 10:13 am
    ----
??? im lost now lol not that i wasnt before.

#7: Re: Unable to Upload Images Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Thu Oct 05, 2006 10:31 am
    ----
normally gd2 will create a new image file directly

but becouse you server runs php in SAFE MODE gd2 its not able to create the new image directly

so on our cvs version (9.1.0.9 as today) we have create a workaround for this problem

php will create an empty file first and then gd2 will put the data on that file.

You have to use our cvs version or let php run without SAFE MODE (you need to be the server administrator to change this)

#8: Re: Unable to Upload Images Author: beej PostPosted: Thu Oct 05, 2006 11:31 am
    ----
And I thought I had the latest version aswell, I hope its easy enough to change this is the first time I have used any of these programs.

Thanks for your help, I may be back once I have found the update

#9: Re: Unable to Upload Images Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Thu Oct 05, 2006 12:28 pm
    ----
the single updated file is located in cvs/html/includes/imaging/gd2.inc but i strongly suggest to not mix cvs with stable files.

you can grap a full copy of the latest cvs "snapshot" on our download section, make a full file and db backup before you upgrade.

if you found a bug please use our Project.html page

please read dragonflycms.org/Forum...13818.html before you upgrade it will take only 10 minutes but will save you few headaches

#10: Re: Unable to Upload Images Author: beej PostPosted: Thu Oct 05, 2006 4:02 pm
    ----
I have been looking through the downloads page but cannot find the new version can only see the one I already have, can you point me in the right direction please?

#11: Re: Unable to Upload Images Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Thu Oct 05, 2006 10:26 pm
    ----
core -> snapshot

#12: Re: Unable to Upload Images Author: beej PostPosted: Fri Oct 06, 2006 6:38 am
    ----
doh. thanks



-> Coppermine

All times are GMT

Page 1 of 1