|
View previous topic :: View next topic |
| Author |
Message |
Pazu Nice poster


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


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Wed Feb 23, 2005 6:11 pm Post subject: Re: Unable to create thumbnail or reduced size image. |
|
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 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Pazu Nice poster


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


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


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


Offline Joined: Jun 29, 2004 Posts: 480 Location: Fishcross, Scotland
|
Posted: Wed Mar 02, 2005 3:00 pm Post subject: Re: Unable to create thumbnail or reduced size image. |
|
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
clacks.co
123v.com
copseygroup.com
RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Suse11.4 - LAMP on zypper - ISPConfig 3
|
|
| Back to top |
|
 |
renshai Newbie


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


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


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


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


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


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


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


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


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