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 error 302  (Read 22104 times)

0 Members and 1 Guest are viewing this topic.

crashfab

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Upload error 302
« on: December 15, 2012, 06:47:14 am »

I just installed 1.5.20 (I have been running 1.4 on another site for a couple years with no problems) and the upload fails using flash upload but works using the single upload.

URL-- http://warcrc.org/Coppermine/index.php

User--tester
password--tester

I have followed this to a tee--  http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_support

I am at a loss and I have compared my working gallery settings the best I could. Any help would be apreciated.

Logged

crashfab

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Upload error 302
« Reply #1 on: December 16, 2012, 01:04:42 am »

Here is the debug code

Code: [Select]
USER:
------------------
Array
(
    [ID] => c7825bb3a7c6684df0ba02207a520b5d
    [lang] => english
    [upload_method] => swfupload
    [liv] => Array
        (
            [0] => 3
            [1] => 2
        )

    [uid] => 2
    [am] => 1
)

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

    [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] => 0
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => uploader
    [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 cpg15x_config [include/init.inc.php:179] (1 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0 ms)
    [2] => DELETE FROM `warcrc17_coppermine`.cpg15x_sessions WHERE time < 1355612542 AND remember = 0 [bridge/coppermine.inc.php:247] (0 ms)
    [3] => DELETE FROM `warcrc17_coppermine`.cpg15x_sessions WHERE time < 1354406542 [bridge/coppermine.inc.php:251] (0 ms)
    [4] => UPDATE cpg15x_config SET value = 1355616142 WHERE name = 'session_cleanup' [bridge/coppermine.inc.php:255] (0 ms)
    [5] => SELECT user_id, time FROM `warcrc17_coppermine`.cpg15x_sessions WHERE session_id = '0f8ce3a0175ebf8f167ac1f098db6dce' [bridge/coppermine.inc.php:263] (0 ms)
    [6] => SELECT user_id, user_password FROM `warcrc17_coppermine`.cpg15x_users WHERE user_id = 2 [bridge/coppermine.inc.php:275] (6 ms)
    [7] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `warcrc17_coppermine`.cpg15x_users AS u LEFT JOIN `warcrc17_coppermine`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' [bridge/udb_base.inc.php:70] (0 ms)
    [8] => SELECT user_group_list FROM `warcrc17_coppermine`.cpg15x_users AS u WHERE user_id='2' AND user_group_list <> '' [bridge/coppermine.inc.php:201] (0 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 (4) [bridge/udb_base.inc.php:323] (0 ms)
    [10] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 4 [bridge/udb_base.inc.php:327] (0 ms)
    [11] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (4) [bridge/udb_base.inc.php:340] (0 ms)
    [12] => UPDATE `warcrc17_coppermine`.cpg15x_sessions SET time = 1355616142 WHERE session_id = '0f8ce3a0175ebf8f167ac1f098db6dce' [bridge/coppermine.inc.php:320] (2 ms)
    [13] => UPDATE `warcrc17_coppermine`.cpg15x_users SET user_lastvisit = NOW() WHERE user_id = '2' [bridge/coppermine.inc.php:324] (1 ms)
    [14] => SELECT aid FROM cpg15x_albums WHERE moderator_group IN (4) [include/init.inc.php:269] (0 ms)
    [15] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:327] (0 ms)
    [16] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 2 [include/init.inc.php:385] (0 ms)
    [17] => DELETE FROM cpg15x_banned WHERE expiry < '2012-12-15 18:02:22' [include/init.inc.php:441] (0 ms)
    [18] => SELECT null FROM cpg15x_banned WHERE (user_id=2 OR '74.61.132.132' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:457] (0 ms)
    [19] => SELECT aid FROM cpg15x_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 cpg15x_albums INNER JOIN cpg15x_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] (5 ms)
    [21] => SELECT aid, title FROM cpg15x_albums WHERE category = 0 AND ((uploads='YES' AND (visibility = '0' OR visibility IN (4) OR alb_password != '')) OR (owner=2)) [upload.php:578] (1 ms)
    [22] => SELECT aid, title FROM cpg15x_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 `warcrc17_coppermine`.cpg15x_users WHERE user_id = '2' [bridge/udb_base.inc.php:740] (0 ms)
    [24] => SELECT cid, parent, name FROM cpg15x_categories WHERE 1 [upload.php:248] (0 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [bblastvisit] => 1321422048
    [bblastactivity] => 0
    [bbuserid] => 1
    [bbpassword] => c002430dba34db86dc7a8335e95ccd41
    [vbulletin_userlist_hide_avatars_buddylist] => 0
    [vbulletin_userlist_hide_avatars_incomingreqs] => 0
    [cpg15x_data] => YTo2OntzOjI6IklEIjtzOjMyOiJjNzgyNWJiM2E3YzY2ODRkZjBiYTAyMjA3YTUyMGI1ZCI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MTM6InVwbG9hZF9tZXRob2QiO3M6OToic3dmdXBsb2FkIjtzOjM6ImxpdiI7YToyOntpOjA7czoxOiIzIjtpOjE7czoxOiIyIjt9czozOiJ1aWQiO2k6MjtzOjI6ImFtIjtpOjE7fQ==
    [7e715af4dce9a22def82f3ee1ef5d077] => 324ddf630c36d5fd299f78569fb55692
    [bbforum_view] => d03e62dbdbd3f708f76d8ceb43c8d078ad54e346a-5-{i-10_i-1354252102_i-9_i-1354945377_i-11_i-1355333232_i-15_i-1355463404_i-13_i-1355333227_}
    [bbcpsession] => f68a37394cff95a78bcee31b332e9ff5
    [bbthread_lastview] => 7771b0eee0d73835f153d35d24b29f40904254eca-17-{i-10382_i-1355028469_i-10388_i-1354240331_i-10335_i-1354300155_i-9871_i-1354262965_i-10390_i-1354342714_i-10392_i-1355443038_i-10164_i-1355344629_i-10416_i-1354944183_i-10420_i-1355027522_i-10422_i-1355083101_i-10423_i-1355164558_i-10427_i-1355200464_i-10429_i-1355178787_i-10389_i-1355369976_i-10440_i-1355508394_i-10442_i-1355587142_i-10452_i-1355551334_}
    [PHPSESSID] => tfpslidfe19s745gaofibdg5h7
    [bbsessionhash] => 9d0f7d3ecc869d1ad2a24960eae5e494
)

