Jump to content
  • 0

Error On Sending Emails To Clients


Question

Posted

Hi,

on trying to email a customer I get this error.


Oh noes!


SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on line 124in /home/mcrcompu/public_html/portal/lib/model.php

Printing Stack Trace:

#0 /home/mcrcompu/public_html/portal/lib/model.php(124): PDOStatement->execute(Array)
#1 /home/mcrcompu/public_html/portal/components/record/record.php(655): Model->query('SELECT COUNT(*)...', Array)
#2 /home/mcrcompu/public_html/portal/components/record/record.php(746): Record->fetch()
#3 /home/mcrcompu/public_html/portal/app/app_model.php(0): Record->numResults()
#4 [internal function]: AppModel->validateExists('1', 'id', 'companies')
#5 /home/mcrcompu/public_html/portal/components/input/input.php(478): call_user_func_array(Array, Array)
#6 /home/mcrcompu/public_html/portal/components/input/input.php(317): Input->validateRule('company_id', Array, '1', 'company_id')
#7 /home/mcrcompu/public_html/portal/app/models/logs.php(91): Input->validates(Array)
#8 /home/mcrcompu/public_html/portal/components/email/email.php(281): Logs->addEmail(Array)
#9 /home/mcrcompu/public_html/portal/components/email/email.php(244): Email->log(Array)
#10 /home/mcrcompu/public_html/portal/app/models/emails.php(755): Email->send()
#11 /home/mcrcompu/public_html/portal/app/models/emails.php(638): Emails->sendEmail(Object(stdClass))
#12 /home/mcrcompu/public_html/portal/app/controllers/admin_clients.php(1327): Emails->sendCustom('n.lewis@mcrcomp...', 'Nathan Lewis', 'nathanlewis1987...', 'sds', Array, NULL, NULL, NULL, NULL, Array)
#13 /home/mcrcompu/public_html/portal/lib/dispatcher.php(111): AdminClients->email()
#14 /home/mcrcompu/public_html/portal/index.php(21): Dispatcher::dispatch('/admin/clients/...')
#15 {main}

Any ideas

2 answers to this question

Recommended Posts

  • 0
Posted

This is almost always a server configuration issue. The cause varies drastically, so is incredibly difficult to diagnose. One thing to look into is the number of simultaneous connections allowed by the MySQL server. Increasing that value may solve the problem. Others have reported this issue when using nginx.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...