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 CiviMail (Moderator: Piotr Szotkowski) »
  • civimail send times out after 60 seconds
Pages: [1]

Author Topic: civimail send times out after 60 seconds  (Read 1319 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
civimail send times out after 60 seconds
February 23, 2009, 01:10:19 pm
I'm getting:
Code: [Select]
<b>Fatal error</b>:  Maximum execution time of 60 seconds exceeded in
 <b>/var/www/membership.example.com/example.com/civicrm/v1.8/CRM/Utils/Token.php</b>
 on line <b>114</b><br />
The local machine running the CiviMail process (membership.example.com) has timeouts set to 600 seconds (10 minutes) but the database it connects to (CIVICRM_DSN) has in it's /etc/php.ini file:
Code: [Select]
default_socket_timeout = 60
mysql.connect_timeout = 60
The CIVICRM_DSN machine is not under my control so I can't easily test, but I had figured that a pure MySQL connection was made, not a PHP connection, so the php.ini timeouts on it wouldn't be in effect.

Am I correct?

If so, can you suggest other places to look for the timeout?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: civimail send times out after 60 seconds
February 24, 2009, 02:13:58 am
It does look like a PHP timeout, not a MySQL timeout – so my first check would be to run phpinfo() on the local machine (ideally in the same context as CiviCRM, so in the CiviMail script) and check the actual timeout value.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: civimail send times out after 60 seconds
February 24, 2009, 12:37:45 pm
Thanks for inspiring me to go back and have a second look.  Turns out the machine it's running on is using an old version of PHP (5.1.4) that has a bug causing max_input_time to shadow max_execution_time, see http://bugs.php.net/bug.php?id=37306

Though max_execution_time was set to 1200, max_input_time was by default set to 60, thus the cause of the problem.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail send times out after 60 seconds

This forum was archived on 2017-11-26.