Unable to create thumbnail or reduced size image.
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine
Author Message
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Wed Feb 23, 2005 8:47 am
Reply with quote

FYI, reinstalled Dragonfly files and the problem persists. I switched back to GD from IM and see the following error text on upload attempt:

Code:
./includes/imaging/gd2.inc

    * Warning line 34: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/var/tmp/php7daiqJ' is not a valid JPEG file

./includes/cmsinit.inc

    * Warning line 623: fopen(cache/tpl_dragonfly_header.html.inc) [function.fopen]: failed to open stream: Permission denied
    * CMS Warning line 624: Cannot open file (cache/tpl_dragonfly_header.html.inc)


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Wed Feb 23, 2005 6:11 pm
Reply with quote

Pazu what host do you have ?
You have so much permission troubles, it seems they are so scared that they've locked everything to the bone to disallow you any access to your own webspace.

Let them contact us for advice at a $50 an hour rate.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Fri Feb 25, 2005 11:24 am
Reply with quote

DJMaze wrote:
Pazu what host do you have ?
You have so much permission troubles, it seems they are so scared that they've locked everything to the bone to disallow you any access to your own webspace.

Sigh. My host is run by a friend, and I have access to everything. I have my own permissions set to the minimum necessary to allow access.

For example, my web root is drwx---r-x, as are other directories inside that. Regular files are -rw----r--. This is all that's required to serve files via a web server, so I have no more granted. (In other words, my web tree uses umask 072.)

(Of course, where Dragonfly’s INSTALL.txt specifies certain permissions for certain directories, I have granted those.)

What are the default permissions you suggest to allow this software to work?


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Mon Feb 28, 2005 10:42 am
Reply with quote

Hm, one thing I noticed is that on my Solaris installation Dragonfly wants to put the uploaded photo into /modules/coppermine/albums/userpics
/10002, while on my test OS X installation the photo goes straight into /modules/coppermine/albums/userpics.

This could account for some of the error messages:

