Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-28T00:05:30.493Z
Answers.Text: 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.
Answers.UserDisplayName: Arms
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-21T20:57:11.793Z
Answers.LastActivityDate: 2015-01-21T20:57:11.793Z
Answers.UserDisplayName: Ben Wilkins
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-05T16:24:21.447Z
Comments.Text: 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)
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-05T16:51:32.937Z
Comments.Text: @LindseyD No idea what the issue is, but I'm guessing it's server side. Works fine from my OSX and Windows boxes.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-05T17:44:18.163Z
Comments.Text: Is this the native OSX MySQL (i.e. not MAMP)? Try restarting the MySQL server.
Comments.UserDisplayName: Marion Newlevant
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-08T17:08:30.210Z
Comments.Text: 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.
Comments.UserDisplayName: Dion Snoeijen
Tags: <entries>
Title: Entries not saving CDbException
ThreadText: # 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:
  
  ```php
  $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**: @username_1 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. @username_3. 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.  
  
  ---
  
  