[Solved]: little problem [Solved]: little problem
 

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

[Solved]: little problem

Started by XARDAS, July 06, 2004, 09:02:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

XARDAS

here you can see 12 random pictures --> OK

than:
Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630

Notice: Undefined variable: user_link in /home/www/web1/html/gothic/gallery/include/functions.inc.php on line 630


than follow 8 pictures. this pictures must be last pictures, which upload in database, but i see the last upload pictures (thumbnails) from last upload, before I have install the update. (1.2.1. --> 1.3.0.)
If i put any thumbnail, the correct picture will open.

and here is the debug text:

QuoteUSER:
------------------
Array
(
   [ID] => 05f0f7bd31423d93695f8d1fbf5831ba
   [am] => 1
   [lang] => german
   [liv] => Array
       (
           
  • => 2289
               [1] => 2999
               [2] => 3094
               [3] => 3093
               [4] => 1190
           )

       [lap] => 1
       [name] => XARDAS
       [theme] => default
       [uid] => 1
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       [user_id] => 1
       [user_group] => 1
       [user_active] => YES
       [user_name] => XARDAS
       [user_password] => ********
       [user_lastvisit] => 2004-07-05 07:10:58
       [user_regdate] => 2004-06-04 18:53:13
       [user_group_list] =>
       [user_email] =>
       [user_website] => http://www.gothicandart.de
       [user_location] => Stuttgart
       [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 cpg11d_filetypes;
       [1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '8a12b0eab8401119db7185c3a3d04d79'
       [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 cpg11d_usergroups WHERE group_id in (1)
       [3] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
       [4] => DELETE FROM cpg11d_banned WHERE expiry < 1089096836
       [5] => SELECT * FROM cpg11d_banned WHERE ip_addr='53.122.34.115' OR ip_addr='53.122.34.115' OR user_id=1
       [6] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos
       [7] => SELECT aid FROM cpg11d_albums WHERE category = 22
       [8] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 22
       [9] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '22'  ORDER BY pos
       [10] => SELECT aid FROM cpg11d_albums WHERE category = 2
       [11] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 2
       [12] => SELECT aid FROM cpg11d_albums WHERE category = 5
       [13] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 5
       [14] => SELECT aid FROM cpg11d_albums WHERE category = 19
       [15] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 19
       [16] => SELECT aid FROM cpg11d_albums WHERE category = 8
       [17] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 8
       [18] => SELECT aid FROM cpg11d_albums WHERE category = 16
       [19] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 16
       [20] => SELECT aid FROM cpg11d_albums WHERE category = 14
       [21] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 14
       [22] => SELECT aid FROM cpg11d_albums WHERE category = 11
       [23] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 11
       [24] => SELECT aid FROM cpg11d_albums WHERE category = 21
       [25] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 21
       [26] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '21'
       [27] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=21 ORDER BY a.pos LIMIT 0,10
       [28] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (88, 87, 89, 90, 99, 92, 93, 91, 94, 95) AND approved = 'YES' GROUP BY aid
       [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2225'
       [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2193'
       [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2290'
       [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2253'
       [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2571'
       [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2542'
       [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2565'
       [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2602'
       [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2809'
       [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='2999'
       [39] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '21'  ORDER BY pos
       [40] => SELECT aid FROM cpg11d_albums WHERE category>=10000
       [41] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category >= 10000
       [42] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '1'  ORDER BY pos
       [43] => SELECT aid FROM cpg11d_albums as a WHERE category = '0'
       [44] => SELECT count(*) FROM cpg11d_albums as a WHERE category>0
       [45] => SELECT count(*) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE a.category>=0
       [46] => SELECT count(*) FROM cpg11d_comments as c LEFT JOIN cpg11d_pictures as p ON c.pid=p.pid LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE a.category>=0
       [47] => SELECT count(*) FROM cpg11d_categories WHERE 1
       [48] => SELECT sum(hits) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON p.aid=a.aid WHERE a.category>=0
       [49] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '0'
       [50] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES' AND aid IN (88,87,89,90,91,92,93,94,95,99)
       [51] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg11d_pictures WHERE approved = 'YES' AND aid IN (88,87,89,90,91,92,93,94,95,99)  ORDER BY RAND() LIMIT 8
       [52] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES' AND aid IN (88,87,89,90,91,92,93,94,95,99)
       [53] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg11d_pictures WHERE approved = 'YES' AND aid IN (88,87,89,90,91,92,93,94,95,99)  ORDER BY pid DESC  LIMIT 0 ,8
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.3 - OK
    ------------------
    mySQL version: 3.23.49
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.15 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read 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 /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /home/www/empty | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /home/www/empty | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/share/php | .:/usr/share/php
    open_basedir | /home/www/web1/ | 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 | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.268 seconds - 54 queries in 0.101 seconds - Album set : AND aid IN (88,87,89,90,91,92,93,94,95,99)

Joachim Müller

switch off debug_mode in coppermine config (at the very bottom of the page) and you should be fine, nothing to worry about the notices.

GauGau

XARDAS

of course!
but the thumbnails are not right!
Why? Where is the failure?

please look on my site:

www.gothicandart.de/gallery

lock the thumbnails in section: last uploads
and click on one of these thumbnails and compare the pictures.

last upload befor upgrade the software: 28.06.2004
upgrade: 03.07.2004
last upload after upgrade the software: 05.07.2004


Joachim Müller


XARDAS

That isn't the problem.
My problem is:

Firstly:
in the index-site the "Last additions" will not update automatically
(the last upload in version 1.2.1. was "Schandmaul" (~/albums/concerts/schandmaul_2004_06_26/thumb_Schandmaul_0231.JPG)
after the update from version 1.2.1. to 1.3.0 was the last upload "Haggard" (~/albums/castlerock/2004/HAGGARD/thumb_057.jpg)

See! The index-site must show normally my last upload picture "Haggard", not "Schandmaul".
If I put the thumbnail "Schandmaul, will open the last "Haggard" picture (middle form)

Coppermine gallery will not refresh the thumbnails in the index-site!

secondly
The next one is, that in a gallery ( please click here for a sample CLICK) open a picture different from little picture. eg.: the gallery shows 001.jpg from HAGGARD gallery and in the pop up window the gallery shows the picture 001.jpg from ASP-gallery.


Casper

You appear to have overwritten some of your pics.  Look at these 3 files, they should all be the same pic, but are not.

http://www.gothicandart.de/gallery/albums/castlerock/2004/HAGGARD/thumb_001.jpg

http://www.gothicandart.de/gallery/albums/castlerock/2004/HAGGARD/normal_001.jpg

http://www.gothicandart.de/gallery/albums/castlerock/2004/HAGGARD/001.jpg

The thumb and full size are the same pic, but the normal is not.  Have you used the admin tools lately.

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

XARDAS

yes,
sorry. I have changed the index.php (  to  if (count($album_set_array)&&$cat) { // from other threat)
and i have deleted the Haggard album and create this album new (at this moment) and upload the pictures again.

XARDAS

Now the gallery works properly (at this moment)
Thanx all for help