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: Upload Error  (Read 8428 times)

0 Members and 1 Guest are viewing this topic.

adw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Upload Error
« on: October 06, 2012, 05:38:33 pm »

Since upgrading to 1.5.20 i have been experiencing problems uploading Multiple Images at once. It begins to upload and then I get an
Upload Error: 302

I am able to upload single images perfectly. I have tried using different browsers and even creating a new coopermine gallery but the same issue occurs.

I've looked at the support documentation in this link  http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm but didnt find anything that would resolve this. Does anyone have any options or know how to solve this

Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Upload Error
« Reply #2 on: October 08, 2012, 11:29:13 am »

Some information about HTTP status code 302: http://en.wikipedia.org/wiki/HTTP_302
Logged

adw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Upload Error
« Reply #3 on: October 09, 2012, 11:50:53 pm »

I'm having issues when uploading on my Coppermine driven gallery http://aarondiazworld.com/images
When using http uploads (MULTI FILES) and the suggested settings for upload troubleshooting in place, I get the error message
 
Code: [Select]
Upload Error: 302
Here's the test user account data:
    Username: test
    Password: test
 
I have been using different images of different sizes and MB from google to test to make sure it wasnt an error with my images.

Having done as suggested in http://forum.coppermine-gallery.net/some_forum_thread didn't work as expected:
 I got this in the debug mode

