Advanced search  

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

Pages: [1]   Go Down

Author Topic: Pic uploading problem & editing/deleting categories & albums  (Read 5201 times)

0 Members and 1 Guest are viewing this topic.

nickiher

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Pic uploading problem & editing/deleting categories & albums
« on: January 09, 2006, 12:55:49 am »

Hello.

I bought a server that allows up to 5 domains on one server.  The other 3 websites that I have - I had no problems with editing Coppermine.  However, this one particular website that I have - I am having problems with uploading pictures.  In addition, after I create a category, there were no options to edit or even delete it.

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #2 on: January 10, 2006, 10:25:05 pm »

do as suggested in the section of the docs that I refered to if you want help.
Logged

nickiher

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Editing/deleting categories & albums
« Reply #3 on: January 11, 2006, 02:01:11 am »

Sorry for bugging you and sounding like a noob in Coppermine but I have searched that document and had a friend help me search for an answer for my problem.  Still unsuccessful

My problem lies in why I, an admin, do not have options to edit or delete categories anymore.  When I'm in categories, there is not option for me to do so, the operations functions are not even visible.  I also don't understand why I'm not able to view the pictures that were uploaded a week ago (which I could see find fine) and now not able to see at all.

Maybe I didn't phrase my questions/concerns better and I apologize.

« Last Edit: January 11, 2006, 02:37:31 am by nickiher »
Logged

Bacchus

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 70
  • Sith Marauder
    • Solitude
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #4 on: January 11, 2006, 06:39:31 am »

Put a link to your gallery so we can see.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #5 on: January 11, 2006, 10:44:17 am »

don't edit out your postings, or you will be banned. I'll quote the section for you, highlighting the important section:
Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well.
Don't behave like a moron.
Logged

nickiher

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #6 on: January 11, 2006, 01:19:09 pm »

Thanks.  This is what I got after saving the configurations to file uploads only.

