<p>I had the same issue. Tried setting a bunch of mysql and php configs for timeouts, packet sizes, etc, and nothing would help. Finally found that turning off dev mode fixed it for me. Don't know why. Just thought I'd throw that out there in case someone else was having the same problem.</p>

CC BY-SA 3.0
2015-02-28T00:05:30.493Z
Just want to note that I was getting the same error, but triggered from a different source. Disabling dev mode, then re-enabling it fixed the issue.
Arms
CC BY-SA 3.0
2015-01-21T20:57:11.793Z
2015-01-21T20:57:11.793Z
Ben Wilkins
<p>We have a very strange issue here. On my computer I'm trying to save an entry. The process indicator keeps spinning for about five minutes before this exception comes up:</p>
<blockquote>
<p>CDbException</p>
<p>CDbCommand faalde tijdens het uitvoeren van volgend SQL statement: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. The SQL statement executed was: SELECT `locale`
FROM `craft_locales`
ORDER BY `sortOrder`</p>
</blockquote>
<p>It's triggered by this function:</p>
<pre class="lang-php prettyprint-override"><code>$this-&gt;userSession-&gt;checkPermission('accessCpWhenSystemIsOff')
</code></pre>
<p>On first look this definitely looks like a server issue. But... when I test this on a windows computer, it never happens. It's just not saving from an osx computer (browsers tested on osx: chrome, safari, firefox). Also tested on different osx computers and different windows computers. All with the same result. Windows works, osx doesn't.</p>
<p>Does anyone have a clue what might be going on here? Thanks!</p>

CC BY-SA 3.0
2014-08-05T16:24:21.447Z
That very much sounds like a bug. I recommend filing a bug report with Pixel & Tonic, [as outlined here...](http://meta.craftcms.stackexchange.com/q/29/45)
Lindsey D
CC BY-SA 3.0
2014-08-05T16:51:32.937Z
@LindseyD No idea what the issue is, but I'm guessing it's server side. Works fine from my OSX and Windows boxes.
Brad Bell
CC BY-SA 3.0
2014-08-05T17:44:18.163Z
Is this the native OSX MySQL (i.e. not MAMP)? Try restarting the MySQL server.
Marion Newlevant
CC BY-SA 3.0
2014-08-08T17:08:30.210Z
Hi Sorry I haven't get back at this. We still have the problem and we are looking to solve it with the hosting company. @Marion Newlevant. It's happening on a remote server. The computer accessing it is Mac or Win. Win is working Mac isn't.
Dion Snoeijen
<entries>
Entries not saving CDbException
# Entries not saving CDbException

(Asked by: username_0 on 2014-08-05)

We have a very strange issue here. On my computer I'm trying to save an entry. The process indicator keeps spinning for about five minutes before this exception comes up:

CDbException
CDbCommand faalde tijdens het uitvoeren van volgend SQL statement: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. The SQL statement executed was: SELECT `locale`
FROM `craft_locales`
ORDER BY `sortOrder`

It's triggered by this function:
$this->userSession->checkPermission('accessCpWhenSystemIsOff')

On first look this definitely looks like a server issue. But... when I test this on a windows computer, it never happens. It's just not saving from an osx computer (browsers tested on osx: chrome, safari, firefox). Also tested on different osx computers and different windows computers. All with the same result. Windows works, osx doesn't.
Does anyone have a clue what might be going on here? Thanks!

**Tags:** entries
> **Comments:**
> **username_1**: That very much sounds like a bug. I recommend filing a bug report with Pixel & Tonic, [as outlined here...](http://meta.craftcms.stackexchange.com/q/29/45)  
> **username_2**: @LindseyD No idea what the issue is, but I'm guessing it's server side. Works fine from my OSX and Windows boxes.  
> **username_3**: Is this the native OSX MySQL (i.e. not MAMP)? Try restarting the MySQL server.  
> **username_0**: Hi Sorry I haven't get back at this. We still have the problem and we are looking to solve it with the hosting company. @Marion Newlevant. It's happening on a remote server. The computer accessing it is Mac or Win. Win is working Mac isn't.  

---

## 1 answers

### Answer by username_4 on 2015-01-21. Score: 4 | Accepted answer

I had the same issue. Tried setting a bunch of mysql and php configs for timeouts, packet sizes, etc, and nothing would help. Finally found that turning off dev mode fixed it for me. Don't know why. Just thought I'd throw that out there in case someone else was having the same problem.

> **Comments:**
> **username_5**: Just want to note that I was getting the same error, but triggered from a different source. Disabling dev mode, then re-enabling it fixed the issue.  

---

