Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8245681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:15:51+00:00 2026-06-07T22:15:51+00:00

Not sure weather this issue belongs to the eva module or ubercart. the error

  • 0

Not sure weather this issue belongs to the eva module or ubercart. the error directs to eva module but is generated when using ubercart.

The issue is created when a user adds an item to the ubercart checkout.

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:15:53+00:00Added an answer on June 7, 2026 at 10:15 pm

    It’s a bug with the EVA module that was apparently fixed in their development branch last year. The line return $entity; should be return $build['#entity'];.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
Not sure how to ask this, but i'll give it a try: I have
Not sure if this is a big deal. But wondering why when the site
not sure what I'm missing here, but i keep getting the error. SQLSTATE[HY093]: Invalid
Not sure if this is the correct Stack Exchange website but here goes.. A
I'm not sure if this is possible, but if I wanted to say get
I am getting a leak on this line and I'm not sure why... weather.condition
Not sure whats going on here, or what could be the integer in this
Not sure if im just being stupid or something but here goes i work
Not sure if this is a security feature, an oversight, or me missing the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.