error approving images after installation error approving images after installation
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

error approving images after installation

Started by codeaddict, March 08, 2007, 04:01:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

codeaddict

Noty sure this is the right forum section? please move if not

I am getting an error when trying to approve files as the admin when i look at images to approve it shows the image name but not the image, as in the file name 2.jpg but no image if i approve or delete it i get the below error,

pasted errors and log below hope someone can help its all up and running apart from approving images, the funny thing is once approved the files display propperly in their albums however its just the approval section wher they do not show??

below are the error messages and log info

No image to display

File: /home/www/www.byronbay.com/photogallery/editpics.php - Line: 502

USER:
------------------
Array
(
    [ID] => 52fb16c3c7c89e66a1b3e86faf9bd025
    [am] => 1
    [lang] => english
    [lap] => 3
    [liv] => Array
        (
           
  • => 329
                [1] => 328
                [2] => 327
                [3] => 324
                [4] => 206
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => pgadmin
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 1
        [num_URI_upload] => 1
        [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
    (
       
  • => SELECT extension, mime, content, player FROM cpg149_filetypes; (0s)
        [1] => select * from cpg149_plugins order by priority asc; (0s)
        [2] => delete from `photogallery`.cpg149_sessions where time<1173319033 and remember=0; (0s)
        [3] => delete from `photogallery`.cpg149_sessions where time<1172113033; (0s)
        [4] => select user_id from `photogallery`.cpg149_sessions where session_id=md5("ad9f400b230262e0da0503f495e7f5591c67c0004d911a6baa195bbedbb6e975"); (0s)
        [5] => select user_id as id, user_password as password from `photogallery`.cpg149_users where user_id=1 (0s)
        [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 `photogallery`.cpg149_users AS u INNER JOIN `photogallery`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `photogallery`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
        [10] => update `photogallery`.cpg149_sessions set time='1173322633' where session_id=md5('ad9f400b230262e0da0503f495e7f5591c67c0004d911a6baa195bbedbb6e975'); (0s)
        [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg149_banned WHERE expiry < '2007-03-08 12:57:13' (0s)
        [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='60.229.205.160' OR ip_addr='60.229.205.160' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT DISTINCT aid, title, IF(category = 0, CONCAT('> ', title), CONCAT(name,' < ',title)) AS cat_title FROM cpg149_albums, cpg149_categories WHERE category < '10000' AND (category = 0 OR category = cid) ORDER BY cat_title (0s)
        [15] => SELECT aid, title FROM cpg149_albums WHERE category='10001'  OR category='10001' ORDER BY title (0s)
        [16] => SELECT category, filepath, filename, owner_id FROM cpg149_pictures, cpg149_albums WHERE cpg149_pictures.aid = cpg149_albums.aid AND pid='338' (0s)
        [17] => UPDATE cpg149_pictures SET aid = '31', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '', approved = 'YES' WHERE pid='338' LIMIT 1 (0s)
        [18] => SELECT count(*) FROM cpg149_pictures WHERE approved = 'NO' (0s)
        [19] => SELECT pid, owner_id FROM cpg149_pictures WHERE owner_id != 0 AND owner_name = '' (0.001s)
        [20] => SELECT * FROM cpg149_pictures WHERE approved = 'NO' ORDER BY pid LIMIT 0, 25 (0.002s)
        [21] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [mode] => upload_approval
        [start] => 0
        [count] => 25
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [count] => 25
        [pid] => Array
            (
               
  • => 338
            )

        [aid338] => 31
        [title338] =>
        [caption338] =>
        [keywords338] =>
        [user1338] =>
        [user2338] =>
        [user3338] =>
        [user4338] =>
        [approved338] => YES
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.0-8 - OK
    ------------------
    mySQL version: 5.0.32-Debian_7-log
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: 2.0 or higher
    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
    XPM Support:
    XBM Support:
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.32
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.1.1
    Linked Version 1.2.3
    ==========================
    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/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
    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 | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.061 seconds - 22 queries in 0.003 seconds - Album set : ; Meta set: ;