Upload & Thumbnail Problems Upload & Thumbnail Problems
 

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

Upload & Thumbnail Problems

Started by dodgy, October 18, 2004, 06:12:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dodgy

Hi,

I've moved my coppermine installation to a new webhost, and things aren't good there. If I try to upload files (with batch upload), I don't see any thumbnails shown on the 'list of new files' - and the files aren't added.

Here's the file permissions:
chris@aces:~/html/gallery/albums$ ls -la
total 24
drwxrwxrwx    5 chris    users        4096 Oct 18 16:56 .
drwxrwxrwx   10 chris    users        4096 Oct 18 10:24 ..
drwxrwxrwx    2 chris    users        4096 Oct 18 16:49 edit
-rwxrwxrwx    1 chris    users        1401 Oct 18 09:54 index.html
drwxrwxrwx    2 chris    users        4096 Oct 18 16:56 pictures
drwxrwxrwx   11 chris    users        4096 Jan  3  2004 userpics
chris@aces:~/html/gallery/albums$


I click 'Batch Add Files'
Select the folder (pictures)
Then I see a few warnings, and the thumbnails don't work.

Here are the warnings:
Warning: Undefined variable: fullimagesize in /home/chris/html/gallery/searchnew.php on line 136

Warning: Undefined variable: fullimagesize in /home/chris/html/gallery/searchnew.php on line 137

Warning: Undefined variable: fullimagesize in /home/chris/html/gallery/searchnew.php on line 136

Warning: Undefined variable: fullimagesize in /home/chris/html/gallery/searchnew.php on line 137


And here's the debug:
USER:
------------------
Array
(
    [ID] => 198a68fdd4e9abfd22895d93ec197674
    [am] => 1
    [search] => ###
    [liv] => Array
        (
            [0] => 628
            [1] => 461
            [2] => 261
            [3] => 420
            [4] => 676
        )

)

==========================
USER DATA:
------------------
Array
(
    [0] => 27
    [user_id] => 27
    [1] => Chris
    [user_name] => Chris
    [2] => 1
    [user_level] => 1
    [groups] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 507
            [3] => 1404
            [4] => 1569
        )

    [group_quota] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [upload_form_config] => 3
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [custom_user_upload] => 0
    [disk_max] => 0
    [disk_min] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [has_admin_access] => 1
    [group_name] => Admin
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg11d_filetypes;
    [1] => SELECT user_id, username as user_name, user_level FROM `chris`.phpbb_users WHERE user_id='27' AND user_password='2aeda0264d253295ac61ac25c15ce661' AND user_active='1'
    [2] => SELECT (ug.group_id + 5) as group_id FROM `chris`.phpbb_user_group as ug LEFT JOIN `chris`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 27 AND user_pending = 0 AND group_single_user = 0
    [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 cpg11d_usergroups WHERE group_id in (1,2,507,1404,1569)
    [4] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
    [5] => DELETE FROM cpg11d_banned WHERE expiry < 1098115671
    [6] => SELECT * FROM cpg11d_banned WHERE ip_addr='217.44.244.98' OR ip_addr='217.44.244.98' OR user_id=27
    [7] => SELECT filepath, filename FROM cpg11d_pictures WHERE filepath LIKE 'pictures%'
    [8] => SELECT aid, title FROM cpg11d_albums WHERE category = 0 ORDER BY title
    [9] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg11d_albums as a, cpg11d_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
    [10] => SELECT aid, IF(category > 10000, CONCAT('* ', title), CONCAT(' ', title)) AS title FROM cpg11d_albums ORDER BY title
)

==========================
GET :
------------------
Array
(
    [startdir] => pictures
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.1.2 - OK
------------------
mySQL version: 3.23.49-log
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
module doesn't exist
==========================
Module: zlib
------------------
module doesn't exist
==========================
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 | 1 | 1
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost |  |
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30 |  |
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.167 seconds - 11 queries in 0.032 seconds - Album set :


Is anyone able to help?
I'm using ImageMagick and have it set in /usr/local/bin/

Here's the proof where it is:
chris@aces:~/html/gallery/albums$ /usr/local/bin/convert
Version: ImageMagick 6.1.1 10/18/04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC


Please help :-) - I can provide a test account if necessary. Thanks.

Joachim Müller

please post a link to your page - my guess is you don't have the necessary files on your server, or you're running an outdated version. Use versioncheck.php to find out wether all needed files are in place.

Joachim

dodgy

Hi,

With some thought I managed to fix the problem. ImageMagick wasn't compiled with JPEG support, so the thumbnails were failing and the script couldn't add anything (because nothing was generated to add). Works great now, thanks for the help.