Errors & Problems Errors & Problems
 

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

Errors & Problems

Started by searanch, September 20, 2004, 10:40:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

searanch

Only Admin can view pictures
Album specs missing
No thumbnail on Album cover
No comments

I get the following Notice when I click on a thumbnail to view pic:

Notice: Undefined variable: meta_keywords in /www/g/gashole/htdocs/smf/gallery/displayimage.php on line 632


USER:
------------------
Array
(
    [ID] => 9f2df91db784f14fcd5284836d05e2dc
    [am] => 1
    [liv] => Array
        (
           
  • => 1
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [disk_max] => 1024
        [disk_min] => 1024
        [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] => Administrator
        [upload_form_config] => 3
        [group_quota] => 1024
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 4
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg11d_filetypes;
        [1] =>
          SELECT variable, value
          FROM yabbse_settings
        [2] =>
             SELECT
                mem.*, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH
             FROM yabbse_members AS mem
                LEFT JOIN yabbse_attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
             WHERE mem.ID_MEMBER = 76
             LIMIT 1
        [3] => 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,4)
        [4] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
        [5] => DELETE FROM cpg11d_banned WHERE expiry < 1095712028
        [6] => SELECT * FROM cpg11d_banned WHERE ip_addr='209.166.89.99' OR ip_addr='209.166.89.99' OR user_id=76
        [7] => SELECT title,keyword from cpg11d_albums WHERE aid='1'
        [8] => SELECT COUNT(*) from cpg11d_pictures WHERE aid='1'   
        [9] => SELECT * from cpg11d_pictures WHERE aid='1'    ORDER BY filename ASC  LIMIT 0 ,1
        [10] => SELECT title, comments, votes, category, aid FROM cpg11d_albums WHERE aid='1' LIMIT 1
        [11] => UPDATE cpg11d_pictures SET hits=hits+1 WHERE pid='1'
        [12] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip FROM cpg11d_comments WHERE pid='1' ORDER BY msg_id ASC
        [13] => SELECT title,keyword from cpg11d_albums WHERE aid='1'
        [14] => SELECT COUNT(*) from cpg11d_pictures WHERE aid='1'   
        [15] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg11d_pictures WHERE aid='1'    ORDER BY filename ASC  LIMIT 0 ,10
        [16] => SELECT count(*) from cpg11d_comments where pid=1 and msg_id!=0
        [17] => SELECT count(*) from cpg11d_comments where pid=4 and msg_id!=0
        [18] => SELECT count(*) from cpg11d_comments where pid=23 and msg_id!=0
        [19] => SELECT count(*) from cpg11d_comments where pid=9 and msg_id!=0
        [20] => SELECT count(*) from cpg11d_comments where pid=10 and msg_id!=0
        [21] => SELECT count(*) from cpg11d_comments where pid=11 and msg_id!=0
        [22] => SELECT count(*) from cpg11d_comments where pid=12 and msg_id!=0
        [23] => SELECT count(*) from cpg11d_comments where pid=13 and msg_id!=0
        [24] => SELECT count(*) from cpg11d_comments where pid=163 and msg_id!=0
        [25] => SELECT count(*) from cpg11d_comments where pid=14 and msg_id!=0
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [album] => 1
        [pos] => 0
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 4.0.15
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.23 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    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 4.0.15
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/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 | 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/local/php4/lib/php | .:/usr/local/php4/lib/php
    open_basedir | no value | no value
    ==========================
    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 | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.157 seconds - 26 queries in 0.011 seconds - Album set :

Casper

Did you make any changes to any files?
Have you tried using a different theme?
Does the notice appear when debug mode is turned off?

A link to your site would help.
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

searanch

The notice stops when I get out of debug mode. Also I'm stuck in admin - won't let me toggle to user.


Tranz

Does your site require a login to view pictures? If so, you will need to give us login info since all albums are saying 0 files. We can't attempt to address your problem:
Quote from: searanchI get the following Notice when I click on a thumbnail to view pic:

Also,

You listed these:
Only Admin can view pictures
Album specs missing
No thumbnail on Album cover
No comments

Are they things you consider problems or settings?

As Casper pointed out, the problem could have been with the theme, but when I looked at the page in Classic, all albums still showed as empty.

Why exactly can't you toggle to user mode? Is the link not accessible, or did not work?

searanch

#5
The problem does not appear to be with themes.

I cannot resolve the problems with settings.

When I turn off debug mode the notice goes away when I click on thumbnail in admin.

The link did not work when I try to toggle to User mode.

Can I PM you access codes for ftp, admin/coppermine and sql?

Casper

Did this all start when you bridged, by any chance?
Have you moved the install?  Your link from the forum to the gallery is not correct.
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

searanch

Casper,

This was evident since the initial install. The link is disabled so the forum peeps don't get in there until I get it fixed.

I noticed that you uploaded a pic. I looked at the data relative to the pic you uploaded and noticed that the field `approved` was toggled yes. All the rest of the pics relative to the table yabbse_pictures are toggled no. So I changed the first one in a very long list to yes and went back and their it was.

Got a simple method of changing all the data relative to the table yabbse_pictures to `approved` yes?

Nibbler

run the query UPDATE yabbse_pictures SET approved = 'YES' in phpmyadmin ;)

searanch


Casper


And don't forget to go into the groups manager, and change the requirement to approve for all groups you want to be able to post direct.
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

searanch

I am still unable to toggle between admin and user mode. Stuck in admin...

Set permissions for groups. Thanx Casper...

Casper

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

searanch


Thanx Tranz, Casper and Nibbler...