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) »
  • CiviEvent simple profile = 500 Server Error - Replaced Event to fix.
Pages: [1]

Author Topic: CiviEvent simple profile = 500 Server Error - Replaced Event to fix.  (Read 368 times)

Rick Cunningham

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 3
    • Landings Men's Golf Association
  • CiviCRM version: 4.5.7
  • CMS version: Drupal 7.34
CiviEvent simple profile = 500 Server Error - Replaced Event to fix.
March 05, 2015, 07:54:28 pm
Update - there was something broken about the combination of event and profile(s) - the event was actually a copy of the same event from last year. Final solution was to delete the two events, delete fields, field sets, profiles, and then redefine all the above. (I actually copied field by field from old events before deleting - lots of customization in online signups etc.) This took more than 12 hours to debug. There was a nagging thought in the back of my mind that I should have done this earlier, but I did portions of it several times, and only very late in the process did I delete and replace the event itself. Probably a lesson here, but I'm too tired to know exactly what it is. My experiments of adding and subtracting fields from profiles were all meaningless since there was an underlying flaw that was blowing the registration up. Thinking a particular field was the culprit was ultimately a wild goose chase...
=============================
I have a fairly simple event registration form that is driving me nuts! This is for a golf event, and what I'd like to collect is:
four names in four text boxes (I don't want to create new users or contacts for these)
four choices for tees to play from (radio button list of four different sets of tees - championship, etc. etc.)
one notes box (5 or 6 lines) in which the registrant can specify how to pair up the people, who else to pair with if they are only registering one or two or three of the foursome, how to divvy up the charges if they choose etc.

In other words 4 small text boxes, 4 sets of radio buttons, and one notes box

After hours of spiraling down from a more sophisticated design for this, I'm at the point where I have scrapped most everything and am assembling new profiles from new custom fieldsets, etc.
When I put in one name box, one radio choice box, a second name box, and one notes box, it's swoosh fast and registration goes to completion. When I add one more simple name box, I get a 30 second wait and a 500 Server Error. Attached is what the desired profile looks like.

I've got 300 people planning to be able to apply for these tickets starting late tomorrow morning - have never had this issue before in scores of events like this. Has anyone run into something like this before where collecting 4 items of info is trivial and fast, and trying to collect 5 or 6 pieces of info sends processing off a cliff? My hosting provider tech folks confirm that the registrations that work (4 items of info) works quickly (their words) that the ones that fail go over their 60 second script timeout limit.
« Last Edit: March 05, 2015, 11:25:06 pm by Rick Cunningham »

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviEvent fairly simple profile causes 500 Server Error - Have tried everything!
March 05, 2015, 08:50:47 pm
Given that we saw this work this morning after getting rid of the second notes box, let me ask - have you tried clearing the CiviCRM cache (Administer —> System Settings —> Cleanup Caches and Update Paths and then hit the Cleanup Caches button) and clearing the cache on your browser? It's a long shot but given the amount of adding and deleting and testing you've done today, it's not a bad place to start.

Guy Iaccarino
www.greenleafadvancement.com

Rick Cunningham

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 3
    • Landings Men's Golf Association
  • CiviCRM version: 4.5.7
  • CMS version: Drupal 7.34
Re: CiviEvent fairly simple profile causes 500 Server Error - Have tried everything!
March 05, 2015, 09:08:32 pm
Guy - thanks for checking in. I think what we saw earlier is just about the same thing here. I can remove a price set, or I can remove some fields from a profile, and at some point it works in about 1000 ms. Adding even one simple small 255 char text field causes 500 Server Error with 63000MS timeout.

So I cleared those caches and rebuilt menus and nothing changed.

My current profile consists of fields from a field set used for participants, and I'm now reconstructing another version of field set suitable for participants "in two types of events" instead of all participants of all types.

Rick Cunningham

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 3
    • Landings Men's Golf Association
  • CiviCRM version: 4.5.7
  • CMS version: Drupal 7.34
Re: CiviEvent fairly simple profile causes 500 Server Error - Have tried everything!
March 05, 2015, 09:23:15 pm
Still not working. See images of two profiles attached
First profile gets registration completed in 1000 ms including response emails, etc.
Second profile has one extra field (a 255 char text field) and times out at 63000 ms

Aaarrrgh!

Rick Cunningham

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 3
    • Landings Men's Golf Association
  • CiviCRM version: 4.5.7
  • CMS version: Drupal 7.34
Re: CiviEvent fairly simple profile causes 500 Server Error - Have tried everything!
March 05, 2015, 09:26:58 pm
OK, I might just be getting somewhere. I have made new field sets, new fields, new profiles, and new events and was just able successfully to collect the first 5 pieces of data. Let's see if we can get all 8!

Everything is working now - can collect arbitrary amounts of info now that the old events have been discarded and all the field sets, fields, and profiles have as well.

So a lesson here is:
When you need to fix an event registration that's blowing up, take the profile(s) and disable fields until you get it working. Then re-enable them until it breaks. If it goes from 1 second to 60 seconds upon adding a single box, then there's some data inconsistency. I don't know of a sophisticated way of debugging, but I'm very relieved that this is now going to work and is back to being good old stable CiviCRM! Thanks everyone for help!
« Last Edit: March 05, 2015, 11:15:16 pm by Rick Cunningham »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent simple profile = 500 Server Error - Replaced Event to fix.

This forum was archived on 2017-11-26.