<p>Those aren't so much errors as deprecation messages, meaning you should fix them sometime before Craft 4 comes out where they'll be going away and become real errors for you. :)</p>

<blockquote>
  <p>To which I assumed I should just add 'securityKey' => 'xxxxxx', but the error hasn't gone.</p>
</blockquote>

<p>They won't go away automatically.  Go to <code>yoursite.com/admin/utilities/deprecation-errors</code>, then you can click the "x" for the message on the far right to clear it.  It won't come back again if it has been fixed.</p>

<blockquote>
  <p>The environmentVariables config setting has been renamed to aliases.</p>
</blockquote>

<p>You'll want to convert your old environmentVariable to use the new aliases syntax.  You can see examples of that here:</p>

<p><a href="https://docs.craftcms.com/v3/configuration.html#aliases" rel="nofollow noreferrer">https://docs.craftcms.com/v3/configuration.html#aliases</a></p>

CC BY-SA 4.0
2018-02-01T23:41:25.020Z
2018-05-29T11:47:25.920Z
2018-05-29T11:47:25.920Z
Brad Bell
<p>I'm attempting to upgrade my Craftsite from 2 to 3, which I have done so, however I seem to be getting a few deprecation errors.</p>

<p><strong>The first error is:</strong></p>

<blockquote>
  <p>The auto-generated validation key stored at
  /Users/User/My-Site/craft/storage/runtime/validation.key has been
  deprecated. Copy its value to the “securityKey” config setting in
  config/general.php.</p>
</blockquote>

<p>To which I assumed I should just add 'securityKey' => 'xxxxxx', but the error hasn't gone. </p>

<p><strong>The second error is:</strong></p>

<blockquote>
  <p>The environmentVariables config setting has been renamed to aliases.</p>
</blockquote>

<p>Which to be honest im not sure how to fix.</p>

<p>Any suggestions? </p>

<error-message><craft3><error><upgrades>
Issue upgrading Craft 2 to 3
# Issue upgrading Craft 2 to 3

(Asked by: username_0 on 2018-02-01)

I'm attempting to upgrade my Craftsite from 2 to 3, which I have done so, however I seem to be getting a few deprecation errors.

**The first error is:**

> The auto-generated validation key stored at
> /Users/User/My-Site/craft/storage/runtime/validation.key has been
> deprecated. Copy its value to the “securityKey” config setting in
> config/general.php.

To which I assumed I should just add 'securityKey' => 'xxxxxx', but the error hasn't gone.

**The second error is:**

> The environmentVariables config setting has been renamed to aliases.

Which to be honest im not sure how to fix.

Any suggestions?

**Tags:** error-message, craft3, error, upgrades


---

## 1 answers

### Answer by username_1 on 2018-02-01. Score: 2 | Accepted answer

Those aren't so much errors as deprecation messages, meaning you should fix them sometime before Craft 4 comes out where they'll be going away and become real errors for you. :)

> To which I assumed I should just add 'securityKey' => 'xxxxxx', but the error hasn't gone.

They won't go away automatically. Go to `yoursite.com/admin/utilities/deprecation-errors`, then you can click the "x" for the message on the far right to clear it. It won't come back again if it has been fixed.

> The environmentVariables config setting has been renamed to aliases.

You'll want to convert your old environmentVariable to use the new aliases syntax. You can see examples of that here:

<https://docs.craftcms.com/v3/configuration.html#aliases>


---

