misslungenes update (von 1.3.3 - 1.4.9) misslungenes update (von 1.3.3 - 1.4.9)
 

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

misslungenes update (von 1.3.3 - 1.4.9)

Started by zottel, September 13, 2006, 08:48:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zottel

hallo

weil ich english kaum verstehe und ich nach stundenlangem durchforsten des forums zu keiner lösung gekommen bin, eröffne ich jetzt diesen topic.

wie im titel beschrieben, habe ich versucht meine gallery auf 1.4.9 zu bringen. soweit ging das auch. Als ich dan als angemeldeter admin nicht mer die admin einstellungen erreichen konnte (sondern nur als normal registrierter besucher), habe ich das backup wieder aufgespielt.
nun ist mir aufgefallen, das ich im admin modus "mein profil" nich mehr aufrufen kann, desweiteren sich niemand mehr registrieren kann. immer wieder kommt mir der fehler "There was an error while processing a database query" aufen screen.
puh, ich versteh fast nix von php und mysql, da bis her alles ziemlich reibungslos gelaufen ist.

zur Info:

bis jetzt habe ich zwei hacks eingebaut:
- ViPER Guestbook
- ein Album View zähler

die gallery wird ziemlich rege benutzt: 1jahr - 200'000 views

hier noch einer der vielen Debug-Info (ich hab den Debug Modus gleich mal angelassen):

