Everything was working fine, untill about the 600th image was uploaded. Now every
two images upload I get a white page that says this:
QuoteFatal error: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in /usr/home/ayashe/public_html/fdgallery/include/picmgmt.inc.php on line 211
Debug Info:
Quote
USER:
------------------
Array
(
[ID] => 88cd47e93b7ea0470cf664d5a9c7eddb
[am] => 1
[liv] => Array
(
- => 528
[1] => 533
[2] => 596
[3] => 447
[4] => 650
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => admin
[user_password] => ********
[user_lastvisit] => 2005-10-10 17:16:16
[user_regdate] => 2005-10-01 04:53:02
[user_group_list] =>
[user_email] =>
[user_website] =>
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg_filetypes;
[1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'a874133e57ab1770b755cd6f124dbdd0'
[2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg_banned WHERE expiry < '2005-10-10 17:18:48'
[5] => SELECT * FROM cpg_banned WHERE ip_addr='63.229.125.199' OR ip_addr='63.229.125.199' OR user_id=1
[6] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title
[7] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title
[8] => SELECT encoded_string FROM cpg_temp_data WHERE unique_ID = '9b52503a'
[9] => UPDATE cpg_temp_data SET encoded_string = 'YTo0OntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNjoiZ29mdHJhaWxlcjI1LnBuZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfMTU4MTEzM2UucG5nIjt9aToxO2E6Mjp7czoxMToiYWN0dWFsX25hbWUiO3M6MTU6ImdvZnRyYWlsZXIzLnBuZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfMWExY2ViMDQucG5nIjt9aToyO2E6Mjp7czoxMToiYWN0dWFsX25hbWUiO3M6MTc6ImdvZndlYnNpdGUxMDYucG5nIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF9jYjJhMTc4MS5wbmciO31pOjM7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNjoic2NhbmJyYXZvbWFnLkpQRyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYjk0YjFkZTIuSlBHIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld18yMTEyNjMxMC5KUEciO319' WHERE unique_ID = '9b52503a'
[10] => SELECT category FROM cpg_albums WHERE aid='15'
[11] => SELECT name FROM cpg_categories WHERE cid='5'
[12] => SELECT category FROM cpg_albums WHERE aid='16'
[13] => SELECT name FROM cpg_categories WHERE cid='5'
[14] => SELECT category FROM cpg_albums WHERE aid='3'
[15] => SELECT name FROM cpg_categories WHERE cid='2'
[16] => SELECT category FROM cpg_albums WHERE aid='1'
[17] => SELECT name FROM cpg_categories WHERE cid='4'
[18] => SELECT category FROM cpg_albums WHERE aid='9'
[19] => SELECT name FROM cpg_categories WHERE cid='2'
[20] => SELECT category FROM cpg_albums WHERE aid='10'
[21] => SELECT name FROM cpg_categories WHERE cid='5'
[22] => SELECT category FROM cpg_albums WHERE aid='2'
[23] => SELECT name FROM cpg_categories WHERE cid='4'
[24] => SELECT category FROM cpg_albums WHERE aid='17'
[25] => SELECT name FROM cpg_categories WHERE cid='5'
[26] => SELECT category FROM cpg_albums WHERE aid='4'
[27] => SELECT name FROM cpg_categories WHERE cid='2'
[28] => SELECT category FROM cpg_albums WHERE aid='5'
[29] => SELECT name FROM cpg_categories WHERE cid='2'
[30] => SELECT category FROM cpg_albums WHERE aid='11'
[31] => SELECT name FROM cpg_categories WHERE cid='5'
[32] => SELECT category FROM cpg_albums WHERE aid='6'
[33] => SELECT name FROM cpg_categories WHERE cid='2'
[34] => SELECT category FROM cpg_albums WHERE aid='14'
[35] => SELECT name FROM cpg_categories WHERE cid='5'
[36] => SELECT category FROM cpg_albums WHERE aid='7'
[37] => SELECT name FROM cpg_categories WHERE cid='2'
[38] => SELECT category FROM cpg_albums WHERE aid='12'
[39] => SELECT name FROM cpg_categories WHERE cid='5'
[40] => SELECT category FROM cpg_albums WHERE aid='8'
[41] => SELECT name FROM cpg_categories WHERE cid='2'
[42] => SELECT category FROM cpg_albums WHERE aid='13'
[43] => SELECT name FROM cpg_categories WHERE cid='5'
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[unique_ID] => 9b52503a
[control] => phase_2
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.24
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 10M | 10M
post_max_size | 55M | 55M
==========================
Page generated in 0.667 seconds - 44 queries in 0.009 seconds - Album set :
Test account:
http://www.tuesdays-ashes.net/fdgallery
User: test
Password: test1
I don't want to have to make a new gallery and download then upload 656 images again, I'd really appreciate any help you can give me.
Please setup the test account to allow uploading....
How do I do that? I can't find the page that said to set up a test account, and put the debug info up.
First, I hope you aren't using the web interface to upload your images. As the admin you should FTP your images and use batch add. Read the documentation for instructions.
Second, check your PNG files for errors. I've seen this type of error when bad PNG files are uploaded. Sometimes it's related to the image program used to create the image. I would also contact your host and tell them about the problem - they may need to restart the server.
Use your FTP client and upload the first PNG image that caused the error, then post the link in your next post. I'll take a look at the image.
I don't use FTP. I don't know which PNG file did it, most of the images I upload are PNG because if I edit the pic to add a watermark that's what I save it as. Plus, once I upload the pictures I delete them from my computer.
Well then, there's not much I can do to help troubleshoot your problem. Perhaps someone else can help.
::sigh:: Can't anyone else help me? I really don't want to have to start all over again. It's a real b to download over 700 files and then reupload them.
Difficult to help you if you can't / won't follow the steps required for us to assist you, especially since this is not really a coppermine error at all.
Quote from: ayashe on October 11, 2005, 02:15:18 AM
::sigh:: Can't anyone else help me? I really don't want to have to start all over again. It's a real b to download over 700 files and then reupload them.
Which is why you really should be using an FTP program. With FTP you could download all the originals while having lunch... test them. then upload them while you have dinner.
Search the net for free FTP programs. I use SmartFTP without problems.
Dennis
What steps am I supposed to follow?! I put the test account up (no one has told me how to give uploading permissions like I was told to), put the debug info up, and put a link to the website. So I did follow the steps as listen in the upload trouble shooting.
I have a FTP program, but I hate FTP, and I don't have the faintest idea how to use it with coppermine.
Okay I think I've found one of the bad files. I decided to keep trying to upload my images. I got through a few PNG files, then I tried to upload this one and got the error message. I changed it to a JPG and it uploaded fine.
http://www.fleur-delacour.com/gofwebsite106.png
"You don't have permission to access /gofwebsite106.png on this server."
=> attach it to your next post instead.
What documentation? The documentation I couldn't find?
http://www.tuesdays-ashes.net/gofwebsite106.gif
This is probably due to uploading images that are not actually png files but have been renamed .png
There is a link to the documentation at the top of this page, and you even have your own personal copy:
http://www.tuesdays-ashes.net/fdgallery/docs/
Try clicking the documentation link at the top of this page. It's also in your docs directory.
That documentation.
This is obviously a problem with your images, and not at all related to Coppermine or your webhost.
If you don't know how to use your FTP client, learn. There are plenty of resources, just STFW.
But I always upload PNG images that were originally JPG, but this is the first time that this has happened. Anyway, I downloaded some of the ones I converted that were capped from the Harry Potter website, and changed them to JPGs and now I'm not getting any errors so I guess that was it. Thanks for telling me about that, I never would have thought of it.
that's what Nibbler suggested: those files are not actually png files, they are other files that were renamed, so the xtension is png. You could rename them to xls as well, yet MS Excel wouldn't be able to open them. You don't convert files fromk one format to the other by just renaming them. Some image viewers on your desktop are tolrant about this, GD just isn't.