Quote:
Warning line 40: exec() [function.exec]: Unable to fork [/usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpk_aOOf' 'modules/coppermine/albums/userpics/schnee.jpg' 2>&1]
# CMS Warning line 45: Error executing ImageMagick - Return value: -1
Cmd line : /usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpk_aOOf' 'modules/coppermine/albums/userpics/schnee.jpg'
The convert program said:
# Warning line 46: unlink(modules/coppermine/albums/userpics/schnee.jpg) [function.unlink]: No such file or directory

Since the .jpg file is not, in fact, in userpics, but rather in userpics/10002.

Why is it going there? Does the folder correspond to an album? If so, then why isn’t this happening on my OS X install? If I delete the directory, it simply reappears on the next upload attempt.


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Wed Mar 02, 2005 9:01 am
Reply with quote

…so, is it normal for the uploaded photo to go into userpics/10002 or not?

Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
RedGerry
Silver Supporter


Joined: Jun 29, 2004
Posts: 448
Location: Alloa, Scotland

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Wed Mar 02, 2005 3:00 pm
Reply with quote

Been keeping an eye on this post.I've been having this problem with CVS site for a week or so.

Have just updated latest CVS and problem has now resolved.

_________________
gerry @ redgerry.com
redgerry.com - Home of RG_Sports
scottishwomensfootball.co.uk
scottishjuniorfootball.co.uk

RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Suse9.3/Apache2.6.8-24.14/MySQL4.0.21Max/PHP4.3.8/CVS on Athlon64
Back to top
View user's profile Visit poster's website ICQ Number MSN Messenger
renshai
Newbie


Joined: Mar 02, 2005
Posts: 3
Location: st. louis

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Thu Mar 03, 2005 11:27 pm
Reply with quote

Okay, this is the error I am getting, none of these solutions have worked so far for me.
and how do you install imagemagick on a 2003 server running iis and php. Sorry, still have my new car smell.

Unable to create thumbnail or reduced size image.

File: d:\prophets\forum4\modules\coppermine\db_input.php - Line: 446

and this

includes\imaging\im.inc
Warning line 44: exec(): Unable to fork [/imagemagick/convert "C:\PHP\uploadtemp\php47.tmp" -quality 80 -antialias -geometry 1280x960 "modules\coppermine\albums\userpics\10002\mlna0019.jpg" 2>&1]
CMS Warning line 49: Error executing ImageMagick - Return value: -1
Cmd line : /imagemagick/convert "C:\PHP\uploadtemp\php47.tmp" -quality 80 -antialias -geometry 1280x960 "modules\coppermine\albums\userpics\10002\mlna0019.jpg"


Warning line 50: unlink(modules/coppermine/albums/userpics/10002/mlna0019.jpg): No such file or directory


renshai's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2003/IIS/ 4.0.23/4.3.9/9.0.1.1
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Fri Mar 04, 2005 6:03 pm
Reply with quote

RedGerry wrote:
Been keeping an eye on this post.I've been having this problem with CVS site for a week or so.

Have just updated latest CVS and problem has now resolved.

Any idea what files changed that might have fixed this? Maybe we can hope for a maintenance release sometime soon.


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Fri Mar 04, 2005 7:32 pm
Reply with quote

I had similar issues on a site I installed a couple of weeks ago - essentially just update all the files in modules/coppermine/..... plus the includes/coppermine directory.
_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Mon Mar 07, 2005 2:10 pm
Reply with quote

Phoenix wrote:
I had similar issues on a site I installed a couple of weeks ago - essentially just update all the files in modules/coppermine/..... plus the includes/coppermine directory.

I’m having CVS problems, and would prefer not to go the CVS route, anyway. Might you be able to gzip up these directories and e-mail them to me?


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Thu Mar 10, 2005 8:37 am
Reply with quote

Hm, dead silence…

Oh, well. Any chance of a 9.0.1.2 release at some point?


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Pazu
Nice poster


Joined: Feb 14, 2005
Posts: 86

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Tue Mar 15, 2005 3:57 pm
Reply with quote

I updated to the latest, html-200503151200/9.0.1.9, and sadly the problem still occurs.

Code:
./includes/imaging/gd2.inc

    * Warning line 34: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/var/tmp/phpt6aqEM' is not a valid JPEG file


Pazu's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.17.11-grsechg / Apache 1.3.37 / MySQL 4.1.21-standard / PHP 5.2.1 / Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
renshai
Newbie


Joined: Mar 02, 2005
Posts: 3
Location: st. louis

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Thu Mar 17, 2005 4:10 am
Reply with quote

how do you install imagemagick on a IIS/2003 system so that it works with coppermine?

renshai's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2003/IIS/ 4.0.23/4.3.9/9.0.1.1
Back to top
View user's profile Visit poster's website
Paganstar
Newbie


Joined: Sep 07, 2005
Posts: 24

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Wed Sep 07, 2005 3:52 pm
Reply with quote

Ok I am having the same issue as all above.
It is a fresh install of Dragonfly downloaded today from the site. I have all the chmod settings correct

The errors I am getting is
Code:
CMS Warning line 49: Error executing ImageMagick - Return value: 127
Cmd line : convert 'modules/coppermine/albums/userpics/php27Udok' -quality 80 -antialias -geometry 185x231 'modules/coppermine/albums/userpics/10002/epic_lvl.gif'
sh: line 1: convert: command not found

Warning line 50: unlink(modules/coppermine/albums/userpics/10002/epic_lvl.gif): No such file or directory

I have tested this with a .gif, .jpg and .png file. I have made sure all were lower case with no change.
I have heard about a SILLY_SAFE_MODE file but I do not know where it is so I do not know whether it is commented out or not.

Any assistance would be greatly appreciated.


Paganstar's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS=Linux/Apache=1.3.33 (Unix)/MySQL=4.0.25-standard/PHP=4.3.11/CPGNuke=9.0.6.0
Back to top
View user's profile Visit poster's website
ductsoup
Newbie


Joined: Nov 03, 2005
Posts: 2

PostPost subject: Re: Unable to create thumbnail or reduced size image.
Posted: Mon Nov 07, 2005 3:49 pm
Reply with quote

Not sure if this covers all the issues in this thread but it might help those using GD2 and PHP 4.1.1. For the background check:

http://bugs.php.net/bug.php?id=35060

Here's a workaround. Add two lines to the imaging/gd2.inc file around line 90 ...

Code:
	if ($dest_info[2] == IMAGETYPE_GIF) {
		if (!imagegif($dst_img, $dest_file)) { return -3; }
	} else if ($dest_info[2] == IMAGETYPE_JPEG) {
// PHP 4.1.1 workaround	
		touch($dest_file);
  		chmod($dest_file,0777); 
// 	
		if (!isset($dest_info['quality']) || intval($dest_info['quality']) < 10) $dest_info['quality'] = 85;
		if (!imagejpeg($dst_img, $dest_file, intval($dest_info['quality']))) { return -3; }
	} else {
		if (!imagepng($dst_img, $dest_file)) { return -3; }
	}


ductsoup's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FC2 / 2.0.51 / 5.0.15 / 4.1.1 / 9.0.6.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
Go to page Previous  1, 2, 3, 4  Next
Page 3 of 4


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.5313 seconds with 19 DB Queries in 0.0391 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy