Unable to create thumbnail or reduced size image.
| Author |
Message |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Wed Feb 23, 2005 8:47 am |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Wed Feb 23, 2005 6:11 pm |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Fri Feb 25, 2005 11:24 am |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Mon Feb 28, 2005 10:42 am |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Wed Mar 02, 2005 9:01 am |
|
…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 |
|
 |
RedGerry


Joined: Jun 29, 2004 Posts: 448 Location: Alloa, Scotland
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Wed Mar 02, 2005 3:00 pm |
|
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 |
|
 |
renshai


Joined: Mar 02, 2005 Posts: 3 Location: st. louis
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Thu Mar 03, 2005 11:27 pm |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Fri Mar 04, 2005 6:03 pm |
|
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 |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Fri Mar 04, 2005 7:32 pm |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Mon Mar 07, 2005 2:10 pm |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Thu Mar 10, 2005 8:37 am |
|
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 |
|
 |
Pazu


Joined: Feb 14, 2005 Posts: 86
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Tue Mar 15, 2005 3:57 pm |
|
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 |
|
 |
renshai


Joined: Mar 02, 2005 Posts: 3 Location: st. louis
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Thu Mar 17, 2005 4:10 am |
|
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 |
|
 |
Paganstar


Joined: Sep 07, 2005 Posts: 24
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Wed Sep 07, 2005 3:52 pm |
|
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 |
|
 |
ductsoup


Joined: Nov 03, 2005 Posts: 2
|
Post subject: Re: Unable to create thumbnail or reduced size image. Posted: Mon Nov 07, 2005 3:49 pm |
|
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 |
|
 |