Not sure weather this issue belongs in the eva module section or ubercart section. the error directs to eva module but is generated when using ubercarts
The issue is created when a user adds an item to the ubercart.
Im using profile2/ profile reg path to create custom registration pages that allow members to sign up for certain roles. Both roles and user system is based on a premium membership site, so the user must pay for access, after registration they are directed to the ubercart where they must complete payment to be assigned the role. Once the user is directed to the ubercart and adds the membership type to there cart this error is presented
Notice: Undefined variable: entity in _eva_extract_entity_from_build() (line 148 of /path-to-site/sites/all/modules/eva/eva.module).
That line relates to this function
function _eva_extract_entity_from_build($build) {
// EntityAPI often sticks stuff in here.
if (!empty($build['#entity'])) {
return $entity;
}
// Other entities stick them here!
elseif (!empty($build['#' . $build['#entity_type']])) {
return $build['#' . $build['#entity_type']];
}
// Some entities are naughty.
elseif ($build['#entity_type'] == 'user') {
return $build['#account'];
}
elseif ($build['#entity_type'] == 'taxonomy_term') {
return $build['#term'];
}
return FALSE;
}Any help apprectiated
Comments
Comment #1
mkadin commentedWe're seeing some issues with profile 2 that need to be sorted out probably. #1574992: Attached view no longer displays after user edits Profile 2 for example. Profile 2 might not follow conventions in where it stores its entity type in the build array. I'm looking into it.
Comment #2
jkirkby commentedOk thanks!! let me know if you need any more information.
Comment #3
jkirkby commentedSeeing more errors this time when i go admin -> people and click on a users name to view there profile
Comment #4
mkadin commentedThis is actually a duplicate of this: #1298864: Error while viewing nodes with field collections when eva module enabled. Sorry for not recognizing this. A new release with the fix is coming soon. Or you can use the dev release to get the fix now.