Глюк при добавлении комментария Глюк при добавлении комментария
 

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

Глюк при добавлении комментария

Started by Zevs, September 17, 2007, 09:30:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zevs

При добавлении комментария CPG пишет "Выбранный альбом/фото не существует". НО !!! Комент при этом добавляет нормально.
Вроде на скорость не влияет, но нервирует пользователей.

P.S. CPG интегрирована с PunBB

Alex Revo

Ìîæíî âêëþ÷èòü ðåæèì îòëàäêè è ïðîàíàëèçèðîâàòü ïî÷åìó ýòî ïðîèñõîäèò.

Êàê âàðèàíò ìîæíî ïðîñòî ïåðåèìåíîâàòü ñîîòâ. ÿçûêîâóþ ïåðåìåííóþ â "Ñïàñèáî çà âàø êîììåíòàðèé", íî ñòîèò ïîìíèòü ÷òî ýòî ñîîáùåíèå ìîæåò âûñêàêèâàòü íå òîëüêî êîãäà äîáàâëÿþò êîììåíòàðèè, íî è ïðè ïîïûòêàõ îòêðûòü óäàëåííûé àëüáîì/ôîòî

Zevs

Quote from: Alex Revo on September 18, 2007, 04:48:44 AM
Можно включить режим отладки и проанализировать почему это происходит.

Как вариант можно просто переименовать соотв. языковую переменную в "Спасибо за ваш комментарий", но стоит помнить что это сообщение может выскакивать не только когда добавляют комментарии, но и при попытках открыть удаленный альбом/фото

Попробую включить отладку. Результаты сообщу.

Zevs

Новые данные.
При просмотре каментов в админ зоне, когда кликнуть справа на маленькую картинку - получаю ту же ошибку - Выбранный альбом/фото не существует!
на ошибку переходит в gallery/include/functions.inc.php - Строка: 1322

Заметил, то ссылка на фотку - номер с минусом. Это относительная какая-то ссылка ?

Вот данные отладки:

QuoteUSER:
------------------
Array
(
    [ID] => поскипано
    [am] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Zevs
    [groups] => Array
        (
           
  • => 101
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [ufc_max] => 1
        [ufc_min] => 1
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 0
        [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] => 1
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 101
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM galfiletypes; (0.001s)
        [1] => select * from galplugins order by priority asc; (0.001s)
        [2] => SELECT * FROM galbridge (0.001s)
        [3] => SELECT u.id AS id, u.username AS username, u.password AS password, u.group_id+100 AS group_id FROM `logan`.users AS u INNER JOIN `logan`.groups AS g ON u.group_id=g.g_id WHERE u.id='2' (0.001s)
        [4] => 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 galusergroups WHERE group_id in (101) (0.001s)
        [5] => SELECT group_name FROM  galusergroups WHERE group_id= 101 (0.001s)
        [6] => SELECT user_favpics FROM galfavpics WHERE user_id = 2 (0.001s)
        [7] => DELETE FROM galbanned WHERE expiry < '2007-09-28 11:47:01' (0.001s)
        [8] => SELECT * FROM galbanned WHERE (ip_addr='xxx.xxx.xxx.xxx' OR ip_addr='yy.yy.yy.yy' OR user_id=2) AND brute_force=0 (0s)
        [9] => SELECT aid from galpictures WHERE pid='186'  LIMIT 1 (0.001s)
        [10] => SELECT title,keyword from galalbums WHERE aid='20' (0.019s)
        [11] => SELECT COUNT(*) from galpictures WHERE ((aid='20'  ) )   (0.001s)
        [12] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from galpictures WHERE ((aid='20'  ) )   ORDER BY filename ASC  (0.006s)
        [13] => SELECT title,keyword from galalbums WHERE aid='20' (0.001s)
        [14] => SELECT COUNT(*) from galpictures WHERE ((aid='20'  ) )   (0.001s)
        [15] => SELECT * from galpictures WHERE ((aid='20'  ) )   ORDER BY filename ASC  LIMIT 53 ,1 (0.004s)
        [16] => SELECT title, comments, votes, category, aid FROM galalbums WHERE aid='20' LIMIT 1 (0.001s)
        [17] => SELECT name, parent FROM galcategories WHERE cid = '6' (0.01s)
        [18] => SELECT COUNT(*) FROM galpictures WHERE approved = 'NO' (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [pos] => -186
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.0.10-gamma
    ------------------
    Coppermine version: 1.4.13(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.10-gamma
    MYSQL_MODULE_TYPE none
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | /usr/local/share/pear | /usr/local/share/pear
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    ==========================
    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 | -1 | -1
    upload_max_filesize | 12M | 12M
    post_max_size | 12M | 12M
    ==========================
    Page generated in 1.141 seconds - 19 queries in 0.053 seconds - Album set : ; Meta set: ;

Zevs

И еще  - ссылка в этот момент выглядит как gallery/displayimage.php?pos=-215 - разве не должна она содержать еще ссылку на альбом ?

Alex Revo

Íåò, ýòà ññûëêà ñîâåðøåííî ïðàâèëüíàÿ.
Ìîæíî ññûëêó, ãäå ïîñìîòðåòü ñàéò?