Advanced search  

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]

Pages: [1]   Go Down

Author Topic: upload 403 error  (Read 4639 times)

0 Members and 1 Guest are viewing this topic.

Methen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
upload 403 error
« on: June 26, 2015, 12:28:48 am »

Hi, Iam getting a 403 error when ever I use the batch feature I made certain the album was set for 755 and tried 777 results were the same, any suggestions ?
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: upload 403 error
« Reply #1 on: June 26, 2015, 01:43:23 pm »

For all upload issues, start here:
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm

You may find your problem, or at least be able to provide the information we would need to help.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Methen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: upload 403 error
« Reply #2 on: June 26, 2015, 05:49:00 pm »

Ok, I believe I have the permissions correct, and I think I did the debug info correct here is what I got:



USER:
------------------
Array
(
    [ID] => b1c65086478ab714bee61d35a682eefd
    [lang] => english
    [am] => 1
    [upload_method] => swfupload
)

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

        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT name, value FROM cpg15x_config [include/init.inc.php:179] (0.07 ms)
  • [1] => SELECT * FROM cpg15x_plugins ORDER BY priority
[include/plugin_api.inc.php:52] (0.03 ms)
    [2] => SELECT user_id, time FROM `allbridg_coppermine`.cpg15x_sessions WHERE session_id = '3d6b3b368e23d19b3c32afcf08d0f975' [bridge/coppermine.inc.php:267] (0.03 ms)
    [3] => SELECT user_id, user_password FROM `allbridg_coppermine`.cpg15x_users WHERE user_id = 1 [bridge/coppermine.inc.php:279] (0.02 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `allbridg_coppermine`.cpg15x_users AS u LEFT JOIN `allbridg_coppermine`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0.03 ms)
    [5] => SELECT user_group_list FROM `allbridg_coppermine`.cpg15x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.02 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0.03 ms)
    [7] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0.02 ms)
    [8] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0.02 ms)
    [9] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:330] (0.06 ms)
    [10] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 1 [include/init.inc.php:388] (0.03 ms)
    [11] => DELETE FROM cpg15x_banned WHERE expiry < '2015-06-26 11:45:18' [include/init.inc.php:444] (0.09 ms)
    [12] => SELECT null FROM cpg15x_banned WHERE (user_id=1 OR '107.213.233.84' LIKE ip_addr OR '' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.03 ms)
    [13] => SELECT aid, title, cid, name FROM cpg15x_albums INNER JOIN cpg15x_categories ON cid = category WHERE category < 10000 [upload.php:495] (0.24 ms)
    [14] => SELECT aid, title FROM cpg15x_albums WHERE category = 0 [upload.php:497] (0.14 ms)
    [15] => SELECT aid, title FROM cpg15x_albums WHERE category='10001' ORDER BY title [upload.php:523] (0.15 ms)
    [16] => SELECT user_id AS user_id, user_password AS pass_hash FROM `allbridg_coppermine`.cpg15x_users WHERE user_id = '1' [bridge/udb_base.inc.php:729] (0.09 ms)
    [17] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2427] (0.03 ms)
    [18] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2292] (0.03 ms)
    [19] => SELECT aid, title, category FROM cpg15x_albums WHERE 1  ORDER BY pos [include/functions.inc.php:5932] (0.09 ms)
    [20] => SELECT cid, rgt, name FROM cpg15x_categories ORDER BY lft [include/functions.inc.php:5952] (0.67 ms)
    [21] => SELECT user_id AS user_id, user_name AS user_name FROM `allbridg_coppermine`.cpg15x_users ORDER BY user_name [include/functions.inc.php:5976] (0.25 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiJiMWM2NTA4NjQ3OGFiNzE0YmVlNjFkMzVhNjgyZWVmZCI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MjoiYW0iO2k6MTtzOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjk6InN3ZnVwbG9hZCI7fQ==
    [599cb72434bea81f0e9748daf00a02cd] => 20e44f28db7fc35289e47406982eec96
)

