Thumbnails have vanished Thumbnails have vanished
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Thumbnails have vanished

Started by niterider, November 03, 2004, 01:56:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

niterider

Just got coppermine installed and confirgured for the first time. Had pictures in albums etc, with all the thumbnails showing perfectly...

all of a sudden - not sure what i did? - thumbnails aren't visible anywhere on the site. The only place that the image is shown is when i view the individual photos. Looked for similar problems on this board and only thing that turned up was a possible browser issue - not the problem in my case as i can't see thumbs with ie or firefox (at least firefox displays the file names though!)

Looking at the html source i see the following:

<a href="displayimage.php?album=topn&cat=0&pos=0"><img src="" class="image"  height="0" border="0" alt="677350.jpg" title="Filename : 677350.jpg
Filesize : 168KB
Dimensions : 400x262
Date added : Nov 03, 2004"><br /></a>


Is there a setting i've bumped accidentally somewhere? Any suggestions welcome

thanx
nic

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

niterider

Sorry, its only on my test server so far.

The behaviour mentioned occurs in all locations where thumbnails are displayed, and includes the album thumbnails:-

<a href="thumbnails.php?album=2" class="albums"><img src="" class="image"  height="0" border="0" alt="day1_1.jpg"><br /></a>

It's not affected by whether I'm in admin mode or user mode (dunno if that would make any difference?)

niterider

Just noticed something else peculiar (e-cards were working previously) ...

if i try to send an image as an e-card it says "Only images can be sent as an ecard" ...

which led me to thinking that it doesn't think that my images aren't images anymore  ???

I had changed allowed image types from ALL to jpg,jpeg

AHA! Changing back to ALL and the thumbnails are back... so why can't I restrict image types to jpg,jpeg??

thx
nic

Casper

you should be able to do that.  Are you sure your pics were of the same file extensions, i.e., jpg, not JPG.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

niterider

Quoteyou should be able to do that.  Are you sure your pics were of the same file extensions, i.e., jpg, not JPG


Makes no diff - tried jpg,jpeg,JPG,JPEG, still I lose the thumbnails, and I can't upload any jpg's.  ??? Only ALL lets me upload, and see the thumbs.

Casper

Well why do you want to change it?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

niterider

Well, I only want to allow jpegs, no tifs, bmps or any of the other strange formats that people are wont to try.

Casper

Are you sure you had no spaces between the filetypes, just ,.

If you an't get it to work, then you could just delete all other 'image' type filetypes from the database filetypes table.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

cxprod

I am having the same exact problem. Tested in IE and Firefox.. firefox does give me the image name.
I upgraded my 1.3.0 gallery to 1.3.2 due to a suggestion in another thread i started because the thumbs were not working with larger sized media files (larger than 320x240)

so i upgraded to 1.3.2 and everything is working fine except all media thumbs (only media thumbs not large photo thumbs) that I upload after I have upgraded & all default thumbs for avi/mpeg/asf and wmv files are coming up as just the border around the thumb in IE and as the image name in firefox..

I have ALL selected... so its not the exact same situation that Niterider has but the problem is the same.

I checked with my host and the backup from before the upgrade has been erased...
Is there a way to move everything back to 1.3.0 or a fix for this issue? I don't have a lot of time.. as this is a pay site that the gallery is on.

Also... it is pass protected and I can't give the user and password out on the board for you to take a look at..


here is the debug info

USER:
------------------
Array
(
    [ID] => 0b2bff203e95383b24a7dba142e96a0b
    [am] => 1
    [liv] => Array
        (
           
  • => 2285
                [1] => 3396
                [2] => 823
                [3] => 3636
                [4] => 59
            )

        [lap] => 1
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2004-11-10 20:05:31
        [user_regdate] => 2004-08-13 20:55:23
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [user_favpics] =>
        [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] => 1
        [priv_upl_need_approval] => 1
        [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 cpg130_filetypes;
        [1] => SELECT * FROM cpg130_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '4e44f6960b09364ec1838d3ce7362b50'
        [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 cpg130_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg130_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg130_banned WHERE expiry < 1100218270
        [5] => SELECT * FROM cpg130_banned WHERE ip_addr='65.66.17.84' OR ip_addr='65.66.17.84' OR user_id=1
        [6] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = ''  ORDER BY pos
        [7] => SELECT aid FROM cpg130_albums as a WHERE category>=10000
        [8] => SELECT count(*) FROM cpg130_pictures as p, cpg130_albums as a WHERE p.aid = a.aid AND category >= 10000
        [9] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = '1'  ORDER BY pos
        [10] => SELECT aid FROM cpg130_albums WHERE category = 2
        [11] => SELECT count(*) FROM cpg130_pictures as p, cpg130_albums as a WHERE p.aid = a.aid AND category = 2
        [12] => SELECT count(*) FROM cpg130_albums as a WHERE category = '2'
        [13] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg130_albums as a LEFT JOIN cpg130_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,30
        [14] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg130_pictures WHERE aid IN (199, 1, 3, 5, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34) AND approved = 'YES' GROUP BY aid
        [15] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg130_pictures WHERE pid='3483'
        [16] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg130_pictures WHERE pid='3576'
        [17] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = '2'  ORDER BY pos
        [18] => SELECT aid FROM cpg130_albums WHERE category = 4
        [19] => SELECT count(*) FROM cpg130_pictures as p, cpg130_albums as a WHERE p.aid = a.aid AND category = 4
        [20] => SELECT count(*) FROM cpg130_albums as a WHERE category = '4'
        [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg130_albums as a LEFT JOIN cpg130_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,7
        [22] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg130_pictures WHERE aid IN (51, 52, 54, 57, 59, 61, 62) AND approved = 'YES' GROUP BY aid
        [23] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = '4'  ORDER BY pos
        [24] => SELECT aid FROM cpg130_albums WHERE category = 3
        [25] => SELECT count(*) FROM cpg130_pictures as p, cpg130_albums as a WHERE p.aid = a.aid AND category = 3
        [26] => SELECT count(*) FROM cpg130_albums as a WHERE category = '3'
        [27] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg130_albums as a LEFT JOIN cpg130_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,19
        [28] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg130_pictures WHERE aid IN (53, 4, 64, 66, 69, 71, 72, 76, 78, 80, 81, 83, 84, 86, 88, 89, 92, 93, 101) AND approved = 'YES' GROUP BY aid
        [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg130_pictures WHERE pid='2393'
        [30] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = '3'  ORDER BY pos
        [31] => SELECT aid FROM cpg130_albums as a WHERE category = '0'
        [32] => SELECT count(*) FROM cpg130_albums as a WHERE 1
        [33] => SELECT count(*) FROM cpg130_pictures as p LEFT JOIN cpg130_albums as a ON a.aid=p.aid WHERE 1
        [34] => SELECT count(*) FROM cpg130_comments as c LEFT JOIN cpg130_pictures as p ON c.pid=p.pid LEFT JOIN cpg130_albums as a ON a.aid=p.aid WHERE 1
        [35] => SELECT count(*) FROM cpg130_categories WHERE 1
        [36] => SELECT sum(hits) FROM cpg130_pictures as p LEFT JOIN cpg130_albums as a ON p.aid=a.aid WHERE 1
        [37] => SELECT count(*) FROM cpg130_albums as a WHERE category = '0'
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 3.23.52
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /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/local/lib/php | .:/usr/local/lib/php
    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
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.17 seconds - 38 queries in 0.068 seconds - Album set :