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) »
  • Event Registration Timeout
Pages: [1]

Author Topic: Event Registration Timeout  (Read 2989 times)

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Event Registration Timeout
April 25, 2011, 08:09:02 am
Hello,

I just upgraded a joomla install from 3.3.5.to 3.4.0, when processing direct credit cards I get this error

Fatal error: Maximum execution time of 90 seconds exceeded in /home/dcrr/public_html/xxxx/administrator/components/com_civicrm/civicrm/packages/dompdf/include/frame_decorator.cls.php on line 244

but it does not happen when I run the payment through paypal.

I don't know what frame decorator does, but I assume it's for creating the PDF registration, is there a way to just turn it off?

B.

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: Event Registration Timeout
April 25, 2011, 09:13:32 am

There is no option to turn it off right now (though a patch to do this would be great and highly appreciated)

you can manually disable it by editing the code here:

CRM/Core/BAO/MessageTemplates.php (search for PDF)

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

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: Event Registration Timeout
April 25, 2011, 11:08:14 am

check:

http://forum.civicrm.org/index.php/topic,19624.msg81789.html#msg81789

for more specific instructions

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

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Event Registration Timeout
April 25, 2011, 12:52:43 pm
hmm

I removed the event the pdf line from the event template. but I am not sure which portion of the code I should remove from the messagetemplates.php

does this look correct?
Code: [Select]
/*
            $pdf_filename = '';
            if ( $params['PDFFilename'] && $params['html'] ) {
                require_once 'CRM/Utils/PDF/Utils.php';
                require_once 'CRM/Utils/File.php';
                $config = CRM_Core_Config::singleton();
                $pdf_filename = $config->templateCompileDir . CRM_Utils_File::makeFileName( $params['PDFFilename'] );
               
                //FIXME : CRM-7894
                //xmlns attribute is required in XHTML but it is invalid in HTML,
                //Also the namespace "xmlns=http://www.w3.org/1999/xhtml" is default,
                //and will be added to the <html> tag even if you do not include it.
                $html = preg_replace( '/(<html)(.+?xmlns=["\'].[^\s]+["\'])(.+)?(>)/', '\1\3\4', $params['html'] );
               
                file_put_contents( $pdf_filename, CRM_Utils_PDF_Utils::html2pdf( $html,
                                                                                 $params['PDFFilename'],
                                                                                 null,
                                                                                 null,
                                                                                 true
                                                                               )
                                 );
                                 
    if ( empty( $params['attachments'] ) ) {
        $params['attachments'] = array();
    }
    $params['attachments'][] = array(
        'fullPath' => $pdf_filename,
        'mime_type' => 'application/pdf',
        'cleanName' => $params['PDFFilename'],
    );
            }
 */

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Event Registration Timeout
April 25, 2011, 01:04:10 pm
Lobo,

I am also fairly certain that this is a bug of some sort, because it appeared out of the blue when i upgraded.

B.

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: Event Registration Timeout
April 25, 2011, 01:08:33 pm

yes that looks correct.

Would be great if you can narrow down when/where/how the bug is triggered and potentially reproduce this on our demo servers

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

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Re: Event Registration Timeout
May 05, 2011, 12:24:53 pm
I had the same issue here with the most current release for Drupal 6. I had added a couple of fields to a custom profile for an event registration form, and this appeared to be enough to push PDF processing over the 30 second limit. As a result, no final confirmation screen appeared, nor was an enrolment email sent to the applicant. They did show as registered though. Removing both those questions (a yes/no and checkbox item) resolved the issue. Removing PDF capability completely as indicated here allowed me to reinstate the questions and things now are working. And, to be honest, we have no use at all for the PDF aspect, so a switch to shut if off would be terrific. If I knew anything about coding...

Cheers
Chris Hutcheson

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: Event Registration Timeout
May 05, 2011, 10:31:26 pm
Quote from: cbh on May 05, 2011, 12:24:53 pm
If I knew anything about coding...

You dont need to be a coder to contribute :)

Lots of other ways to contribute as explained here:

http://en.flossmanuals.net/civicrm/ch071_civicommunity/

Helping in other parts of the ecosystem builds your karma and reputation thus enabling you to nudge developers towards a few of your favorite projects :)

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

rajaoa

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.2
  • MySQL version: 5
  • PHP version: 5.3
Re: Event Registration Timeout
May 31, 2011, 05:12:19 pm
@ Lobo
Hi there, regarding the link you just gave to edit the code and remove the PDF functionality... the path isnt the same on my server  CRM/Core/BAO/templat file.php. I am using CCRM 3.3.5 with Drupal 6, we sent out a thousand emails for people to register for a conference and then oooops........But everything seemed fine at the point of testing. Any ideas where to remove the PDF functionality.
Thanks

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Re: Event Registration Timeout
June 13, 2011, 06:04:54 pm
I encountered this same problem today... after upgrading to 3.4.2 (J1.5.23) and applying this patch https://fisheye2.atlassian.com/changelog/CiviCRM?cs=34732, registration that was previously working now breaks max execution time, only using one custom field and pay later, not sure what would be causing it to take that long.  Thing is this client wants the PDF attachment, so disabling it is not an option. Any suspicions as to whats behind it? More than happy to dig further if I have some clues where to start, just short on time to solve it.

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Event Registration Timeout
June 21, 2011, 08:58:07 am
Same issue is discussed here: http://forum.civicrm.org/index.php/topic,19801.15.html

rjlang

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3.19
Re: Event Registration Timeout
July 19, 2011, 08:42:37 am
We, too, encountered this issue, but with an error message of "max memory" rather than "max time", which I'll paste here to make it Googlable for others similarly afflicted:

Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 71 bytes) in var/www/html/sites/all/modules/civicrm/packages/dompdf/include/style.cls.php on line 893

Per this thread, http://forum.civicrm.org/index.php/topic,19801.15.html, we turned off PDF generation in the miscellaneous settings .../civicrm/admin/setting/misc?reset=1, and that fixed it.

Thanks,

Robert

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

This forum was archived on 2017-11-26.