Unable to Upload Images
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine
Author Message
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Unable to Upload Images
Posted: Wed Oct 04, 2006 7:54 am
Reply with quote

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.


beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
Anomaly_2.0
Nice poster


Joined: Sep 10, 2006
Posts: 130

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 12:26 am
Reply with quote

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

Anomaly_2.0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
*
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 8:23 am
Reply with quote

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.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 8:46 am
Reply with quote

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.


beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 10:04 am
Reply with quote

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.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 10:13 am
Reply with quote

??? im lost now lol not that i wasnt before.

beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 10:31 am
Reply with quote

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)

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 11:31 am
Reply with quote

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


beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 12:28 pm
Reply with quote

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

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 4:02 pm
Reply with quote

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?

beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Unable to Upload Images
Posted: Thu Oct 05, 2006 10:26 pm
Reply with quote

core -> snapshot
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
beej
Newbie


Joined: Oct 04, 2006
Posts: 12

PostPost subject: Re: Unable to Upload Images
Posted: Fri Oct 06, 2006 6:38 am
Reply with quote

doh. thanks

beej's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache Version Servage.net Cluster (Enhanced Apache)/MySQL Version 5.0.15/PHP Version 5.2.1 /CMS Version 9.1.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.9906 seconds with 17 DB Queries in 0.3197 seconds
Memory Usage: 3.07 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy