Answers.Body: <p>A <a href="https://dev.mysql.com/doc/refman/5.0/en/gone-away.html" rel="nofollow">2006: MySQL server has gone away error</a> generally means that (for any number of reasons) the connection between Craft/PHP and the MySQL server has been dropped.</p>
  
  <p>Common causes are from connection timeouts and misconfigured MySQL settings like max_packet_size.</p>
  
  <p>There are lots of debugging tips in the above link from MySQL's official documentation that would be a good place to start.  Additionally you might want to involve your host and let them know what you're seeing.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T17:57:51.833Z
Answers.LastActivityDate: 2015-10-14T17:57:51.833Z
Answers.UserDisplayName: Brad Bell
Body: <p>I get an error when trying to load a page occasionally. It appears to have a problem getting the "type" property from a matrix block.</p>
  
  <pre><code>CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]:
  General error: 2006 MySQL server has gone away. The SQL statement 
  executed was: SELECT `id`, `groupId`, `name`, `handle`, `context`, 
  `instructions`, `translatable`, `type`, `settings`
  FROM `craft_fields`
  WHERE (handle = :handle) AND (context = :context)
  ORDER BY `name`. Bound with :handle='type',
  :context='matrixBlockType:6'
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T06:19:13.090Z
Comments.Text: *"MySQL server has gone away"* – it looks like you're having connection problems.
Comments.UserDisplayName: carlcs
Tags: <templating><matrix>
Title: CDbCommand failed to execute the SQL statement
ThreadText: # CDbCommand failed to execute the SQL statement
  
  (Asked by: username_0 on 2015-10-14)
  
  I get an error when trying to load a page occasionally. It appears to have a problem getting the "type" property from a matrix block.
  
  ```
  CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]:
  General error: 2006 MySQL server has gone away. The SQL statement 
  executed was: SELECT `id`, `groupId`, `name`, `handle`, `context`, 
  `instructions`, `translatable`, `type`, `settings`
  FROM `craft_fields`
  WHERE (handle = :handle) AND (context = :context)
  ORDER BY `name`. Bound with :handle='type',
  :context='matrixBlockType:6'
  
  ```
  
  **Tags:** templating, matrix
  
  > **Comments:**
  > **username_1**: *"MySQL server has gone away"* – it looks like you're having connection problems.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-10-14. Score: 1 | Accepted answer
  
  A [2006: MySQL server has gone away error](https://dev.mysql.com/doc/refman/5.0/en/gone-away.html) generally means that (for any number of reasons) the connection between Craft/PHP and the MySQL server has been dropped.
  
  Common causes are from connection timeouts and misconfigured MySQL settings like max\_packet\_size.
  
  There are lots of debugging tips in the above link from MySQL's official documentation that would be a good place to start. Additionally you might want to involve your host and let them know what you're seeing.
  
  
  ---
  
  