|
Autor |
Nachricht |
Stranger
|
Titel: Warning: imagecreatetruecolor and more...
Verfasst am: Do, 27 Jul 2006, 03:07 |
|
|
When I try to upload a picture I get this error message:
Code: |
Warning: imagecreatetruecolor(): Invalid image dimensions in /....../forum/uploadpic.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /..../forum/uploadpic.php:177) in /.../forum/includes/page_header.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /.../forum/uploadpic.php:177) in /.../forum/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /...forum/uploadpic.php:177) in /.../forum/includes/page_header.php on line 486
|
Underneath I get this message:
Code: |
Image could not be created.
Try uploading a smaller picture. |
The picture gets uploaded as I can see it in the "UploadPic recent" from the admin. But ofcause no picture is added to the post.
Im using 1.3.2 with these datatypes:
Code: |
image/jpg|image/jpeg|image/pjpeg|image/gif|image/png|image/x-png|image/x- citrix-pjpeg |
and Im using "unique filenames" and "view link to upload another picture after upload".
What could be wrong?
|
|
Nach oben |
|
Stranger
|
Titel: (Kein Titel)
Verfasst am: Do, 27 Jul 2006, 15:47 |
|
|
Now I remember I get this error when trying to run the install
Code: |
Updating the Database
ALTER TABLE phpbb_users ADD user_allow_uploadpic TINYINT NOT NULL DEFAULT 0;
Fejl: Duplicate column name 'user_allow_uploadpic'
UPDATE phpbb_users SET user_allow_uploadpic = 1 WHERE user_level = 1;
Successful
INSERT INTO phpbb_config(config_name,config_value) VALUES('uploadpic_picdir','/forum/userpix/');
Fejl: Duplicate entry 'uploadpic_picdir' for key 1
(...) |
Why do I get all these errors (Fejl = Error)?
And what can I do about it?
|
|
Nach oben |
|
boris
Beiträge: 11195
|
Titel: Re: Warning: imagecreatetruecolor and more...
Verfasst am: Fr, 28 Jul 2006, 11:59 |
|
|
Stranger @ Do, 27 Jul 2006, 03:07 gab folgendes von sich: |
Warning: imagecreatetruecolor(): Invalid image dimensions |
One (or both) of the values are "0" (width / height of the picture) - why, I cannot tell you, never heard of that error. If you set your max-image-dimensions in the ACP, this should not happen - maybe your GD-Library is not up to date ? You'll have to check that with your server-admin.
If it happens only with one particular picture, try another one, if it still happens, try uploading the same picture here, if if works here, it's your config's fault
Stranger gab folgendes von sich: |
The picture gets uploaded as I can see it in the "UploadPic recent" from the admin. |
Should be a filename like this: "8298bcd298a8e9ff.jpg" ... that's the temporary picture after the upload, but NOT the converted picture (changed size). Those files will automatically be deleted on error in a future version.
Stranger gab folgendes von sich: |
Why do I get all these errors (Fejl = Error)? |
That's because you ran the install-script twice - all the necessary changes have alread been made, that's why it says: "Duplicate column name" and "Duplicate entry". You can ignore those errors.
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
Stranger
|
Titel: (Kein Titel)
Verfasst am: Fr, 28 Jul 2006, 14:42 |
|
|
Thanks... The idiot was only 40 cm away from the machine = me
I had not seen the "0" in max picsize (kb) and I thought the "0" in dimensions was = any dimensions.
Now it all works great.
|
|
Nach oben |
|
boris
Beiträge: 11195
|
Titel: (Kein Titel)
Verfasst am: Sa, 29 Jul 2006, 16:39 |
|
|
Good one
I'll put that in the FAQ, just in case
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
|
|
ähnliche Beiträge |
|
Schreiben: nein. Antworten: nein. Bearbeiten: nein. Löschen: nein. Umfragen: nein.
|