CMS MADE SIMPLE FORGE

Frontend Users

 

[#6326] Can't update users without losing data

avatar
Created By: Steven (CalMah)
Date Submitted: Sun Mar 27 10:13:54 -0400 2011

Assigned To:
Version: 1.12.13
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Can't update users without losing data
Detailed Description:
I have a problem with a User Property called pic, which is set as Type: Picture.
Whenever I update one of my users, the row that holds the pic information is
deleted from the database.
Before editing, the pic shows on the page, as soon as I click submit, it's gone.

After that, I can't add a new picture, unless if I create a new user with all
the user info.
For reproducing, I did not change the picture when updating the user, only other
text fields.


History

Comments
avatar
Date: 2011-03-31 13:13
Posted By: Micah Godbolt (micahgodbolt)

I am having the exact same problem. To shed a bit of light, it is happening to
all of my photo properties. It only happens when updating from the admin panel
(loging in as FE user on frontend and editing your profile, the photos work
properly)

I've verified this problem on multiple sites. New users photos work, but open
and update the profile via the admin panel, and the photos are removed from the
profile (though they stay on the server).
      
avatar
Date: 2011-03-31 13:48
Posted By: Robert Campbell (calguy1000)

Fixed in SVN.
      
avatar
Date: 2011-04-01 10:47
Posted By: Micah Godbolt (micahgodbolt)

Thanks Robert! This one was driving me nuts! I'd be happy to beta test that code
if you have it available :)
      
avatar
Date: 2011-04-18 08:44
Posted By: nic mare (nicmare)

same problem here. is there a quick solution for that? somewhere in
action.do_edituserx.php ?
      
avatar
Date: 2011-04-18 09:01
Posted By: nic mare (nicmare)

i think i found the problem:
Clear 
<input type="checkbox" value="clear" name="m1_input_image_clear">
the value is allways set to "clear". now we need to know how to disable it.
      
avatar
Date: 2011-04-18 11:53
Posted By: Steven (CalMah)

Looking forward to seeing this fix live, as I'm afraid to update my members atm.
Hope the database fields will be re-added when updating the user, after the
update...
      
avatar
Date: 2011-04-19 03:03
Posted By: nic mare (nicmare)

new version was released over night. thanks to its father calguy :D
      
avatar
Date: 2011-04-19 05:16
Posted By: Steven (CalMah)

Can't update to new version, get the following message:
Error parsing XML file. Please make sure you are uploading a .xml file and not a
.tar.gz or zip file. (Troubleshooting)
      
avatar
Date: 2011-04-28 05:25
Posted By: nic mare (nicmare)

error remains in the new update. as a admin i can upload images to user. but if
i edit an account which already has an image, the image gets lost after saving
:(
      
avatar
Date: 2011-04-28 05:26
Posted By: nic mare (nicmare)

which means the image is left on ftp but not any longer associated in the
database
      
avatar
Date: 2011-05-05 04:52
Posted By: nic mare (nicmare)

ok guys, i did some research on it. 
edit user with new image:
Array ( [firstname] => nic [lastname] => bugus [city] => berlin [country] =>
germany [graduated] => 2009 [occupation] => occu [report] => asfsdf [image] =>
::image:: [agreement] => 1 )

edit user with existing image: 
Array ( [firstname] => nic [lastname] => bugus [city] => berlin [country] =>
germany [graduated] => 2009 [occupation] => occu [report] => asfsdf [image] =>
::image:: [agreement] => 1 )

::image:: in both cases the same! maybe an error in php version. i use PHP
Version 5.2.12-0.dotdeb.0.

because the script checks if image greater than 0kb. and i think this is not
supported by the php version
      
avatar
Date: 2011-05-05 08:01
Posted By: nic mare (nicmare)

allright. i wrote a small workaround to fix this. be careful when using my file.
i recommend to wait until calguy fixed this in the svn:
http://dl.dropbox.com/u/139690/action.do_edituser3.php.zip
      
avatar
Date: 2011-05-12 00:03
Posted By: Robert Campbell (calguy1000)

fixed in svn.
      
avatar
Date: 2018-06-14 09:18
Posted By: nic mare (nicmare)

any chance to set the page to noindex or delete my post from 2011-05-05 04:52 ?!
thanks
      
Updates

Updated: 2011-11-03 00:40
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-05-12 00:03
resolution_id: 5 => 7

Updated: 2011-05-11 04:08
resolution_id: 8 => 5

Updated: 2011-05-11 04:07
resolution_id: 7 => 8

Updated: 2011-03-31 13:48
resolution_id: 5 => 7

Updated: 2011-03-27 10:16
summary: Can't update users without loss off info => Can't update users without losing data
resolution_id: => 5