Alexander Orlov Posted February 16, 2014 Report Posted February 16, 2014 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.phpPrinting 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 Quote
0 Cody Posted February 17, 2014 Report Posted February 17, 2014 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. Quote
0 Alexander Orlov Posted February 20, 2014 Author Report Posted February 20, 2014 looks like an issue with the server so moving it of that server now. Quote
Question
Alexander Orlov
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.