Project

General

Profile

Actions

Bug #3669

closed

Textarea conditionals causing fatal error

Added by krileon over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
28 August 2012
Due date:
% Done:

100%

Estimated time:

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

https://www.joomlapolis.com/forum/153-professional-member-support/208670-fatal-error-in-cbtablesphp-on-line-791?limit=6&start=12#208881

Actions #1

Updated by krileon over 11 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;
}
}

Actions #2

Updated by krileon over 11 years ago

Post variable also needs to be cleaned of all empty keys (no idea how this could happen, but lets be safe).

Actions #3

Updated by krileon over 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by krileon over 11 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by matthiasbehrends over 11 years ago

With v188 upon frontend profile update now a "Remote server or file not found" error results.

Actions #6

Updated by krileon over 11 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.

Actions

Also available in: Atom PDF