Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Problem with updated database?  (Read 6190 times)

0 Members and 1 Guest are viewing this topic.

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Problem with updated database?
« on: February 22, 2007, 11:43:36 am »

Hi.

After upgrading from 1.3 to 1.4.1 and a successful version check the gallery seems to be empty of images! The member list is OK but all the images have disappeared - not physical but because of database problems?

Please help!  :'(

Christian
Logged

Nibbler

  • Guest
Re: Problem with updated database?
« Reply #1 on: February 22, 2007, 12:21:33 pm »

Latest version is 1.4.10, not 1.4.1. Post a link.
Logged

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Re: Problem with updated database?
« Reply #2 on: February 22, 2007, 04:54:28 pm »

Here is the link. Thanks in advance.
Christian
Logged

Nibbler

  • Guest
Re: Problem with updated database?
« Reply #3 on: February 22, 2007, 04:55:22 pm »

Link does not work for me.
Logged

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Re: Problem with updated database?
« Reply #4 on: February 22, 2007, 05:02:02 pm »

Logged

Nibbler

  • Guest
Re: Problem with updated database?
« Reply #5 on: February 22, 2007, 05:06:46 pm »

Your 'powered by Coppermine' footer is missing too. Fix that first.
Logged

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Re: Problem with updated database?
« Reply #6 on: February 22, 2007, 05:38:38 pm »

You tell me! That's another problem!! :( All the time I have used Copermine I have displayed the 'powered by Coppermine!!!
Logged

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Re: Problem with updated database?
« Reply #7 on: February 22, 2007, 06:53:48 pm »

I got the debug message:

