Some pictures missing thumbnails and resized images Some pictures missing thumbnails and resized images
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Some pictures missing thumbnails and resized images

Started by wormie_dk, June 22, 2005, 07:30:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wormie_dk

Hi there

I recently added a lot of files to my coppermine page but then I noticed that some of the pictures are missing intermediate versions as well as thumbnails. When I investigated the problem further the images missing thumbnails are primarely the ones which are 1200x1600 while images that are 1600x1200 are not missing thumbnails...

The error log when adding a photo looks like this:


USER:
------------------
Array
(
    [ID] => 6417da50d55aada94bfe565c6b20ec6e
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 419
            [1] => 312
            [2] => 408
            [3] => 592
            [4] => 2986
        )

    [lap] => 2
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => david
    [groups] => Array
        (
            [0] => 1
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM coppermine_filetypes; (0s)
    [1] => select * from coppermine_plugins order by priority asc; (0s)
    [2] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `albernew_foto`.coppermine_users AS u INNER JOIN `albernew_foto`.coppermine_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [3] => 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 coppermine_usergroups WHERE group_id in (1) (0s)
    [4] => SELECT group_name FROM  coppermine_usergroups WHERE group_id= 1 (0s)
    [5] => SELECT user_favpics FROM coppermine_favpics WHERE user_id = 1 (0s)
    [6] => DELETE FROM coppermine_banned WHERE expiry < '2005-06-22 06:20:30' (0s)
    [7] => SELECT * FROM coppermine_banned WHERE (ip_addr='130.226.172.129' OR ip_addr='130.226.172.129' OR user_id=1) AND brute_force=0 (0s)
    [8] => SELECT aid, title FROM coppermine_albums WHERE category < 10000 ORDER BY title (0.002s)
    [9] => SELECT aid, title FROM coppermine_albums WHERE category='10001' ORDER BY title (0s)
    [10] => SELECT encoded_string FROM coppermine_temp_data WHERE unique_ID = '7a9f8865' (0s)
    [11] => UPDATE coppermine_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMToiZ2FsbGVyeS5qcGciO3M6MTQ6InRlbXBvcmFyeV9uYW1lIjtzOjIzOiJtSFRUUF90ZW1wXzFjN2NhMmQwLmpwZyI7czoxMjoicHJldmlld19wYXRoIjtzOjM0OiIuL2FsYnVtcy9lZGl0L3ByZXZpZXdfNWMxNjE5YjQuanBnIjt9fQ==' WHERE unique_ID = '7a9f8865' (0s)
    [12] => SELECT COUNT(*) FROM coppermine_pictures WHERE approved = 'NO' (0.003s)
    [13] => SELECT cat.name FROM coppermine_categories cat, coppermine_albums alb WHERE alb.aid='15' AND cat.cid=alb.category (0.001s)
    [14] => SELECT cat.name FROM coppermine_categories cat, coppermine_albums alb WHERE alb.aid='14' AND cat.cid=alb.category (0s)

  SNIP

    [142] => SELECT cat.name FROM coppermine_categories cat, coppermine_albums alb WHERE alb.aid='104' AND cat.cid=alb.category (0s)
    [143] => SELECT cat.name FROM coppermine_categories cat, coppermine_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [unique_ID] => 7a9f8865
    [control] => phase_2
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.4.1(beta)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.258 seconds - 144 queries in 0.006 seconds - Album set :


After pressing continue I get the following warning:
/include/picmgmt.inc.php

    * Warning line 220: imagecreatefromjpeg(): 'albums/userpics/10001/gallery.jpg' is not a valid JPEG file

and the following debug output:

USER:
------------------
Array
(
    [ID] => 6417da50d55aada94bfe565c6b20ec6e
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 419
            [1] => 312
            [2] => 408
            [3] => 592
            [4] => 2986
        )

    [lap] => 2
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => david
    [groups] => Array
        (
            [0] => 1
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM coppermine_filetypes; (0.003s)
    [1] => select * from coppermine_plugins order by priority asc; (0.005s)
    [2] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `albernew_foto`.coppermine_users AS u INNER JOIN `albernew_foto`.coppermine_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
    [3] => 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 coppermine_usergroups WHERE group_id in (1) (0s)
    [4] => SELECT group_name FROM  coppermine_usergroups WHERE group_id= 1 (0s)
    [5] => SELECT user_favpics FROM coppermine_favpics WHERE user_id = 1 (0.033s)
    [6] => DELETE FROM coppermine_banned WHERE expiry < '2005-06-22 06:27:36' (0.015s)
    [7] => SELECT * FROM coppermine_banned WHERE (ip_addr='130.226.172.129' OR ip_addr='130.226.172.129' OR user_id=1) AND brute_force=0 (0s)
    [8] => SELECT aid, title FROM coppermine_albums WHERE category < 10000 ORDER BY title (0.031s)
    [9] => SELECT aid, title FROM coppermine_albums WHERE category='10001' ORDER BY title (0s)
    [10] => SELECT encoded_string FROM coppermine_temp_data WHERE unique_ID = '7a9f8865' (0.01s)
    [11] => UPDATE coppermine_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '7a9f8865' (0s)
    [12] => SELECT category FROM coppermine_albums WHERE aid='132' (0s)
    [13] => DELETE FROM coppermine_temp_data WHERE unique_ID = '7a9f8865' (0s)
    [14] => SELECT COUNT(*) FROM coppermine_pictures WHERE approved = 'NO' (0.029s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [album] => 132
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 7a9f8865
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.4.1(beta)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.48 seconds - 15 queries in 0.128 seconds - Album set :


I think this must be a server related problem somehow as I also have the same problem with other photo galleries, but I am not sure what the problem is.