USER:
------------------
Array
(
    [ID] => 2b56a200895375ec90a5a98468baeb24
    [am] => 1
    [search] => Array
        (
            [search] => stuss
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 7
    [user_group] => 2
    [user_active] => YES
    [user_name] => zott
    [user_password] => ********
    [user_lastvisit] => 2006-09-13 20:39:02
    [user_regdate] => 2005-06-20 20:57:01
    [user_group_list] => 1
    [user_email] => webmaster@mecheler.ch
    [user_profile3] => http://www.zott.ch
    [user_profile1] =>
    [user_profile2] =>
    [user_profile4] =>
    [user_actkey] =>
    [user_favpics] =>
    [user_profile5] =>
    [user_profile6] =>
    [disk_max] => 5120
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [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] => Registered
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 2
    [groups] => Array
        (
            [0] => 1
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg132_filetypes;
    [1] => SELECT * FROM cpg132_users WHERE user_id='7'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '41fd89fa3594825ec8f672c2544de15d'
    [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 cpg132_usergroups WHERE group_id in (1,2)
    [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 2
    [4] => DELETE FROM cpg132_banned WHERE expiry < '2006-09-13 20:43:12'
    [5] => SELECT * FROM cpg132_banned WHERE ip_addr='81.221.67.147' OR ip_addr='81.221.67.147' OR user_id=7
    [6] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
    [7] => SELECT aid FROM cpg132_albums WHERE category = 2
    [8] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 2
    [9] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '2'  ORDER BY pos
    [10] => SELECT aid FROM cpg132_albums WHERE category = 5
    [11] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 5
    [12] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='251'
    [13] => SELECT aid FROM cpg132_albums WHERE category = 6
    [14] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 6
    [15] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='559'
    [16] => SELECT aid FROM cpg132_albums WHERE category = 7
    [17] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 7
    [18] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='682'
    [19] => SELECT aid FROM cpg132_albums WHERE category = 9
    [20] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 9
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='3024'
    [22] => SELECT aid FROM cpg132_albums WHERE category = 3
    [23] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 3
    [24] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '3'  ORDER BY pos
    [25] => SELECT aid FROM cpg132_albums WHERE category = 24
    [26] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 24
    [27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2591'
    [28] => SELECT aid FROM cpg132_albums WHERE category = 25
    [29] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 25
    [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2660'
    [31] => SELECT aid FROM cpg132_albums WHERE category = 26
    [32] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 26
    [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2309'
    [34] => SELECT aid FROM cpg132_albums WHERE category = 15
    [35] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 15
    [36] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '15'  ORDER BY pos
    [37] => SELECT aid FROM cpg132_albums WHERE category = 4
    [38] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 4
    [39] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='118'
    [40] => SELECT aid FROM cpg132_albums WHERE category = 14
    [41] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 14
    [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1157'
    [43] => SELECT aid FROM cpg132_albums WHERE category = 12
    [44] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 12
    [45] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1079'
    [46] => SELECT aid FROM cpg132_albums WHERE category = 11
    [47] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 11
    [48] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '11'  ORDER BY pos
    [49] => SELECT aid FROM cpg132_albums WHERE category = 13
    [50] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 13
    [51] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1372'
    [52] => SELECT aid FROM cpg132_albums WHERE category = 16
    [53] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 16
    [54] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1421'
    [55] => SELECT aid FROM cpg132_albums WHERE category = 22
    [56] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 22
    [57] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2523'
    [58] => SELECT aid FROM cpg132_albums WHERE category = 21
    [59] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 21
    [60] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '21'  ORDER BY pos
    [61] => SELECT aid FROM cpg132_albums WHERE category = 17
    [62] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 17
    [63] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1965'
    [64] => SELECT aid FROM cpg132_albums WHERE category = 19
    [65] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 19
    [66] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1866'
    [67] => SELECT aid FROM cpg132_albums WHERE category = 20
    [68] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 20
    [69] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2064'
    [70] => SELECT aid FROM cpg132_albums WHERE category = 28
    [71] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 28
    [72] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4679'
    [73] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
    [74] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
    [75] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos
    [76] => SELECT aid FROM cpg132_albums WHERE category = 10
    [77] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 10
    [78] => SELECT count(*) FROM cpg132_albums as a WHERE category = '10'
    [79] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=10 ORDER BY a.pos LIMIT 0,23
    [80] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload, sum(hits) as viewcount FROM cpg132_pictures WHERE aid IN (125, 106, 102, 100, 126, 101, 90, 86, 84, 77, 73, 68, 60, 58, 59, 64, 28, 61, 27, 38, 39, 47, 69) AND approved = 'YES' GROUP BY aid
    [81] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4117'
    [82] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='5354'
    [83] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4107'
    [84] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='3863'
    [85] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='3287'
    [86] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2790'
    [87] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2684'
    [88] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2370'
    [89] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2380'
    [90] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4119'
    [91] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1054'
    [92] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='2439'
    [93] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1026'
    [94] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1253'
    [95] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1261'
    [96] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4190'
    [97] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '10'  ORDER BY pos
    [98] => SELECT aid FROM cpg132_albums as a WHERE category = '0'
    [99] => SELECT count(*) FROM cpg132_albums as a WHERE 1
    [100] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
    [101] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
    [102] => SELECT count(*) FROM cpg132_categories WHERE 1
    [103] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1
    [104] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0'
    [105] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,2
    [106] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload, sum(hits) as viewcount FROM cpg132_pictures WHERE aid IN (46, 63) AND approved = 'YES' GROUP BY aid
    [107] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='4191'
    [108] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
    [109] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4
    [110] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
    [111] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 4
    [112] => SELECT VERSION() as version
    [113] => SELECT count(*) FROM cpg132_pictures WHERE 1
    [114] => UPDATE cpg132_pictures SET randpos = ROUND(RAND()*24) WHERE 1
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.18-standard
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create 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 /var/lib/mysql/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 | On | 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/web57/html/:/home/www/web57/phptmp/:/home/www/web57/files/:/home/www/web57/atd/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i -fweb57@delta.ibone.ch | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 100 | 100
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 10M | 10M
==========================
Page generated in 1.343 seconds - 115 queries in 0.84 seconds - Album set :


die gallery: http://www.mecheler.ch/mecheler/gallery

ich bin für jede Hilfe sehr Dankbar!

grüsse, andi

Stramm

Nach einem upgrade werden einige Datenbankeinträge geändert. Spielst Du dann wieder die alte 1.3 Version auf, bekommst Du einige Probleme. Eine Suche im Forum kann Dir weiterhelfen. Allerdings solltest Du besser nochmals auf 1.4.9 Upgraden und eventuelle Probleme mit Hilfe des Forums lösen

zottel

#2
ok, hab jetzt mal das upgrade zum 1.4.9 gemacht. im moment habe ich folgende Probleme:

- wenn ich mich als Admin einloge, habe ich nur noch die Rechte eines Normal Registrierten User. Die ganzen Admin Einstellugen fehlen.
- Umlaute werden nicht mehr dargestellt.

Für Hilfe aller Art bin ich Dankbar

Stramm

Vergewissere Dich, dass Du auch tatsächlich eingeloggt bist (im Menü erscheint dann Logout [Username] ). Wenn Du wirklich eingeloggt bist, vergewissere Dich, auch im admin mode zu sein (der Link befindet sich im Menü). Hilft das nicht, müssen wir einen temporären User mit admin Rechten anlegen. Mit dem kannst Du Dich dann einloggen und Deinen ursprünglichen Admin wieder in die Admin Group packen.

Wenn Du Dich einfach nicht einloggen kannst... erst mal cookies löschen.

zottel

hmm, da ist wirklich nichts!

Kannst du mir kurz erklären, wie das mit dem temporären User mit Admin rechten funktioniert?

merci

Stramm

Du hattest nicht etwa Dein Forum gebridged (mit phpbb) ??
Normalerweise ist (in der CPG db) der Admin der User mit der ID 1. In Deinem CPG User table existiert kein user mit dieser ID. Du wirst ihn wohl gelöscht haben. ID 2 ist 'leiter'. Dumm nur, dass ohne admin account bridgen nichtg so einfach ist.

--> einen test account anlegen, mit phpmyadmin die CPG db öffnen. Im users table zum Eintrag des test users gehen und edit klicken und nun user_group auf 1 setzen. Das macht den test user zum Admin

zottel