Jump to content
  • 0

Error On Sending Emails To Clients


Alexander Orlov

Question

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...