Closed (fixed)
Project:
Drupal core
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2005 at 01:58 UTC
Updated:
12 Apr 2005 at 00:15 UTC
Jump to comment: Most recent file
I compiled my version of PHP with the --with-gd option on. I do not have the image.module installed. I get the following error in my watchdog logs:
| Type | php |
|---|---|
| Date | Saturday, March 26, 2005 - 20:56 |
| User | test |
| Location | /admin/settings |
| Message | The selected image handling toolkit 'gd2' can not correctly process 'image_gd2_settings'. |
| Severity | error |
| Hostname | 192.168.1.6 |
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | image-gd2.patch | 119 bytes | wiz-1 |
Comments
Comment #1
Stefan Nagtegaal commentedI can veriy that this is the case.. Not sure how to fix though..
Another side effect of this is that we can't upload any files, is this only my install or do other people can duplicate the problem?
Comment #2
wiz-1 commentedSame problem here, I do have gd2 installed. There seems to be a confusion between 'gd' and 'gd2' in image.inc. After applying the patch it works for me again: the built in functions are called image_gd_xxxx, but because of this one line sometimes image_gd2_xxx functions are looked for.
Comment #3
wiz-1 commentedI'm pretty sure this fix is ok...
Comment #4
Steve Dondley commentedI'm not sure if that patch is the right way to go. I looked into this and traced the problem back to lines 34 and 35 in the includes/image.inc file. These lines set the $toolkit_file variable to includes/image.gd2.inc and then checks for its existence. That file does not exist, however.
Perhaps it does not exist because it is still being written? Can we get someone working on the image module to comment on this?
Comment #5
Steve Dondley commentedwiz, disregard my comment. I was confused about your patch. I thought it was patching the system.module.
Comment #6
Steve Dondley commentedComment #7
walkah commentedhrm. looks like a stray 'gd2' slipped in... this patch is good and should fix.
+1 to commit.
Comment #8
Stefan Nagtegaal commentedWell - maybe it is just me - but isn't it the other way around? Isn't 'gd2' the only good name for that? It is GD2-based code, so code-wise gd2 would be better..
Comment #9
Steven commentedFixed in HEAD.
Comment #10
(not verified) commented