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 Online Registration: maximum 9 usable fields
Pages: [1]

Author Topic: Event Online Registration: maximum 9 usable fields  (Read 963 times)

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Event Online Registration: maximum 9 usable fields
September 10, 2012, 04:23:08 pm
I used civievent until today without any problems but now I have an issue...

I created an event with more than 9 fields to fill in, for online registration: when I click on "Continue" I get a timeout from the server.

I write just 9 fields, because if I try to disable certain profile fields, no matter what, the important think is to arrive to 9 active fields and everything works like a charm.

You can see that event here: http://www.tsrmcampania.it/index.php?option=com_civicrm&task=civicrm/event/info&Itemid=203&reset=1&id=13

It's an italian site, to see registration page is necessary to press "Registrati ora". Then you can fill in all the fields, also without translating, and click "Continua".
After the second "Continua", just wait the timeout message.

Until today I used only small profiles for event registration, but for this one I found this bad gift.  :(

Thanks for your help!  :)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Event Online Registration: maximum 9 usable fields
September 10, 2012, 07:50:27 pm
hmm - I just found the 9 limit hard coded into the 'batch update by profile' screen - but maybe it's in here too?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 12:49:54 am
hmmm... so there's a limit somewhere like this..
what could be wrong?  ??? What should I fix?  :-\

I have always celebrated CiviCRM, but this time the date of the event is close enough... and someone will want to cut off my head.. :'(

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 01:30:57 am
Hi,

I have had loads of events with way more than 9 active fields without any problem.

Try increasing the timeout and the memory available (in civicrm.settings.php), should do the trick

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 01:58:09 am
Thanks a lot for the fast reply.  :)

I change, for the memory available,  this code :
Code: [Select]
if ($memLimit >= 0 and $memLimit < 134217728) {
    ini_set('memory_limit', '128M');
}
in
Code: [Select]
if ($memLimit >= 0 and $memLimit < 134217728) {
    ini_set('memory_limit', '256M');
}

I know I can reach 512mb on this server.

But what I have to change for increase timeout limit?

These are variables included in the file:

Code: [Select]
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '****\media\civicrm\templates_c' );

define( 'CIVICRM_UF_BASEURL'      , '****/administrator/' );

define( 'CIVICRM_SITE_KEY', '****' );

define( 'CIVICRM_IDS_ENABLE', 1);

define( 'CIVICRM_MAIL_SMARTY', 0 );

define( 'CIVICRM_DOMAIN_ID'      , 1 );

define( 'CIVICRM_USE_MEMCACHE', 0 );

define( 'CIVICRM_MEMCACHE_HOST', 'localhost' );

define( 'CIVICRM_MEMCACHE_PORT', 11211 );

define( 'CIVICRM_MEMCACHE_TIMEOUT', 3600 );

define( 'CIVICRM_MEMCACHE_PREFIX', '' );

$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    define( 'CIVICRM_CLEANURL', 1 );
} else {
    define( 'CIVICRM_CLEANURL', 0 );
}

// force PHP to auto-detect Mac line endings
ini_set('auto_detect_line_endings', '1');

// make sure the memory_limit is at least 64 MB
$memLimitString = trim(ini_get('memory_limit'));
$memLimitUnit   = strtolower(substr($memLimitString, -1));
$memLimit       = (int) $memLimitString;
switch ($memLimitUnit) {
    case 'g': $memLimit *= 1024;
    case 'm': $memLimit *= 1024;
    case 'k': $memLimit *= 1024;
}
if ($memLimit >= 0 and $memLimit < 134217728) {
    ini_set('memory_limit', '128M');
}

Certainly change CIVICRM_MEMCACHE_TIMEOUT is not useful...

I tried to register to the event after memory limit has been increased, but the server timeout comes out.
« Last Edit: September 11, 2012, 02:14:11 am by totolabs »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 02:02:28 am
128 is plenty enough.
for the timeout, add:
set_time_limit (60);


Have you upgraded to the latest version of civi? Now it is much more efficient when not using the english US language (but needs some config on the server so it works)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 03:46:49 am
Yes, i'm using the laster version of civicrm on the latest version of joomla.  (I updated my forum profile ) :)
There are some important differences in report views between using and not using english US language, but it's not a problem.

Putting in civicrm.settings.php that line of code something is going better.
Even if this screen is diplayed:

Quote
Server Error
There was an error in the website during the recovery http://www.tsrmcampania.it/index.php?option=com_civicrm&task=civicrm/event/register. It may not be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error): An unexpected condition has occurred while the server was attempting to fulfill the request.

and even if isn't sent a confirmation email,

now the user is added to the list of participants!

However, I just saw that there's this problem if I select the "pay later" option. Using paypal as payments processor there are no issues.

If you want try event online registration yourself to see that screen, you can: I set as main payment processor paypal sandbox.

username paypal test account: user_1337623509_per@tsrmcampania.it
password paypal test account: 347360744
« Last Edit: September 11, 2012, 03:53:05 am by totolabs »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 05:11:53 am
Hi

Check out the report (not sure where it is on joomla). or set debug and backtrace in civi to see where is the issue

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 05:25:46 pm
During the night I put the website in maintenance. I enabled debugging and backtrace of CiviCRM and I tried to do a couple of event registrations, to get the error page.
Then I went to / root/media/CiviCRM/ConfigAndLog and I found the log file, but inside I have not found anything useful...

Seems to have stopped "recording" just when I activated the civicrm debug mode.

I have attached the file.

Thanks xavier for your patience!
« Last Edit: September 11, 2012, 10:35:49 pm by xavier »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Event Online Registration: maximum 9 usable fields
September 11, 2012, 10:38:31 pm
Hi,

I removed the attachment, that contained a lot of information about previous activities (eg. emails from your contacts).

That seemed to be an old file but nothing from last night. Can you check you get the right file?


X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 12, 2012, 03:17:10 am
I don't know when the system creates a log file... this morning I found a new one created at 7:49 am but there no seems to be lines about last night activities...

I attach that log file.

I modified the attachment with a new log file, created at 6:46 pm, removing some information.

« Last Edit: September 12, 2012, 11:24:41 am by totolabs »

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Event Online Registration: maximum 9 usable fields
September 13, 2012, 08:45:34 am
I do not know if I am not able to read the log file or debug and backtrace not work well on this civicrm installation... ???
However, after only two days of testing  :P ,  I found that registration event did not work for two reasons:
  • the maximum number of fields that can be used on a registration profile can not be higher than 9;
  • you can not set the amount of 0 in the options prices of an event (with 0.01 it works well).

The important thing is that, with a few tricks, now everything is working.  8)

In this period I'm pretty busy, but when I have some time I will try to reveal this mystery.  :)

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

This forum was archived on 2017-11-26.