CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration Form Crash
Pages: [1]

Author Topic: Registration Form Crash  (Read 1602 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Registration Form Crash
August 17, 2009, 12:43:22 pm
All registrations are crashing when I try to register for an event. The following backtrace appears:

/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration.php, fatal, 303
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php, preProcess, 67
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 312
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 98
/home/xxxx/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/xxxx/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 245
/home/xxxx/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 205
/home/xxxx/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 342
, civicrm_invoke,
/home/xxxx/public_html/includes/menu.inc, call_user_func_array, 348
/home/xxxx/public_html/index.php, menu_execute_active_handler, 18

Does anyone know why this could be?

Thanks,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration Form Crash
August 17, 2009, 01:18:36 pm

by any chance did u remove the location type "Billing" from your config?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Registration Form Crash
August 18, 2009, 06:09:11 am
Hi Lobo,

Yes I did... does it have to be there to use events? That seems like a big problem for people only putting on free events?

Thanks,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration Form Crash
August 18, 2009, 06:51:58 am

yes, it is needed. we use it for free events on civicrm.org quite a lot and it works fine.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Registration Form Crash
August 19, 2009, 07:28:38 am
Thanks Lobo,

Our client is an institution and will never charge for any services. In this case is there any way to omit the billing address from address selection yet still have civi events work? Having a billing address there is confusing for them as it will never be used for anything.

Thanks,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration Form Crash
August 19, 2009, 08:02:47 am

currently no. To get around it, u'll have to hack the code, but i would not recommend it. We should have abstracted it a bit more when we first built it :(

lobo

p.s> did u figure out the acl issue and pegging mysql? can u update the forums as to what the issue was etc
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Registration Form Crash
August 19, 2009, 09:39:09 am
Thanks Lobo,

Shame about the billing thing and a real problem for us at this stage - however we'll just have to get the client on board. Unlikely to hack the code as we're desperately trying to keep things within the upgrade path in a clean and easy way.

Re: the other problem, no we didn't fix this. I'm going to take a look at it again today, it seems to be a problem with the amount of ACL's we have, or that one of them is causing the problem, but as we have 40 or more then I have to check them one by one... ouch.

Will update as soon as I know more.

Thanks as always,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration Form Crash
August 19, 2009, 10:35:13 am

Hey Adam:

how about u get one of your developers to contribute a patch to fix the Billing location type issue?

I thought a bit about that, and i suspect the solution is quite easy:

1. create a setting in the preferences to store the location type used for transaction pages. The default is "Billing"

2. Change the code to retrieve the location type specified in the setting rather than being hard coded to Billing

I suspect this will be 3-5 hours worth of development (maybe less) and 3-5 hours worth of QA :)

regarding ACL's we strongly recommend that if you have lots of acl's u should use acl hooks :) Likely to be more more efficient

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Registration Form Crash
August 19, 2009, 08:04:37 pm
Thanks Lobo... will look into the billing address issue. Reckon one of my guys could play with that...

Can you inform me a bit more about ACL hooks? I'm not completely clued up on details like this! I understand most things so if you could give a quite intro it would be great (or somewhere this is already - did a search but don't find an overview). Would be great if you have a chance.

Best,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration Form Crash
August 20, 2009, 05:06:24 am


check the sample hook implementation in

civitest.module.sample

also check: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

http://civicrm.org/node/381

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration Form Crash

This forum was archived on 2017-11-26.