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: Error 302  (Read 5783 times)

0 Members and 1 Guest are viewing this topic.

chouette

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Error 302
« on: September 02, 2013, 09:49:47 pm »

I'm having issues when uploading on my Coppermine driven gallery http://dalida-legenda.com/gallery
When using http uploads and the suggested settings for upload troubleshooting in place, I get the error message
 
Code: [Select]
Uploading error 302
Here's the test user account data:
    Username: beget-tech
    Password: rainyday31
 
When I try to upload many photos (Flash uploading recommended) it returns "Uploading error: 302" after uploading.
When I use Single Picture Uploader, it works well.
 
About two months ago Flash uploading worked perfect. I did not change anything anywhere.
The hosting provider says he has no filters or blocking and cannot understand and fix the problem.

Thanks in advance for your suggestions
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4841
    • Windsurf.me
Re: Error 302
« Reply #1 on: September 02, 2013, 11:09:43 pm »

Please read this section of the docs and do everything outlined so we ma help you - http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_trouble

What you see here is a response from the server. A 302 error means "redirect". In all likelihood it is something that has changed on your hosting.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Error 302
« Reply #2 on: September 03, 2013, 10:59:42 am »

There are already some 302 upload issues in our board. Maybe one of them helps you, but it's mostly an hosting issue or an .htaccess file.
Logged

chouette

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Error 302
« Reply #3 on: September 21, 2013, 09:49:14 pm »

Hello again!

I prepared everything for test user as described in the instruction.
Hope for your support. Thanks in advance for your suggestions

Code: [Select]

USER:
------------------
Array
(
    [ID] => 8955e23f74bf3af61b7cb3ef700906b4
    [lang] => russian
    [upload_method] => swfupload
    [liv] => Array
        (
            [0] => 623
        )

    [am] => 1
    [liv_a] => Array
        (
            [0] => 6
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => crystal
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:179] (2.12 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.8 ms)
    [2] => DELETE FROM `legendko_gleg`.cpg15x_sessions WHERE time < 1379789066 AND remember = 0 [bridge/coppermine.inc.php:251] (2.39 ms)
    [3] => DELETE FROM `legendko_gleg`.cpg15x_sessions WHERE time < 1378583066 [bridge/coppermine.inc.php:255] (1.47 ms)
    [4] => UPDATE cpg15x_config SET value = 1379792666 WHERE name = 'session_cleanup' [bridge/coppermine.inc.php:259] (0.14 ms)
    [5] => SELECT user_id, time FROM `legendko_gleg`.cpg15x_sessions WHERE session_id = '06e52ef607b9635bb9003461cf3540af' [bridge/coppermine.inc.php:267] (0.12 ms)
    [6] => SELECT user_id, user_password FROM `legendko_gleg`.cpg15x_users WHERE user_id = 1 [bridge/coppermine.inc.php:279] (0.61 ms)
    [7] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `legendko_gleg`.cpg15x_users AS u LEFT JOIN `legendko_gleg`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0.81 ms)
    [8] => SELECT user_group_list FROM `legendko_gleg`.cpg15x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.12 ms)
    [9] => 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.16 ms)
    [10] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0.1 ms)
    [11] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0.93 ms)
    [12] => UPDATE `legendko_gleg`.cpg15x_sessions SET time = 1379792666 WHERE session_id = '06e52ef607b9635bb9003461cf3540af' [bridge/coppermine.inc.php:324] (0.18 ms)
    [13] => UPDATE `legendko_gleg`.cpg15x_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:328] (0.16 ms)
    [14] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:330] (0.63 ms)
    [15] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 1 [include/init.inc.php:388] (2.59 ms)
    [16] => DELETE FROM cpg15x_banned WHERE expiry < '2013-09-21 23:44:26' [include/init.inc.php:444] (1.26 ms)
    [17] => SELECT null FROM cpg15x_banned WHERE (user_id=1 OR '95.143.213.228' LIKE ip_addr OR '' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.22 ms)
    [18] => SELECT aid, title, cid, name FROM cpg15x_albums INNER JOIN cpg15x_categories ON cid = category WHERE category < 10000 [upload.php:495] (2.69 ms)
    [19] => SELECT aid, title FROM cpg15x_albums WHERE category = 0 [upload.php:497] (0.93 ms)
    [20] => SELECT aid, title FROM cpg15x_albums WHERE category='10001' ORDER BY title [upload.php:523] (0.18 ms)
    [21] => SELECT user_id AS user_id, user_password AS pass_hash FROM `legendko_gleg`.cpg15x_users WHERE user_id = '1' [bridge/udb_base.inc.php:729] (0.17 ms)
    [22] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2428] (1.26 ms)
    [23] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2316] (0.23 ms)
    [24] => DELETE FROM cpg15x_temp_messages WHERE time < 1379789066 [include/functions.inc.php:4931] (7.16 ms)
    [25] => SELECT aid, title, category FROM cpg15x_albums ORDER BY pos [include/functions.inc.php:5924] (0.27 ms)
    [26] => SELECT cid, rgt, name FROM cpg15x_categories ORDER BY lft [include/functions.inc.php:5944] (0.19 ms)
    [27] => SELECT user_id AS user_id, user_name AS user_name FROM `legendko_gleg`.cpg15x_users ORDER BY user_name [include/functions.inc.php:5968] (0.17 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [wp-settings-time-1] => 1379788971
    [wp-settings-1] => hidetb=1&wplink=1&libraryContent=browse&align=left&editor=tinymce&imgsize=thumbnail&urlbutton=file&mfold=o
    [beget] => begetok
    [cpg15x_data] => YTo2OntzOjI6IklEIjtzOjMyOiI4OTU1ZTIzZjc0YmYzYWY2MWI3Y2IzZWY3MDA5MDZiNCI7czo0OiJsYW5nIjtzOjc6InJ1c3NpYW4iO3M6MTM6InVwbG9hZF9tZXRob2QiO3M6OToic3dmdXBsb2FkIjtzOjM6ImxpdiI7YToxOntpOjA7czozOiI2MjMiO31zOjI6ImFtIjtpOjE7czo1OiJsaXZfYSI7YToxOntpOjA7aTo2O319
    [wordpress_test_cookie] => WP Cookie check
    [PHPSESSID] => e4801be0b3a4c88e74b1ddf09887145b
    [251bdeb6232516f1bd3e400d5d9aeb7a] => edda35c57799f1d051febee9904e3fec
)

