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) »
  • Fatal Error with registering multiple participants to an event
Pages: [1]

Author Topic: Fatal Error with registering multiple participants to an event  (Read 1155 times)

itkadmin

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.92
  • PHP version: 5.3.5
Fatal Error with registering multiple participants to an event
June 29, 2011, 07:16:39 am
We recently upgraded to version 3.4.4

I am having a problem registering multiple people to events. I have the same issue weather it's allowing registeration under a single email or not.

When you register more than 1 participant, all works fine until you get to the confirmation screen.
After submitting the registration, the browser spins it's wheels until I get the following error

Fatal error: Maximum execution time of 240 seconds exceeded in /home/xxxx/public_html/sites/all/modules/civicrm/packages/dompdf/include/font_metrics.cls.php on line 161


The error is found in various files, but the "Fatal error: Maximum execution time of 240 seconds exceeded in..." is always the same.

I did some digging and found some issues with memory errors if memory limit is set too low.  Normally our memory limit is set to 1024 M (huge), I upped it to 2048 M and still had the same problem.
max_execution_time and max_input_time are both 240

The information is being passed to the database. When you go look at participants, you can see the people that were added. It's the confirmation steps that are going wonky.

This was working for us in 3.4.3.

any ideas?



Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Fatal Error with registering multiple participants to an event
June 29, 2011, 08:25:06 am
Go to your civicrm.settings.php file (located at www/sites/default) and add this line to the bottom of the document:

Code: [Select]
ini_set('max_execution_time', 0); // won't work if running in safe mode
Give that a go and see if it helps.

itkadmin

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.92
  • PHP version: 5.3.5
Re: Fatal Error with registering multiple participants to an event
June 29, 2011, 10:14:15 am
Not sure I want to try that one.

IF some script somewhere is causing things to spin out of control, giving it forever to execute itself won't solve the problem. As it is, it has 240 seconds to execute. Not many users will wait more than that for a script to run.

I could try for a test.

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: Fatal Error with registering multiple participants to an event
June 29, 2011, 10:40:03 am

this is caused by the PDF receipt generator. You can turn it off in 3.4.4 / 4.0.4 here:

http://drupal.demo.civicrm.org/civicrm/admin/setting/misc?reset=1

Attach PDF copy to receipts

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

itkadmin

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.92
  • PHP version: 5.3.5
Re: Fatal Error with registering multiple participants to an event
June 29, 2011, 12:58:19 pm
THANK YOU!   Been going nuts trying to sort this out!

Osvaldo

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • Open source rocks!
Re: Fatal Error with registering multiple participants to an event
February 06, 2013, 03:30:18 pm
Quote from: Donald Lobo on June 29, 2011, 10:40:03 am

this is caused by the PDF receipt generator. You can turn it off in 3.4.4 / 4.0.4 here:

http://drupal.demo.civicrm.org/civicrm/admin/setting/misc?reset=1

Attach PDF copy to receipts

lobo

Hi there,

We've just experienced this issue when registering multiple participants for an event. We disabled the PDF receipt generator and the error went away. We're using CiviCRM 4.1.5 on a Drupal 6 installation.

The error message was:

Fatal error: Uncaught exception 'Exception' with message 'foo' in ../sites/all/modules/civicrm/packages/dompdf/include/cellmap.cls.php:292 Stack trace: #0 ../sites/all/modules/civicrm/packages/dompdf/include/table_row_frame_reflower.cls.php(83): Cellmap->get_frame_height(Object(Table_Row_Frame_Decorator)) #1 ../sites/all/modules/civicrm/packages/dompdf/include/frame_decorator.cls.php(477): Table_Row_Frame_Reflower->reflow(NULL) #2 ../sites/all/modules/civicrm/packages/dompdf/include/table_frame_reflower.cls.php(481): Frame_Decorator->reflow() #3 ../sites/all/modules/civicrm/packages/dompdf/include/frame_decorator.cls.php(477): Table_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) #4 ../sites/all/modules/civicrm/packages/dompdf/include/block_frame_reflower.cls.php(706): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) #5 ../s in ../sites/all/modules/civicrm/packages/dompdf/include/cellmap.cls.php on line 292


We'd like to continue to use the PDF generator so how do we fix the problem or do we just need to upgrade CIVI to a later version to fix this?

Thanks in advance,

Osvaldo
Osvaldo Gomez
Upleaf LLC

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: Fatal Error with registering multiple participants to an event
February 06, 2013, 08:30:27 pm

You might want to try and upgrade dompdf to the latest version to see if it will fix that issue

Alternatively you can upgrade to 4.2 and see if you can use wkhtmltopdf instead of dompdf. I have not used it, but suspect it scales a lot better than dompdf. However u need to install wkhtmltopdf on your server etc

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) »
  • Fatal Error with registering multiple participants to an event

This forum was archived on 2017-11-26.