EllisLab text mark
Advanced Search
     
Safecracker file mishaps [URGENT]
Posted: 03 July 2012 09:29 AM   [ Ignore ]
Avatar
Joined: 2010-07-18
123 posts

Hey guys,

I’m using Safecracker file for an e-Learning environment, so kids can upload homework. Somehow, the files get associated with the wrong entries. So Student A’s homework file (homework is a channel) gets assigned to Student B’s homework entry… this is a VERY SERIOUS issue (they can’t check student’s homework if it’s misassigned), and can absolutely not wait until after 4th of july weekend. I can provide you with login info and examples if you like.

Thanks,

- Steven

 
Posted: 04 July 2012 11:25 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Steven,

...and can absolutely not wait until after 4th of july weekend.

I can appreciate your urgency on this. We are not all off, just reduced staff.

Anytime you have an issue like this, we can be one step ahead of the game if you provide as much detail as possible. That would include ExpressionEngine version information and template code, especially when dealing with SafeCracker.

There are several options available in SafeCracker that can assure that only the “author”, in your case, the students, are allowed to edit an entry. It sounds very much like that could be the case, but without your template code, I can’t know.

I look forward to your reply!

Cheers,

 

 Signature 

How may I help you?

 
Posted: 05 July 2012 02:40 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-18
123 posts

Sry ‘bout that, I’m running EE 2.4.0 Build: date 20120123. My Safecracker code looks like this:

{exp:safecracker
 channel
='homework'
 
include_jquery='no'
 
return='lessen-maken/ingeleverd'
 
id='homework'
 
dynamic='no'
}
 
<input type="hidden" name="title" value="{visitor:global:member_firstname} {visitor:global:member_lastname} - {segment_4} - {segment_3}">
 <
input type="hidden" name="homework_course[selections][]" value="{segment_3}">
 <
input type="hidden" name="homework_period[selections][]" value="{segment_4}">
 <
input type="hidden" name="status" value="Na te kijken">
 <
div class="info">
  
{exp:low_variables:parse var="homework_popup_inleveren"}
 
</div>
 <
span class="upload-wrapper">{field:homework_file}</span>
 <
button type="submit" class="button-submit">Inleveren</button>
{/exp:safecracker} 

The 2nd and 3rd hidden input set a Playa-field. As you can see I’m using Zoo Visitor to also set a title for each new homework-entry. For the entries that have mismatched homework the Author set for the entry matches the first- and lastname in the title, but when I open the file I can see the actual name of the student that made the homework in there (they’re required to add it to the first page of their homework) and it’s an entirely different student. I’ve tried uploading homework myself and this didn’t happen (it’s only 3 entries of about 40-50 total that show this behaviour), and I’m really stumped as to what might cause this… perhaps if an entry is created at roughly the same time as another it sort of misfires?

 
Posted: 05 July 2012 03:33 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-18
123 posts

Also really weird is that most of the time files get temp_file_ prepended to their filename (so you end up with “temp_file_Homework_x_by_y.pptx”... Any thoughts on why that would happen?

 
Posted: 06 July 2012 10:17 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hello Digitaal Dier,

Thank you for providing more information.

I do not see anything in the safecracker form that you provided that stands out. With Playa and Zoo Visitor in the picture it could be any number of things. I saw this post before I left my shift yesterday and was thinking about it off and on until now. I cannot think of anything in ExpressionEngine that would account for this.

To test can you try just a basic form in it’s own template and submit several times with different authors to see if that creates a wrongly assigned example? I would like the Third Party Add-Ons ruled out. I have a feeling there is something that needs to be tweaked with this customized set up.

You can also double post if you want and ask the same question in the Community Help Forum. Someone in the community may have run into this. And it would not hurt to let the Zoo Visitor devs know what you are trying to do, they may have a better idea about it. Just some information and consideration for you.

Please let me know what your test results yield.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 19 July 2012 10:47 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-03-26
1664 posts

I just posted about this issue in another thread, where “temp_file_ is getting added to the filename. This happened to be a new development for us - this was not happening before. Details in the other thread, but wondering if there is a resolution to be found in these forums somewhere?

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

 
Posted: 20 July 2012 04:59 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey mdesign,

Gotcha covered in this thread.

Thanks,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 17 August 2012 10:36 AM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2010-07-18
123 posts

Hey guys,

This hasn’t been resolved yet, and both me and my client are running out of options. I’ve built an application for them and it can’t even meet it’s most basic requirements. Can you please please login and see if you can find anything? I’m lost here.

Thanks,

- Steven

 
Posted: 17 August 2012 04:47 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hey Steven,

Sure thing. Be on the lookout for an email from EllisLab.

~

 Signature 

How may I help you?