USER:
------------------
Array
(
    [ID] => c44b30f990e7e4a4e378aad2fdb35f5c
    [am] => 1
    [lang] => english
)

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

        )

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

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
  • [1] => select * from cpg_plugins order by priority asc; (0.001s)
        [2] => delete from `nickiher_copp1`.cpg_sessions where time<1136978170 and remember=0; (0.001s)
        [3] => delete from `nickiher_copp1`.cpg_sessions where time<1135772170; (0s)
        [4] => select user_id from `nickiher_copp1`.cpg_sessions where session_id=md5("26a2e8ddfc36c2498d02e2d1aac8fa99bb3c3377f9a8e81e54d0b166e21b1200"); (0s)
        [5] => select user_id as id, user_password as password from `nickiher_copp1`.cpg_users where user_id=1 (0.001s)
        [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 `nickiher_copp1`.cpg_users AS u INNER JOIN `nickiher_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `nickiher_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `nickiher_copp1`.cpg_sessions set time='1136981770' where session_id=md5('26a2e8ddfc36c2498d02e2d1aac8fa99bb3c3377f9a8e81e54d0b166e21b1200'); (0.001s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-01-11 12:16:10' (0.001s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='170.153.70.130' OR ip_addr='170.153.70.130' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT group_id, group_name FROM cpg_usergroups WHERE 1 (0s)
        [15] => UPDATE cpg_usergroups SET has_admin_access = '1' WHERE group_id = '1' LIMIT 1 (0s)
        [16] => UPDATE cpg_usergroups SET group_name='Administrators',group_quota='0',can_rate_pictures='1',can_send_ecards='1',can_post_comments='1',can_upload_pictures='1',pub_upl_need_approval='0',can_create_albums='1',priv_upl_need_approval='0',upload_form_config='0',custom_user_upload='0',num_file_upload='1',num_URI_upload='0' WHERE group_id = '1' LIMIT 1 (0.001s)
        [17] => UPDATE cpg_usergroups SET group_name='Registered',group_quota='1024',can_rate_pictures='1',can_send_ecards='1',can_post_comments='1',can_upload_pictures='1',pub_upl_need_approval='1',can_create_albums='1',priv_upl_need_approval='0',upload_form_config='0',custom_user_upload='0',num_file_upload='1',num_URI_upload='0' WHERE group_id = '2' LIMIT 1 (0s)
        [18] => UPDATE cpg_usergroups SET group_name='Guests',group_quota='0',can_rate_pictures='0',can_send_ecards='0',can_post_comments='0',can_upload_pictures='0',pub_upl_need_approval='1',can_create_albums='0',priv_upl_need_approval='1',upload_form_config='0',custom_user_upload='0',num_file_upload='1',num_URI_upload='0' WHERE group_id = '3' LIMIT 1 (0s)
        [19] => UPDATE cpg_usergroups SET group_name='Banned',group_quota='0',can_rate_pictures='0',can_send_ecards='0',can_post_comments='0',can_upload_pictures='0',pub_upl_need_approval='0',can_create_albums='0',priv_upl_need_approval='0',upload_form_config='0',custom_user_upload='0',num_file_upload='0',num_URI_upload='0' WHERE group_id = '4' LIMIT 1 (0.001s)
        [20] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
        [21] => SELECT * FROM cpg_usergroups WHERE 1 ORDER BY group_id (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       
[group_id] => Array
        (
           
  • => 1
  • [1] => 2
                [2] => 3
                [3] => 4
            )

       
[group_name_1] => Administrators
    [group_quota_1] => 0
    [can_rate_pictures_1] => 1
    [can_send_ecards_1] => 1
    [can_post_comments_1] => 1
    [can_upload_pictures_1] => 1
    [pub_upl_need_approval_1] => 0
    [can_create_albums_1] => 1
    [priv_upl_need_approval_1] => 0
    [custom_user_upload_1] => 0
    [num_file_upload_1] => 1
    [num_URI_upload_1] => 0
    [group_name_2] => Registered
    [group_quota_2] => 1024
    [can_rate_pictures_2] => 1
    [can_send_ecards_2] => 1
    [can_post_comments_2] => 1
    [can_upload_pictures_2] => 1
    [pub_upl_need_approval_2] => 1
    [can_create_albums_2] => 1
    [priv_upl_need_approval_2] => 0
    [custom_user_upload_2] => 0
    [num_file_upload_2] => 1
    [num_URI_upload_2] => 0
    [group_name_3] => Guests
    [group_quota_3] => 0
    [can_rate_pictures_3] => 0
    [can_send_ecards_3] => 0
    [can_post_comments_3] => 0
    [can_upload_pictures_3] => 0
    [pub_upl_need_approval_3] => 1
    [can_create_albums_3] => 0
    [priv_upl_need_approval_3] => 1
    [custom_user_upload_3] => 0
    [num_file_upload_3] => 1
    [num_URI_upload_3] => 0
    [group_name_4] => Banned
    [apply_modifs] => Apply modifications
    [upload_form_config_1] => 0
    [upload_form_config_2] => 0
    [upload_form_config_3] => 0
    [upload_form_config_4] => 0
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.14-standard
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
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.1.14
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 100M | 100M
post_max_size | 55M | 55M
==========================
Page generated in 0.154 seconds - 22 queries in 0.013 seconds - Album set : ; Meta set: ;

And this is what I got after I uploaded one picture.

USER:
------------------
Array
(
    [ID] => c44b30f990e7e4a4e378aad2fdb35f5c
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

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

        )

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

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
  • [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `nickiher_copp1`.cpg_sessions where time<1136978303 and remember=0; (0s)
        [3] => delete from `nickiher_copp1`.cpg_sessions where time<1135772303; (0s)
        [4] => select user_id from `nickiher_copp1`.cpg_sessions where session_id=md5("26a2e8ddfc36c2498d02e2d1aac8fa99bb3c3377f9a8e81e54d0b166e21b1200"); (0s)
        [5] => select user_id as id, user_password as password from `nickiher_copp1`.cpg_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 `nickiher_copp1`.cpg_users AS u INNER JOIN `nickiher_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `nickiher_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `nickiher_copp1`.cpg_sessions set time='1136981903' where session_id=md5('26a2e8ddfc36c2498d02e2d1aac8fa99bb3c3377f9a8e81e54d0b166e21b1200'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-01-11 12:18:23' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='170.153.70.130' OR ip_addr='170.153.70.130' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid from cpg_pictures WHERE pid='112'  LIMIT 1 (0s)
        [15] => SELECT title,keyword from cpg_albums WHERE aid='2' (0s)
        [16] => SELECT COUNT(*) from cpg_pictures WHERE (aid='2'  )    (0s)
        [17] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg_pictures WHERE (aid='2'  )    ORDER BY filename ASC  (0s)
        [18] => SELECT title,keyword from cpg_albums WHERE aid='2' (0s)
        [19] => SELECT COUNT(*) from cpg_pictures WHERE (aid='2'  )    (0s)
        [20] => SELECT * from cpg_pictures WHERE (aid='2'  )    ORDER BY filename ASC  LIMIT 0 ,1 (0s)
        [21] => SELECT title, comments, votes, category, aid FROM cpg_albums WHERE aid='2' LIMIT 1 (0s)
        [22] => SELECT name, parent FROM cpg_categories WHERE cid = '2' (0.001s)
        [23] => 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, pid FROM cpg_comments WHERE pid='112' ORDER BY msg_id ASC (0s)
        [24] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
        [25] => SELECT title,keyword from cpg_albums WHERE aid='2' (0s)
        [26] => SELECT COUNT(*) from cpg_pictures WHERE (aid='2'  )    (0s)
        [27] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg_pictures WHERE (aid='2'  )    ORDER BY filename ASC  LIMIT 0 ,10 (0s)
    )

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.14-standard
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
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.1.14
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/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 | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 100M | 100M
post_max_size | 55M | 55M
==========================
Page generated in 0.097 seconds - 28 queries in 0.002 seconds - Album set : ; Meta set: ;
Logged

nickiher

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #7 on: January 11, 2006, 01:28:05 pm »

Since I forgot to post this and not allowed to edit...please do not think I was trying to double post.

http://bipashabasuonline.com/gallery

Again, I apologize for any confusions and misinterpretations.
Logged

nickiher

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #8 on: January 11, 2006, 01:56:05 pm »

I created a user test (password: test) and tested out that user name but keep coming up with this error when trying to upload.  I did double check the settings in the group registered and there are upload priviledges.  Again I apologize again for posting

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

File: /home/nickiher/public_html/bipashabasuonline/gallery/upload.php - Line: 864

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pic uploading problem & editing/deleting categories & albums
« Reply #9 on: January 11, 2006, 08:45:39 pm »

well, when getting the error message
Quote
Sorry there is no album where you are allowed to upload files
it usually helps to create an album where the user has upload privileges. This is what I did for you, then I tried uploading a pic. There was no error message, but the pic didn't appear. Taking a look at the pic directly in the browser (http://bipashabasuonline.com/gallery/albums/userpics/10003/Beispiel.jpg) results in the 403 error message
Quote
Forbidden
You don't have permission to access /gallery/albums/userpics/10003/Beispiel.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
(This is not a coppermine error message, but one generated from your webserver). It means that you have configured your server improperly (usually a hotlink protection in place using .htaccess). Either fix this yourself or ask your webhost for support.

Joachim

P.S. I've had enough of your silly behaviour (posting unrequested stuff again and again and not doing what you're told to do), so be warned: another case of misbehaviour will get you banned
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.