[solved] Hyperion said... [solved] Hyperion said...
 

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

[solved] Hyperion said...

Started by Sal Collaziano, July 05, 2004, 10:41:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sal Collaziano

Hey. You said, "You need to give permission in both the groups panel and the album properties page for an upload to occur."

... Where is the "groups panel"? I see the groups button and click it but don't see anywhere to set permissions in there. Is there something I'm missing?

I managed to get several pictures up and running as an admin. I just can't get pictures up as a regular user. This is the message I get:

Sorry there is no album where you are allowed to upload files

edit: Okay. I figured it out..
Sal Collaziano

DonMcC

#1
Hey I am getting the same error, and I can't solve it...Someone please help!!!!!!!!

de-bug:

USER:
------------------
Array
(
    [ID] => 31ce5e5334f6b16e4e5fa9378c2a1152
    [am] => 0
)

==========================
USER DATA:
------------------
Array
(
   
  • => 5
        [user_id] => 5
        [1] => Northern_Outdoorsman
        [user_name] => Northern_Outdoorsman
        [2] => 1
        [user_level] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 2
                [2] => 22
            )

        [group_quota] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [upload_form_config] => 3
        [num_file_upload] => 1
        [num_URI_upload] => 1
        [custom_user_upload] => 0
        [disk_max] => 1024
        [disk_min] => 0
        [ufc_max] => 3
        [ufc_min] => 3
        [has_admin_access] => 1
        [group_name] => Admin
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg131_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `outdoors`.phpbb_users WHERE user_id='5' AND user_password='3665c16369e7eee28b0a79f11ad61ec4' AND user_active='1'
        [2] => SELECT (ug.group_id + 5) as group_id FROM `outdoors`.phpbb_user_group as ug LEFT JOIN `outdoors`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 5 AND user_pending = 0 AND group_single_user = 0
        [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 cpg131_usergroups WHERE group_id in (1,2,22)
        [4] => SELECT group_name FROM  cpg131_usergroups WHERE group_id= 1
        [5] => DELETE FROM cpg131_banned WHERE expiry < 1090622861
        [6] => SELECT * FROM cpg131_banned WHERE ip_addr='68.60.158.4' OR ip_addr='68.60.158.4' OR user_id=5
    )

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

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

    ==========================
    Page generated in 0.092 seconds - 7 queries in 0.012 seconds - Album set :

DonMcC

ok in admin mode when I upload a pic a get the message "0 Files Uploaded"

here is the debug:

USER:
------------------
Array
(
    [ID] => 31ce5e5334f6b16e4e5fa9378c2a1152
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   
  • => 5
        [user_id] => 5
        [1] => Northern_Outdoorsman
        [user_name] => Northern_Outdoorsman
        [2] => 1
        [user_level] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 2
                [2] => 22
            )

        [group_quota] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [upload_form_config] => 3
        [num_file_upload] => 1
        [num_URI_upload] => 1
        [custom_user_upload] => 0
        [disk_max] => 1024
        [disk_min] => 0
        [ufc_max] => 3
        [ufc_min] => 3
        [has_admin_access] => 1
        [group_name] => Admin
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg131_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `outdoors`.phpbb_users WHERE user_id='5' AND user_password='3665c16369e7eee28b0a79f11ad61ec4' AND user_active='1'
        [2] => SELECT (ug.group_id + 5) as group_id FROM `outdoors`.phpbb_user_group as ug LEFT JOIN `outdoors`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 5 AND user_pending = 0 AND group_single_user = 0
        [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 cpg131_usergroups WHERE group_id in (1,2,22)
        [4] => SELECT group_name FROM  cpg131_usergroups WHERE group_id= 1
        [5] => DELETE FROM cpg131_banned WHERE expiry < 1090622699
        [6] => SELECT * FROM cpg131_banned WHERE ip_addr='68.60.158.4' OR ip_addr='68.60.158.4' OR user_id=5
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [URI_array] => Array
            (
               
  • =>
            )

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 3.23.49
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.22 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    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 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.3
    Linked Version 1.1.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    sql.safe_mode | Off | Off
    disable_functions | leak, symlink | leak, symlink
    file_uploads | On | On
    include_path | .:/include:/usr/lib/php | .:/include:/usr/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 | 90 | 90
    max_input_time | -1 | -1
    upload_max_filesize | 10M | 10M
    post_max_size | 10M | 10M
    ==========================
    Page generated in 0.102 seconds - 7 queries in 0.012 seconds - Album set :

Joachim Müller

ok, you're posting on an unrelated thread, but anyway: make sure you have CHMODed as suggested in the documentation. Make sure the edit folder exists within the albums folder. Posting a link and test user account with upload privileges might help.

GauGau

btm323

Just where are you supposed to paste this debug script?

Joachim Müller

debug info gives supporters additional information about a page, but we need a problem description first, with as much details as possible. Debug_info can be especially helpfeull to see what modules exist in php, what versions of php and mySQL are being run, what queries are executed and what vars are set.

GauGau