I get errors everytime after I clicked on donate button. Also I have installed Commerce PayPal module and using as a payment method.

Notice: Undefined index: donation_amounts_label in redhen_donation_form() (line 464 of C:\wamp\www\profiles\redhen_raiser\modules\contrib\redhen_donation\includes\redhen_donation.forms.inc).

Notice: Trying to get property of non-object in redhen_donation_form_submit() (line 790 of C:\wamp\www\profiles\redhen_raiser\modules\contrib\redhen_donation\includes\redhen_donation.forms.inc).

Comments

dureaghin’s picture

Priority: Major » Normal
dureaghin’s picture

Fixed, after upgrading to redhen_donation 7.x-1.x-dev

dureaghin’s picture

Status: Active » Fixed
jclayton’s picture

Is there anything else that you did? I am running into the same error. Updated to the latest dev version, and still have the same errors.

Specifically, the error I get is:

Notice: Undefined index: donation_amounts_label in redhen_donation_form() (line 464 of /srv/bindings/c6515fe93ef347b496c2c97bc657c845/code/profiles/redhen_raiser/modules/contrib/redhen_donation/includes/redhen_donation.forms.inc).

gcb’s picture

Category: Bug report » Support request

@stickycenter try editing the donation settings on your entity once and re-saving.

jclayton’s picture

I am not sure what you meant by that. I went back and looked through the donation settings wherever I could find them and re-saved.

So I set up PayPal with a test account, donated through one of my campaigns by clicking donate on the campaign pages. I filled out the webform, and then hit donate, which I thought would take me to the Paypal site to finish the transaction. It did not. I came up with an error of:

Notice: Undefined variable: transaction in redhen_donation_form_submit() (line 840 of /srv/bindings/c6515fe93ef347b496c2c97bc657c845/code/profiles/redhen_raiser/modules/contrib/redhen_donation/includes/redhen_donation.forms.inc).

It added the amount to the total donated for that campaign, but never gave me the opportunity to complete the transaction. It just returned to the originating page.

Any help you could offer would be great.

Update: If I go back to try to look at those donations that supposedly processed, I get this error:
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 736 of /srv/bindings/c6515fe93ef347b496c2c97bc657c845/code/profiles/redhen_raiser/modules/contrib/entity/includes/entity.wrapper.inc).

gcb’s picture

@stickycenter the re-save should solve the original issue there. As far as Paypal, redhen donation isn't presently functional with that payment method. We're working on it! (any help would be welcome)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gusaus’s picture

Version: 7.x-1.1 » 7.x-1.5
Assigned: dureaghin » Unassigned
Status: Closed (fixed) » Active

Apologies for revisiting a closed issue... but I'm getting a similar message upon making a donation (also w/ Commerce PayPal module and using as a payment method) -

Notice: Undefined variable: transaction in redhen_donation_form_submit() (line 905 of /srv/bindings/4eda9334f81f4dcab5cc96d020b29575/code/profiles/redhen_raiser/modules/contrib/redhen_donation/includes/redhen_donation.forms.inc).

Does this mean that Commerce PayPal is still not functional per #7?

Much thanks.

cavinm’s picture

Hi, you mentioned that paypal is not supported, what methods are supported, I can write a mobile money module, let me know how i can be of help. Mobile money is widely used in East Africa.

gcb’s picture

We've made heavy use of IATS, as they are mission-aligned with donation based organizations. Any payment tool that does direct form processing will work fine, it's the tools that redirect and loop back or similar extra complexity that cause problems.