Page 1 of 1

Frontendusers - Delete Image (as FEU user), BUG

Posted: Fri Sep 11, 2009 7:54 am
by nforcer
Whenever an image is set as a (feu) user property and the front end user uploaded the image in his settings, he can not remove it! It is already reported as 3734 bug against FEU 1.6.7 (not solved) and again against FEU 1.6.9 (bug 4000) where it still occurs. I just need a fix or workaround or ... Any help is appreciated! Thanks in advance!

Re: Frontendusers - Delete Image (as FEU user), BUG

Posted: Thu Sep 17, 2009 2:16 am
by carterbeech
I'm having the same problem.  Any fixes out there?

Re: Frontendusers - Delete Image (as FEU user), BUG

Posted: Mon Sep 21, 2009 6:20 am
by nforcer
Actually, i tried to find the problem in the code.. it seems there is only ONE place where the unlink part (delete if you are unfamiliar with php) takes place. Adding some echoes, i see the code is only reached when the "clear" checkbox is ticked in the backend! Ticking the box in the frontend and submiting, he never reaches the unlink part ...
All form fields are set correctly and are send, you can get the fields.. but as it seems that the image part especially the clear is never evaluated, it is no surprise it is not deleted.

I actually have a "hack" workaround, but I have to check whether it is "safe" to use for others or to show the code.. it is a smarty tag you have to embed which checks for the image form fields, escpecially the clear and then performs the steps FEU fails to do... I am currently in office but I will check it when back home and post it then

Re: Frontendusers - Delete Image (as FEU user), BUG

Posted: Mon Dec 14, 2009 11:39 am
by Rolf
If this problem still excist in release 1.16.11, you better put in another bugreport...
http://dev.cmsmadesimple.org/bug/list/14

And add this fix (or a link) into it, perhaps it will help the developper.

Grtz, Rolf  :)