Code: [Select]
[b]USER:
------------------
Array
(
    [ID] => 3bf2b9f53ca63521ad02bbab88e283e7
    [am] => 1
    [liv] => Array
        (
            [0] => 2738
            [1] => 2736
            [2] => 2700
            [3] => 2556
            [5] => 2555
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [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, player FROM test_filetypes; (0.001s)
    [1] => select * from test_plugins order by priority asc; (0s)
    [2] => delete from `kunstpavillon`.test_sessions where time<1172162769 and remember=0; (0.001s)
    [3] => delete from `kunstpavillon`.test_sessions where time<1170956769; (0.001s)
    [4] => select user_id from `kunstpavillon`.test_sessions where session_id=md5("73ebacdb2f5a07a6aa75bf46b34ddf51002e8a1a64e7f2ac672eaf72bda78482"); (0.001s)
    [5] => select user_id as id, user_password as password from `kunstpavillon`.test_users where user_id=1 (0.001s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `kunstpavillon`.test_users AS u INNER JOIN `kunstpavillon`.test_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `kunstpavillon`.test_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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 test_usergroups WHERE group_id in (1) (0.002s)
    [9] => SELECT group_name FROM  test_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `kunstpavillon`.test_sessions set time='1172166369' where session_id=md5('73ebacdb2f5a07a6aa75bf46b34ddf51002e8a1a64e7f2ac672eaf72bda78482'); (0.004s)
    [11] => SELECT user_favpics FROM test_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM test_banned WHERE expiry < '2007-02-22 17:46:10' (0.001s)
    [13] => SELECT * FROM test_banned WHERE (ip_addr='85.81.187.70' OR ip_addr='85.81.187.70' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT cid, name, description, thumb FROM test_categories WHERE parent = ''  ORDER BY pos (0.002s)
    [15] => SELECT aid FROM test_albums as a WHERE category>=10000 (0.001s)
    [16] => SELECT count(*) FROM test_pictures as p, test_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
    [17] => SELECT cid, name, description, thumb FROM test_categories WHERE parent = '1'  ORDER BY pos (0.001s)
    [18] => SELECT aid FROM test_albums WHERE category = 3 (0.001s)
    [19] => SELECT count(*) FROM test_pictures as p, test_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [20] => SELECT count(*) FROM test_albums as a WHERE category = '3' (0s)
    [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM test_albums as a LEFT JOIN test_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,11 (0s)
    [22] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM test_albums AS a  LEFT JOIN test_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 15)GROUP BY a.aid (0s)
    [23] => SELECT cid, name, description, thumb FROM test_categories WHERE parent = '3'  ORDER BY pos (0.001s)
    [24] => SELECT aid FROM test_albums WHERE category = 4 (0s)
    [25] => SELECT count(*) FROM test_pictures as p, test_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM test_pictures WHERE pid='1976' (0s)
    [27] => SELECT count(*) FROM test_albums as a WHERE category = '4' (0.001s)
    [28] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM test_albums as a LEFT JOIN test_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,1 (0.003s)
    [29] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM test_albums AS a  LEFT JOIN test_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (292)GROUP BY a.aid (0.004s)
    [30] => SELECT cid, name, description, thumb FROM test_categories WHERE parent = '4'  ORDER BY pos (0s)
    [31] => SELECT aid FROM test_albums as a WHERE category = '0' (0s)
    [32] => SELECT count(*) FROM test_albums as a WHERE 1 (0s)
    [33] => SELECT count(*) FROM test_pictures as p LEFT JOIN test_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [34] => SELECT count(*) FROM test_comments as c LEFT JOIN test_pictures as p ON c.pid=p.pid LEFT JOIN test_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [35] => SELECT count(*) FROM test_categories WHERE 1 (0s)
    [36] => SELECT sum(hits) FROM test_pictures as p LEFT JOIN test_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [37] => SELECT COUNT(*) FROM test_pictures WHERE approved = 'NO' (0s)
    [38] => SELECT count(*) FROM test_albums as a WHERE category = '0' (0s)
    [39] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM test_albums as a LEFT JOIN test_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1 (0s)
    [40] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM test_albums AS a  LEFT JOIN test_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (93)GROUP BY a.aid (0s)
    [41] => SELECT COUNT(*) from test_pictures WHERE approved = 'YES'  (0s)
    [42] => SELECT * FROM test_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 4 (0.001s)
    [43] => SELECT COUNT(*) from test_pictures WHERE approved = 'YES'  (0s)
    [44] => SELECT * FROM test_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4 (0.001s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.0 - OK
------------------
mySQL version: 4.0.20-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 1
Active Links 2
Client API version 3.23.51
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/apache/extras/include/mysql
MYSQL_LIBS -L/usr/local/apache/extras/lib/mysql -lmysqlclient 
==========================
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 | On | On
safe_mode_exec_dir | /usr/albers | /usr/albers
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/albers | /usr/albers
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/apache/lib/php | .:/usr/local/apache/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 | 300 | 300
max_input_time | -1 | -1
upload_max_filesize | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.378 seconds - 45 queries in 0.031 seconds - Album set : ; Meta set: ;[/b]
Any help to you?  :) Thanks in advance!
Christian
« Last Edit: February 23, 2007, 05:06:59 pm by Hein »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with updated database?
« Reply #8 on: February 23, 2007, 09:33:54 am »

I got the debug message:
Nobody asked for it.
Logged

christian

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Aalborg Kunstpavillon (Art Gallery)
Re: Problem with updated database?
« Reply #9 on: February 23, 2007, 03:09:55 pm »

Yes! In the Admin in Coppermine it says that you need the debug message if you have any problems!
Any comments on my problem? :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with updated database?
« Reply #10 on: February 23, 2007, 05:05:40 pm »

Yes! In the Admin in Coppermine it says that you need the debug message if you have any problems!
That's funny: in my copy, it says that you're suppossed to paste the debug_output into your posting only when requested: ;)
Quote
If you're going to request help on the coppermine support board, copy-and-paste this debug output into your posting when requested, along with the error message you get (if any).

Any comments on my problem? :)
You appear not to have upgraded as suggested in the docs. Use a third-party tool like phpMyAdmin and browse coppermine's pictures table - it appears to be empty. If this is the case, restore the backup of this particular table and then re-run update.php. The actual files (e.g. http://www.kunstpavillon.dk/galleri/albums/userpics/10001/foto_pavillonen_debatforum.jpg) appear to still be there.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.