Bug #3669
closedTextarea conditionals causing fatal error
Description
When using conditional self on a textarea field it appears to cause a fatal error.
Fatal error: Cannot access empty property in administrator/components/com_comprofiler/library/cb/cb.tables.php on line 791
Updated by krileon about 12 years ago
Was not able to confirm. Profile update and registration were all completely successful. I believe this is due to the following however.
$post_user->bindThisUserFromDbArray( $user );
That is not the correct way to bind an existing user to a new temporary object. It should be as follows.
foreach ( array_keys( get_object_vars( $user ) ) as $k ) {
if ( substr( $k, 0, 1 ) != '_' ) {
$post_user->$k = $user->$k;
}
}
Updated by krileon about 12 years ago
Post variable also needs to be cleaned of all empty keys (no idea how this could happen, but lets be safe).
Updated by krileon about 12 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Updated by matthiasbehrends about 12 years ago
With v188 upon frontend profile update now a "Remote server or file not found" error results.
Updated by krileon about 12 years ago
Post your findings to the forums for review and investigation. Please do not add to closed tickets in such a manner, this is a forge and not a forum.