6.0.0-alpha14
7/2/25

[#9128] Problem using GD thumbnails
Summary Problem using GD thumbnails
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester leandro.damascena (at) gmail (dot) com
Created 07/08/2010 (5473 days ago)
Due
Updated 07/08/2010 (5473 days ago)
Assigned 07/08/2010 (5473 days ago)
Resolved 07/08/2010 (5473 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
07/08/2010 02:13:17 PM Michael Rubinsky Comment #9
State ⇒ Resolved
Reply to this comment
You're welcome.
07/08/2010 02:10:09 PM leandro (dot) damascena (at) gmail (dot) com Comment #8 Reply to this comment
Are you *sure* you are using the latest code from Git and not an 
older snapshot?

Also, unrelated to the Abstract method error you are getting, I just 
made some more commits to the Image package, as some of those 
methods actually do need to be public so the effect objects can see 
them.
Sorry Michael, you're sure... I was using an older snapshot, was a 
problem in nginx config... Working perfectly now..

Thank you for solution :)
07/08/2010 02:07:04 PM Michael Rubinsky Comment #7 Reply to this comment
Are you *sure* you are using the latest code from Git and not an older 
snapshot?

Also, unrelated to the Abstract method error you are getting, I just 
made some more commits to the Image package, as some of those methods 
actually do need to be public so the effect objects can see them.
07/08/2010 01:31:04 PM leandro (dot) damascena (at) gmail (dot) com Comment #6 Reply to this comment
Thanks for the report. I committed a fix slightly different then 
what you submitted.  Horde_Image_Gd::_create is a protected method, 
so the underlined prefix is appropriate, I corrected the calls to 
that method instead.
Makes sense and you did the appropriate way
Also, you shouldn't need to implement a noop rewind() method in 
Horde_Image_Gd, it Extends EmptyIterator (well, actually, it extends 
Horde_Image_Base, which in turn extends EmptyIterator) so the method 
should be available.
At least in my server, the error continues happens... May be a php config?

2010/07/07 21:14:41 [error] 25809#0: *80 FastCGI sent in stderr: "PHP
Fatal error:  Class Horde_Image_Gd contains 1 abstract method and must
therefore be declared abstract or implement the remaining methods
(Iterator::rewind) in
/home/c3mail/framework/Image/lib/Horde/Image/Gd.php on line 17"
Please try what I committed and see if you still get those errors.
07/08/2010 01:26:36 PM Michael Rubinsky Assigned to Michael Rubinsky
 
07/08/2010 01:26:28 PM Michael Rubinsky Comment #5
State ⇒ Feedback
Reply to this comment
Thanks for the report. I committed a fix slightly different then what 
you submitted.  Horde_Image_Gd::_create is a protected method, so the 
underlined prefix is appropriate, I corrected the calls to that method 
instead.

Also, you shouldn't need to implement a noop rewind() method in 
Horde_Image_Gd, it Extends EmptyIterator (well, actually, it extends 
Horde_Image_Base, which in turn extends EmptyIterator) so the method 
should be available.

Please try what I committed and see if you still get those errors.
07/08/2010 01:19:47 PM Michael Rubinsky Comment #3
State ⇒ Assigned
Queue ⇒ Horde Framework Packages
Version ⇒ Git master
Priority ⇒ 1. Low
Reply to this comment
Not sure what this has to do with IMP, moving to Framework queue.
07/08/2010 04:02:09 AM leandro (dot) damascena (at) gmail (dot) com Comment #2
New Attachment: gd-2.diff Download
Reply to this comment
Oh my gosh, I made a big mistake when I was generating patch.. the 
problem is in _create function and not _call function... Now the 
correct patch.

sorry my mistake.
07/08/2010 03:14:02 AM leandro (dot) damascena (at) gmail (dot) com New Attachment: gd.diff Download
 
07/08/2010 03:13:40 AM leandro (dot) damascena (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Problem using GD thumbnails
Type ⇒ Bug
Reply to this comment
First, I want to explain why I'm using GD and not Imagick 
(recommended)... I'm running horde using nginx and phpfcgi and all the 
time I receive this error:

libgomp: Thread creation failed: Resource temporarily unavailable

I've already updated to last version ImageMaick, libgomp and all of 
libs that ImageMagick and Imagick requires, however none solved my 
problem.


Using GD Library (not recommended for you) has a big problem...

2010/07/07 21:14:41 [error] 25809#0: *80 FastCGI sent in stderr: "PHP 
Fatal error:  Class Horde_Image_Gd contains 1 abstract method and must 
therefore be declared abstract or implement the remaining methods 
(Iterator::rewind) in 
/home/c3mail/framework/Image/lib/Horde/Image/Gd.php on line 17"

2010/07/07 21:22:14 [error] 25809#0: *104 FastCGI sent in stderr: "PHP 
Fatal error:  Call to undefined method Horde_Image_Gd::create() in 
/home/c3mail/framework/Image/lib/Horde/Image/Gd.php on line 258" "GET 
/c3mail/view.php?imp_img_view=view_thumbnail&actionID=view_attach&id=3&uid=48&mailbox=INBOX 
HTTP/1.1"

I've made a patch and this working now

Saved Queries