-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVENT: Mandatory key(s) missing from params array: contact_id #208
Comments
Hi @magnolia61 Our customers don't use event pages, so this has not been our focus of testing. If you could give us detailed instructions for reproduction, or even a PR, we can probably integrate this soon. |
@magnolia61 https://github.com/magnolia61 can you enable debug and backtrace in your civicrm and paste the result of On 11 November 2014 12:32, SYSTOPIA notifications@github.com wrote:
|
Hello Xavier and Björn, CiviCRM_API3_Exception: "Mandatory key(s) missing from params array: contact_id" #0 /home/stage/domains/ourdomain/public_html/sites/all/modules/civicrm_extensions/sepa_dd/CRM/Core/Payment/SDD.php(151): civicrm_api3("SepaMandate", "createfull", (Array:45)) |
@magnolia61 There seems to be something wrong with the payment processor when used in the context of events. I'm currently working a lot on the payment processor (see this branch) since the old implementation has a couple of weak spots. I'll be happy to let you know when the basic changes are done and back in trunk. Then we can start testing the improved implementation in your scenario and make it work. I'll be out for the next week or so, but I'm planning to do this first thing next year. Does that sound good to you? |
@systopia Actually in another dev site I'm using your bleeding dev_pp code. That stumbles over the hidden start date. I would love to have something (maybe ugly) working when the registration for our summercamps open january 1st. But I guess that is a bridge too far. Hope to work with you guys in the coming months to help test and feedback real scenarios. Thanks a lot for your work. |
Sorry, I won't be working on this until January 5th. But I'd be happy to have a look at your "maybe ugly" fixes then. |
@systopia enjoy your holidays ;) @magnolia61 // get the contribution via contactID Looking quickly at other payment providers, it seems that $params["contactID"] is already set (well, and seems to be the case for at least the participants) Can you try to replace this line: by and
X+ |
Unfortunately $params['contact_id'] = $params['contactID']; didn't work for me I have tried with &smartyDebug=1 but couldn't figure out why your supposed code would not work. Notice: Undefined index: contributionType_name in CRM_Core_Payment_SDD->doDirectPayment() (line 131 of /home/ozk/domains/ourdomain.nl/public_html/crm/sites/all/modules/civicrm_extensions/sepa_dd/CRM/Core/Payment/SDD.php). I guess not only the fact is to blame that I'm trying to use an event registration form, because using a standard contribution page I can only make recurring payments and not One Offs. Does this help? I'd love to do some more debugging or try out possible solutions to get one-off event registrations working ;) Any idea's? |
@magnolia61 I assume this is still an event registration page, correct? And is it the "bleeding" dev_pp code? |
Semi-good news! After todays commits I can register for an event without fatal errors. The hidden start date is no blocker and the contact_id get's set. Two things do not work well so far though:
I hope my testing & feedback helps to get the event registration SEPA OOFF's working :-) |
I just merged the dev_pp code into master. We fixed some more 4.5 issues, mostly related to java script. @magnolia61: Could you test again with today's master? And then maybe we could talk on Skype to discuss your findings...?
Definitely. And it's going to become even more important now that we're slowly going from development into testing phase for 1.1 |
I uploaded the current integrated master files and got the following results:
Later today we could go on skype to discuss a little easier. I am glad to help getting the event part functioning. |
Just a quick notice regarding this php message:
This can happen if the extension has not been uninstalled before updating to the latest master files. |
Of course. The process for updating from any source is:
Otherwise all (new) changes that need to be done upon install will not be applied. |
That makes perfect sense to me. After the payment processor has finished, |
@magnolia61 Making the payment processor work for event registration pages is work in progress - we're actually on this right now. I'll ask you to test this again soon. |
@magnolia61: I have now modified/extended the payment processor to work with event registrations. Could you please test with the current |
Event registrations now work out of the box! Congratulations! The only issue right now are:
The coming days we start with live transactions. I will get back to you with bugs, observations & suggestions :-) Thanks for making this happen! |
Thanks for testing. I moved the email issue to #237 |
When registering for an event I get the following after the confirmation screen
Mandatory key(s) missing from params array: contact_id
What is most probable at fault here? The fact that I use 4.5.3 of my Joomla install?
The text was updated successfully, but these errors were encountered: