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 with customized template  (Read 6030 times)

0 Members and 1 Guest are viewing this topic.

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum
Upload error with customized template
« on: August 30, 2010, 03:29:32 am »

site:  http://shaneandpamela.com/cpg
I can PM a user/password if needed

I've attached a .zip of my customized theme and a couple of screenshots below.

Long and short is:
Upload works fine when I set the theme on the site to CURVE.
When I set the theme to twentyten1.5 and attempt an upload, I get a pop-up system message as seen below.  When I clear the message, and go to the album, the thumbnail and full size image are present (no intermediate images produced per setting in config).

Debug info:
Code: [Select]
==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /cpg/upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1283131622106
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:          30000 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:         /cpg/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:             /cpg/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:        30720000 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         process=1
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
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: album=23
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /cpg/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: 720896. Total: 1715192
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1048576. Total: 1715192
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1540096. Total: 1715192
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1715192. Total: 1715192
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data:
SWF DEBUG: success|albums/userpics/10001/thumb_2004_Banff_Trip_003.jpg
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

Any help is greatly appreciated!
Logged

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum
Re: Upload error with customized template
« Reply #1 on: August 30, 2010, 03:38:29 am »

Sorry, this is posted in the wrong board.  This should be in the cpg1.5 upload board.  My apologies. 

Can someone move this?  Or do I need to repost?
Logged

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum
Re: Upload error with customized template
« Reply #2 on: August 31, 2010, 03:52:52 am »

Debug info when photo is uploaded with CURVE theme - no system error given:
Code: [Select]
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: fileDialogComplete : Finished processing selected files. Files selected: 2. Files Queued: 2
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=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
SWF DEBUG: Global Post Item: album=23
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /cpg/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: 0. Total: 288687
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 288687. Total: 288687
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: success|albums/userpics/10001/thumb_2006_Illinois_River_Trip_010.JPG
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=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
SWF DEBUG: Global Post Item: album=23
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /cpg/upload.php for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 98304. Total: 279604
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 279604. Total: 279604
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Response Received: true Data: success|albums/userpics/10001/thumb_2006_Illinois_River_Trip_008.JPG
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

Debug info when photo is uploaded with custom theme - system error given, but photo is loaded into album:
Code: [Select]
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: fileDialogComplete : Finished processing selected files. Files selected: 2. Files Queued: 2
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: album=23
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /cpg/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: 276883. Total: 276883
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data:
SWF DEBUG: success|albums/userpics/10001/thumb_2006_Illinois_River_Trip_007.JPG
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: album=23
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjdmOGU2OGE3NmNjYjQ1YzY3ODI0YWI3NmQxMzg4NmUxIjt9
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /cpg/upload.php for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 261027. Total: 261027
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Response Received: true Data:
SWF DEBUG: success|albums/userpics/10001/thumb_2006_Illinois_River_Trip_005.JPG
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

When I attempt to upload with the customized theme, the file uploads correctly, but the generated thumbnail photo does not load below the queue, and the upload queue says the upload failed even though the photos are present in the correct album.
Logged

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum
Re: Upload error with customized template
« Reply #3 on: August 31, 2010, 04:39:02 am »

I have been remiss in including required info...

site: http://shaneandpamela.com/cpg
test user: jarbey
test pass: crow
Please upload to "test" album in "test" category

All files and folders in /albums are chmod to 777.
Simple upload for custom theme works perfectly.
Debug is on for everyone

I have turned off the plugin api and received the same error message as seen in my first post.
Logged

Nibbler

  • Guest
Re: Upload error with customized template
« Reply #4 on: August 31, 2010, 06:53:55 pm »

You have a blank line after the closing "?>" in your theme.php. Either remove the blank line or remove the closing "?>" tag completely.
Logged

Shane

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 76
  • Choose Again
    • The Philmont Forum
Re: Upload error with customized template
« Reply #5 on: September 01, 2010, 12:46:33 am »

Thanks again Nibbler.  I learn every time I ask.

Removing the blank lines following the closing "?>" fixed the issue.

I will post the theme in the theme contributions once I've finished with the css changes.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.