Code: [Select]
USER:
------------------
Array
(
    [ID] => a8c7adb584f41bcac925c0330d68e72a
    [lang] => english
    [liv] => Array
        (
            [0] => 840
            [1] => 867
        )

    [upload_method] => swfupload
    [liv_a] => Array
        (
            [0] => 110
            [1] => 112
            [2] => 113
            [3] => 115
            [4] => 101
        )

    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => test
    [groups] => Array
        (
            [0] => 4
        )

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

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpgimg_config [include/init.inc.php:179] (0 ms)
    [1] => SELECT * FROM cpgimg_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0 ms)
    [2] => DELETE FROM `aarondi1_cpgimg`.cpgimg_sessions WHERE time < 1349815696 AND remember = 0 [bridge/coppermine.inc.php:247] (1 ms)
    [3] => DELETE FROM `aarondi1_cpgimg`.cpgimg_sessions WHERE time < 1348609696 [bridge/coppermine.inc.php:251] (0 ms)
    [4] => UPDATE cpgimg_config SET value = 1349819296 WHERE name = 'session_cleanup' [bridge/coppermine.inc.php:255] (0 ms)
    [5] => SELECT user_id, time FROM `aarondi1_cpgimg`.cpgimg_sessions WHERE session_id = '537185565209b4eb8d58aa7519c197db' [bridge/coppermine.inc.php:263] (0 ms)
    [6] => SELECT user_id, user_password FROM `aarondi1_cpgimg`.cpgimg_users WHERE user_id = 2 [bridge/coppermine.inc.php:275] (0 ms)
    [7] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `aarondi1_cpgimg`.cpgimg_users AS u LEFT JOIN `aarondi1_cpgimg`.cpgimg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' [bridge/udb_base.inc.php:70] (2 ms)
    [8] => SELECT user_group_list FROM `aarondi1_cpgimg`.cpgimg_users AS u WHERE user_id='2' AND user_group_list <> '' [bridge/coppermine.inc.php:201] (1 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 cpgimg_usergroups WHERE group_id in (4) [bridge/udb_base.inc.php:323] (0 ms)
    [10] => SELECT group_name FROM cpgimg_usergroups WHERE group_id= 4 [bridge/udb_base.inc.php:327] (0 ms)
    [11] => SELECT COUNT(*) FROM cpgimg_categorymap WHERE group_id in (4) [bridge/udb_base.inc.php:340] (0 ms)
    [12] => UPDATE `aarondi1_cpgimg`.cpgimg_sessions SET time = 1349819296 WHERE session_id = '537185565209b4eb8d58aa7519c197db' [bridge/coppermine.inc.php:320] (0 ms)
    [13] => UPDATE `aarondi1_cpgimg`.cpgimg_users SET user_lastvisit = NOW() WHERE user_id = '2' [bridge/coppermine.inc.php:324] (0 ms)
    [14] => SELECT aid FROM cpgimg_albums WHERE moderator_group IN (4) [include/init.inc.php:269] (0 ms)
    [15] => SELECT lang_id FROM cpgimg_languages WHERE enabled='YES' [include/init.inc.php:327] (0 ms)
    [16] => SELECT user_favpics FROM cpgimg_favpics WHERE user_id = 2 [include/init.inc.php:385] (0 ms)
    [17] => DELETE FROM cpgimg_banned WHERE expiry < '2012-10-09 16:48:16' [include/init.inc.php:441] (0 ms)
    [18] => SELECT null FROM cpgimg_banned WHERE (user_id=2 OR '96.255.150.66' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:457] (0 ms)
    [19] => SELECT aid FROM cpgimg_albums WHERE (1  AND visibility != 0 AND visibility != 10002 AND visibility NOT IN (4)) [include/functions.inc.php:976] (0 ms)
    [20] => SELECT aid, title, cid, name FROM cpgimg_albums INNER JOIN cpgimg_categories ON cid = category WHERE category < 10000 AND ((uploads='YES' AND (visibility = '0' OR visibility IN (4) OR alb_password != '')) OR (owner=2)) [upload.php:576] (0 ms)
    [21] => SELECT aid, title FROM cpgimg_albums WHERE category = 0 AND ((uploads='YES' AND (visibility = '0' OR visibility IN (4) OR alb_password != '')) OR (owner=2)) [upload.php:578] (0 ms)
    [22] => SELECT aid, title FROM cpgimg_albums WHERE category='10002' ORDER BY title [upload.php:600] (0 ms)
    [23] => SELECT user_id AS user_id, user_password AS pass_hash FROM `aarondi1_cpgimg`.cpgimg_users WHERE user_id = '2' [bridge/udb_base.inc.php:740] (0 ms)
    [24] => SELECT cid, parent, name FROM cpgimg_categories WHERE 1 [upload.php:248] (0 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [wp-settings-1] => m1=o&editor=tinymce&m4=o&m5=o&m10=c&m6=o&m9=o&m11=c&m7=o&m8=o&m13=c&m12=o&mfold=o&hidetb=1&imgsize=medium&align=left&urlbutton=none
    [wp-settings-time-1] => 1349467065
    [__atuvc] => 2|19
    [cpg15x_data] => YTo2OntzOjI6IklEIjtzOjMyOiJhOGM3YWRiNTg0ZjQxYmNhYzkyNWMwMzMwZDY4ZTcyYSI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MzoibGl2IjthOjI6e2k6MDtzOjM6Ijg0MCI7aToxO3M6MzoiODY3Ijt9czoxMzoidXBsb2FkX21ldGhvZCI7czo5OiJzd2Z1cGxvYWQiO3M6NToibGl2X2EiO2E6NTp7aTowO2k6MTEwO2k6MTtpOjExMjtpOjI7aToxMTM7aTozO2k6MTE1O2k6NDtpOjEwMTt9czoyOiJhbSI7aToxO30=
    [000b48f55fbc378dd9615376f58d0998] => b3ec0b015a7a6ea2e8900dbb9e9b8b28
)

==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /images/upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1349819292493
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:          5024 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:         /images/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:             /images/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:        5144576 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         process=1
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjA5OGY2YmNkNDYyMWQzNzNjYWRlNGU4MzI2MjdiNGY2Ijt9
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: fileQueued : File ID: SWFUpload_0_1
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_2
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 3. Files Queued: 3
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjA5OGY2YmNkNDYyMWQzNzNjYWRlNGU4MzI2MjdiNGY2Ijt9
SWF DEBUG: Global Post Item: album=117
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /images/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.
Error Code: HTTP Error, File name: ADWfirmaGS34.jpg, Message: 302
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjA5OGY2YmNkNDYyMWQzNzNjYWRlNGU4MzI2MjdiNGY2Ijt9
SWF DEBUG: Global Post Item: album=117
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /images/upload.php for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_1. HTTP Status: 302.
Error Code: HTTP Error, File name: ADWfirmaGS35.jpg, Message: 302
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_2
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjA5OGY2YmNkNDYyMWQzNzNjYWRlNGU4MzI2MjdiNGY2Ijt9
SWF DEBUG: Global Post Item: album=117
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /images/upload.php for File ID: SWFUpload_0_2
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_2
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_2. HTTP Status: 302.
Error Code: HTTP Error, File name: ADWfirmaGS36.jpg, Message: 302
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

I'm not sure what else to do, this seemed to begin when I upgraded.
*** I can upload images if its one by one. But can't upload multiple images at once***
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Upload Error
« Reply #4 on: October 10, 2012, 09:29:10 am »

I just found this with Google: http://stackoverflow.com/questions/10488110/swfupload-302-error

Quote
SWFupload operates outside your browser scope. It will not use your browsers's cookies.

So the 302 status code seems to redirect the flash uploader to the login page. From what I found in our board using another browser (e.g. the Internet Explorer) should work. However, I just tested it with IE8 on your gallery and it also failed with 302. I currently wonder how/why it works on other galleries, when the flash uploader isn't logged in.
Logged

adw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Upload Error
« Reply #5 on: October 27, 2012, 08:40:32 am »

Andre thanks for your reply. I have tried using different internet browsers. Firefox, Safari, IE, Opera and continue to get error 302. I actually erased my gallery and set up a new one thinking maybe there had been an original problem with the installation. I still continue to get same error code.  I guess for now I will continue to upload one picture at a time...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Upload Error
« Reply #6 on: October 29, 2012, 02:39:31 pm »

As admin you can always use the batch-add feature. Alternatively, you can also try the JUpload plugin.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.