Answers.Body: <p>Okay - this was a problem at our end. 
  We had a plugin which provided a twig extension that modified Craft's own hash method which was causing issues with the migration update.</p>
  
  <p>Consider solved! </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T19:09:33.843Z
Answers.LastActivityDate: 2017-11-02T19:09:33.843Z
Answers.UserDisplayName: Cole Henley
Body: <p>Reposted from Slack</p>
  
  <p>I have tried to create a migration using console (as per docs) but whilst it created a <code>migrations</code> folder it did not create a migration file. So resorted to creating manually but now getting the following error:</p>
  
  <pre><code>Status: Internal Server Error
  Response: &lt;h1&gt;Craft\Exception&lt;/h1&gt; &lt;p&gt;Could not validate update handle. 
  </code></pre>
  
  <p>The offending migration file can be viewed at <a href="https://gist.github.com/cole007/4bfff23c693ca496ca4929f464df2a05" rel="nofollow noreferrer">https://gist.github.com/cole007/4bfff23c693ca496ca4929f464df2a05</a></p>
  
  <p>Looking into the Update Controller that is throwing the error it seems to be down to the <code>_getFixedHandle()</code> method where $data['handle'] is returning empty but no idea why this is.</p>
  
  <p>Any thoughts on debugging or resolving? Site launch is imminent so need to get to the bottom of why this is happening soon!</p>
  
  <p>Thanks,</p>
  
  <p>Cole</p>
  
Tags: <plugin-development><database><migration>
Title: Plugin migration question
ThreadText: # Plugin migration question
  
  (Asked by: username_0 on 2017-11-02)
  
  Reposted from Slack
  
  I have tried to create a migration using console (as per docs) but whilst it created a `migrations` folder it did not create a migration file. So resorted to creating manually but now getting the following error:
  
  ```
  Status: Internal Server Error
  Response: <h1>Craft\Exception</h1> <p>Could not validate update handle. 
  
  ```
  
  The offending migration file can be viewed at <https://gist.github.com/cole007/4bfff23c693ca496ca4929f464df2a05>
  
  Looking into the Update Controller that is throwing the error it seems to be down to the `_getFixedHandle()` method where $data['handle'] is returning empty but no idea why this is.
  
  Any thoughts on debugging or resolving? Site launch is imminent so need to get to the bottom of why this is happening soon!
  
  Thanks,
  
  username_0
  
  **Tags:** plugin-development, database, migration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-11-02. Score: 2
  
  Okay - this was a problem at our end.
  We had a plugin which provided a twig extension that modified Craft's own hash method which was causing issues with the migration update.
  
  Consider solved!
  
  
  ---
  
  