The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Submission Accounts: User can't delete upload file - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16)
+--- Thread: Submission Accounts: User can't delete upload file (/showthread.php?tid=1924)



Submission Accounts: User can't delete upload file - mrGarvin - Feb 29th, 2012

Hi Ben!
There was an old thread on this, but it might be a good idea to put it up again. I'm having problem letting the user delete files after submission and logging in to their accountusing version 1.2.8 of Submission Accounts.

I've created a form which is set to Private (one client has access...does this influence it?)
I've created a view which is set to Public (just in case)
In this view, which is associated with the form in Submission Accounts, all the fields are set to "editable". The view itself is also set to "Editable", but the user can't delete files. All other information is editable, but when the user click on the "Delete file" button nothing happens (not even a message). If I log in as the administrator and delete the file (no problem there), the user is able to upload a NEW file without problem, but can't delete it afterwards.

I've tried it on Safari and Firefox.

Any idea on this?


RE: Submission Accounts: User can't delete upload file - Ben - Mar 2nd, 2012

Hi Peter,

Cool, thanks for the bug report. I'll check this out tomorrow and get back to you. It sounds like maybe a JS error.

Two little things you could test in the meantime: have you ran the System Check module? Run the Hook Verification test in particular. Secondly, are you running the latest version of the File Upload module (1.0.9)?

Quote:I've created a form which is set to Private (one client has access...does this influence it?)

That sounds fine. As long as a person can see the field + it's marked as editable, they should be able to delete the file. Sounds like a bug!

- Ben


RE: Submission Accounts: User can't delete upload file - mrGarvin - Mar 2nd, 2012

Hi Ben.
Thanks for the reply.
I updated to version 1.0.9 of the file upload module (had one version back).
I then did the system check (actually didn't have it installed...bummer) and ran across the following problems:
Code:
Extended Client Fields: ERROR, too many hooks

Submission Pre-Parser: ERROR, too many hooks

Swift Mailer: ERROR, too many hooks
The hooks was repaired successfully.
But I still can't delete a file logged in as a user.
Have a good weekend Ben! Don't work your self to death :-)


(Mar 2nd, 2012, 12:27 AM)Ben Wrote: Two little things you could test in the meantime: have you ran the System Check module? Run the Hook Verification test in particular. Secondly, are you running the latest version of the File Upload module (1.0.9)?




RE: Submission Accounts: User can't delete upload file - Ben - Mar 3rd, 2012

Strange! I tested it out today and everything seems to work properly on my end. What version of the Core are you running, btw?

Haha, thanks. I'm actually heading back home to Vancouver tomorrow. Over 28 hours of traveling... ah fun. ;-)

- Ben



RE: Submission Accounts: User can't delete upload file - mrGarvin - Mar 3rd, 2012

Ah...stupid me. I suddenly realised that i'm using an old custom template and you've propably changed some JS since then. I tried to switch to the default template and, behold, there was light...or at least a deletion of files.... Now the dialogue box appeared.
Sorry to take up your time...

All the best, and thanks again.


RE: Submission Accounts: User can't delete upload file - mrGarvin - Mar 5th, 2012

Scheisse... problem NOT solved.
It all works fine when I log in as a user after submission, BUT I can't delete a chosen file during the submission process using Form Builder. When I reach the Review page and click EDIT the same thing happens. Can't delete the file here.
Weird...
The only changes I've done here is to duplicate your theme "Pro Simple", edit the CSS a bit (changed colors) and added some text on the Form Page template, i.e. used the "if $current_page" syntax. Like so:
Code:
{{if $current_page == 1}}
Börja med att fylla i informationen om dig själv. Välj ett lösenord också (då kan du ändra din anmälan i efterhand och t ex lägga till ett paper).
{{/if}}
{{if $current_page == 2}}
Gör dina val i samband med årsmötet. Dels vilken arbetsgrupp du vill vara med i samt middagen på kvällen.
{{/if}}
{{if $current_page == 3}}
Kommer du att delta med ett paper på årsmötet? Isåfall fyller du i den här sidan också, men du kan även välja att göra det vid ett senare tillfälle genom att logga in på din anmälan (mer information kommer i bekräftelsebrevet). Om du inte deltar med paper hoppar du över detta steg.
{{/if}}
{{if $current_page == 4}}
Slutligen, kika igenom dina uppgifter. Om du vill ändra något klickar du på "Ändra" i högra kanten. Genom att klicka på fortsätt längst ner så skickas din anmälan in.
{{/if}}
Any ideas?


RE: Submission Accounts: User can't delete upload file - Ben - Mar 16th, 2012

Hi Peter,

Sorry for the wait on this. This is a bug. I'll try to get the bottom of it and get a fix out today.

- Ben


RE: Submission Accounts: User can't delete upload file - Ben - Mar 16th, 2012

Hi Peter,

Here's how to fix it:

1. Upgrade to the latest File Upload module (1.1.0):
http://modules.formtools.org/field_type_file/download.php

2. In your custom template set, edit your "Form Page" template type. There, inside the <form> ... </form> tags, add this hidden field:
Code:
<input type="hidden" id="form_tools_published_form_id" value="{{$published_form_id}}" />

That provides some info to any javascript in the page. It's needed by the updated File Upload field type module to locate the appropriate file to remove.

That should be it!

I'm going to update the Form Builder module now so that all Template Sets include that new hidden field.

Again, sorry for the long response time!

- Ben


RE: Submission Accounts: User can't delete upload file - mrGarvin - Mar 19th, 2012

Thanks Ben! It works now. *happy monday*


RE: Submission Accounts: User can't delete upload file - Ben - Mar 21st, 2012

Excellent! Thanks for letting me know about this.

- Ben