==========================
SESSION :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version        5.3.27           OK   
MySQL version      5.1.70-beget-log OK   
Coppermine version 1.5.24           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://dalida-legenda.com/gallery/         
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath               /usr/local/bin/                             
lang                 russian                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                curve                                       
thumb_method         im                                         

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

==========================
Server restrictions
------------------
safe_mode                               
safe_mode_exec_dir                       
safe_mode_gid                           
safe_mode_include_dir                   
sql.safe_mode                           
disable_functions                       
file_uploads             1               
include_path             .:/usr/share/php
open_basedir                             
allow_url_fopen          1               
max_execution_time       240             
max_input_time           360             
upload_max_filesize      100M           
post_max_size            50M             
memory_limit             240M           
suhosin.post.max_vars                   
suhosin.request.max_vars                 


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     1.99 МБ  2.10 МБ
Page generation  39.93 ms 39.93 ms
Page query time  28.05 ms 28.05 ms
Page query count 28       28     


==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /gallery/upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1379792668567
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:   Все файлы
file_size_limit:          1024 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:         /gallery/images/browse_swf.png
button_width:             130
button_height:            20
button_text:             
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_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:             /gallery/upload.php
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:     
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: Все файлы (*.*)
SWF DEBUG: File Size Limit:        1048576 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImJkNWQwOTM2MGUyNjFhZWUwNzhlZGI5N2M2ZjQ3MjExIjt9
SWF DEBUG:                         timestamp=1379792666
SWF DEBUG:                         process=1
SWF DEBUG:                         form_token=036a7bcb92f5bb1450e9edd47bb92da3
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=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImJkNWQwOTM2MGUyNjFhZWUwNzhlZGI5N2M2ZjQ3MjExIjt9
SWF DEBUG: Global Post Item: timestamp=1379792666
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: form_token=036a7bcb92f5bb1450e9edd47bb92da3
SWF DEBUG: Global Post Item: album=35
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /gallery/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: 31809. Total: 31809
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.
Error Code: HTTP Error, File name: S04-037_b.jpg, Message: 302
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Logged

chouette

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Error 302
« Reply #4 on: September 21, 2013, 10:00:10 pm »

Username: beget-tech
Password: rainyday31

Album for test - Album
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Error 302
« Reply #5 on: September 27, 2013, 09:05:37 pm »

I always get
Quote
Cannot upload Zero Byte files.
with the flash uploader.
Logged

chouette

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Error 302
« Reply #6 on: September 30, 2013, 11:22:23 pm »

And what does it mean? What further steps could be?
The hosting provider says there is ok from his side and he did not find the solution.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Error 302
« Reply #7 on: October 04, 2013, 09:59:38 am »

I suggest to test 2 things:
1. Install a second test gallery on the same server and check if the flash uploader works as expected.
2. Mirror your gallery to a different server (e.g. localhost) and check if the flash uploader works as expected.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 21 queries.