==========================
SESSION :
------------------
Array
(
    [php_captcha] => 2de5eb9acf7d0bdd8f957a7d54380497
)

==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /Coppermine/upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1355616153859
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:          1144 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:         /Coppermine/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:             /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:        1171456 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         process=1
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImY1ZDEyNzhlODEwOWVkZDk0ZTFlNDE5N2UwNDg3M2I5Ijt9
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=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMiI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImY1ZDEyNzhlODEwOWVkZDk0ZTFlNDE5N2UwNDg3M2I5Ijt9
SWF DEBUG: Global Post Item: album=2
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /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: 32768. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 65536. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 98304. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 131072. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 196608. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 229376. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 262144. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 294912. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 327680. Total: 339422
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 339422. Total: 339422
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.
Error Code: HTTP Error, File name: IMG_2272.jpg, Message: 302
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Logged

crashfab

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Upload error 302
« Reply #2 on: December 17, 2012, 06:47:08 pm »

So I installed 1.5.14 and the same issue..

Nobody?
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Upload error 302
« Reply #3 on: December 17, 2012, 09:17:30 pm »

I receive an access denied error using your theme and curve. Try what is suggested in the error.

Image attached.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

crashfab

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Upload error 302
« Reply #4 on: December 17, 2012, 10:15:14 pm »

Odd. I don't get any error of that sorts. When I try to add the code(as shown in the .jpg) in the .htaccess file it simple crashes the site. 
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Upload error 302
« Reply #5 on: December 17, 2012, 10:25:19 pm »

Replace the HTML Entities with there character values. like &lt; is <
http://www.w3schools.com/html/html_entities.asp
http://www.w3schools.com/tags/ref_entities.asp
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

crashfab

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Upload error 302
« Reply #6 on: December 18, 2012, 03:19:29 am »

Thank you Jeff. It took me a couple hours of searching/reading to wrap my head around what you were saying but I got it. No more code.

Again thank you...

So the trouble was in the .htaccess file  8)
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Upload error 302
« Reply #7 on: December 18, 2012, 03:35:33 am »

Thank you for resolving your thread.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.