Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
dureaghin CreditAttribution: dureaghin commentedComment #2
dureaghin CreditAttribution: dureaghin commentedFixed, after upgrading to redhen_donation 7.x-1.x-dev
Comment #3
dureaghin CreditAttribution: dureaghin commentedComment #4
jclayton CreditAttribution: jclayton commentedIs 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).
Comment #5
gcb@stickycenter try editing the donation settings on your entity once and re-saving.
Comment #6
jclayton CreditAttribution: jclayton commentedI 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).
Comment #7
gcb@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)
Comment #9
gusaus CreditAttribution: gusaus commentedApologies 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) -
Does this mean that Commerce PayPal is still not functional per #7?
Much thanks.
Comment #10
cavinm CreditAttribution: cavinm commentedHi, 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.
Comment #11
gcbWe'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.