==========================
VERSION INFO :
------------------
PHP version        5.3.29     OK   
MySQL version      5.5.42-cll OK   
Coppermine version 1.5.36     stable

==========================
Module: GD
------------------
Exact version                    2.1.0                     
GD Version                       bundled (2.1.0 compatible)
FreeType Support                 1                         
FreeType Linkage                 with freetype             
T1Lib Support                    1                         
GIF Read Support                 1                         
GIF Create Support               1                         
JPEG Support                     1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://allbridges.info/test/coppermine/     
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath               /usr/bin/                                   
lang                 english                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                curve                                       
thumb_method         gd2                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                                           
safe_mode_exec_dir                                                                   
safe_mode_gid                                                                       
safe_mode_include_dir                                                               
sql.safe_mode                                                                       
disable_functions        link,symlink,exec,shell_exec,system,passthru               
file_uploads             1                                                           
include_path             .:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php
open_basedir                                                                         
allow_url_fopen          1                                                           
max_execution_time       500                                                         
max_input_time           -1                                                         
upload_max_filesize      800M                                                       
post_max_size            1600M                                                       
memory_limit             512M                                                       
suhosin.post.max_vars                                                               
suhosin.request.max_vars                                                             


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     5.24 MiB 6.98 MiB
Page generation  19.48 ms 19.48 ms
Page query time  2.16 ms  2.16 ms
Page query count 22       22     


==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
   upload_url:               /test/coppermine/upload.php
   flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1435333557187
   use_query_string:         false
   requeue_on_error:         false
   http_success:             
   assume_success_timeout:   0
   file_post_name:           Filedata
   post_params:              [object Object]
   file_types:               *.*
   file_types_description:   All Files
   file_size_limit:          4000 KB
   file_upload_limit:        0
   file_queue_limit:         0
   debug:                    true
   prevent_swf_caching:      true
   button_placeholder_id:    browse_button_place_holder
   button_placeholder:       Not Set
   button_image_url:         /test/coppermine/images/browse_swf.png
   button_width:             130
   button_height:            20
   button_text:              Browse...
   button_text_style:        .browse { font-family: Arial,Helvetica,sans-serif; color: #D0CFD0;}
   button_text_top_padding:  0
   button_text_left_padding: 30
   button_action:            -110
   button_disabled:          true
   custom_settings:          [object Object]
Event Handlers:
   swfupload_loaded_handler assigned:  true
   file_dialog_start_handler assigned: false
   file_queued_handler assigned:       true
   file_queue_error_handler assigned:  true
   upload_start_handler assigned:      true
   upload_progress_handler assigned:   true
   upload_error_handler assigned:      true
   upload_success_handler assigned:    true
   upload_complete_handler assigned:   true
   debug_handler assigned:             true

SWFUpload.SWFObject Plugin settings:
   minimum_flash_version:                      9.0.28
   swfupload_pre_load_handler assigned:     true
   swfupload_load_failed_handler assigned:     true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /test/coppermine/upload.php
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:     
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit:        4096000 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImZhMGQxYTYwZWY2NjE2YmIyODAzODUxNWM4ZWE0Y2IyIjt9
SWF DEBUG:                         form_token=eeb7bbb4be7fd9a371b21c96148b52e5
SWF DEBUG:                         process=1
SWF DEBUG:                         timestamp=1435333518
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImZhMGQxYTYwZWY2NjE2YmIyODAzODUxNWM4ZWE0Y2IyIjt9
SWF DEBUG: Global Post Item: form_token=eeb7bbb4be7fd9a371b21c96148b52e5
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: album=4
SWF DEBUG: Global Post Item: timestamp=1435333518
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /test/coppermine/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 325943. Total: 325943
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 403.
Error Code: HTTP Error, File name: 1332324-anime-girl.jpg, Message: 403
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Logged

Methen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: upload 403 error
« Reply #3 on: June 26, 2015, 06:29:59 pm »

Problem found, I sent a copy to my web host, in the cpanel there is a thing called mod security, if they are turned on they can cause problems...
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.