Answers.Body: <p>I've looked all over for a solution to this but couldn't find anything. I don't know if you've already fixed your problem now, but in case you haven't or someone else has found this error and arrived here, a simple fix for it is to add the missing information into the <code>project.yaml</code> in <code>config/project/</code>.</p>
  <p>For my local development build, I used the following:</p>
  <pre><code>system:
    edition: solo
    live: true
    name: '{YOUR PROJECT NAME HERE}'
    retryDuration: null
    schemaVersion: 3.5.13
    timeZone: UTC
  </code></pre>
  <p>For the <code>schemaVersion</code>, it will need to match the one specified in the installed version of Craft in your <code>vendor</code> folder. This can also be found <a href="https://github.com/craftcms/cms/blob/develop/src/config/app.php#L6-L7" rel="nofollow noreferrer">in the repo.</a></p>
  <p>I'm not sure what the cause of the missing info is, but I am also on a Mac running Big Sur so it may be related. Once you have added in this information, you should be able to edit it normally from Settings -&gt; General.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-26T19:15:57.283Z
Answers.Text: This, together with matching the schemaVersion to vendor/craftcms/cms/src/config/app.php did the trick!
Answers.UserDisplayName: Recipe
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-25T15:48:38.610Z
Answers.LastActivityDate: 2021-01-25T16:03:03.670Z
Answers.LastEditDate: 2021-01-25T16:03:03.670Z
Answers.UserDisplayName: Matt
Body: <p>After installing craft through composer, setting up the database and running craft setup, I have a craft application ready to go.</p>
  <p>When I go to settings/general, I always get a crash with following information:</p>
  <pre><code>1. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30
      {{ actionInput('system-settings/save-general-settings') }}
      {{ redirectInput('settings') }}
   
      {{ forms.autosuggestField({
          first: true,
          label: &quot;System Name&quot;|t('app'),
          id: 'name',
          suggestEnvVars: true,
          name: 'name',
          value: system.name
      }) }}
   
      {{ forms.lightswitchField({
          label: &quot;System Status&quot;|t('app'),
          warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
          id: 'live',
          name: 'live',
          onLabel: 'Online'|t('app'),
          offLabel: 'Offline'|t('app'),
  2. in /vendor/craftcms/cms/src/helpers/Template.php at line 106– twig_get_attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
          // Add deprecated support for the old DateTime methods
          if ($object instanceof \DateTime &amp;&amp; ($value = self::_dateTimeAttribute($object, $item, $type)) !== false) {
              return $value;
          }
   
          try {
              return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
          } catch (UnknownMethodException $e) {
              // Copy twig_get_attribute()'s BadMethodCallException handling
              if ($ignoreStrictCheck || !$env-&gt;isStrictVariables()) {
                  return null;
              }
              throw new RuntimeError($e-&gt;getMessage(), -1, $source);
  3. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30– craft\helpers\Template::attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
      {{ forms.autosuggestField({
          first: true,
          label: &quot;System Name&quot;|t('app'),
          id: 'name',
          suggestEnvVars: true,
          name: 'name',
          value: system.name
      }) }}
   
      {{ forms.lightswitchField({
          label: &quot;System Status&quot;|t('app'),
          warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
          id: 'live',
  </code></pre>
  <p>The errors on the lines correspond to:</p>
  <p>line 30: value: system.name</p>
  <p>line 106: return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);</p>
  <p>line 30: value: system.name</p>
  <p>As you can see, all is happening in /vendor, so I guess it must be some setup that I have missed or incorrectly executed. Why is the system variable null? Is it because of my local machine is missing some configuration? (Macbook Pro with macOs Big Sur)</p>
  
Tags: <templating><php><error-message><setup>
Title: Issue on new craft (craftcms3) setups: vendor Twig can't read system variable
ThreadText: # Issue on new craft (craftcms3) setups: vendor Twig can't read system variable
  
  (Asked by: username_0 on 2021-01-21)
  
  After installing craft through composer, setting up the database and running craft setup, I have a craft application ready to go.
  
  When I go to settings/general, I always get a crash with following information:
  
  ```
  1. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30
      {{ actionInput('system-settings/save-general-settings') }}
      {{ redirectInput('settings') }}
   
      {{ forms.autosuggestField({
          first: true,
          label: "System Name"|t('app'),
          id: 'name',
          suggestEnvVars: true,
          name: 'name',
          value: system.name
      }) }}
   
      {{ forms.lightswitchField({
          label: "System Status"|t('app'),
          warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
          id: 'live',
          name: 'live',
          onLabel: 'Online'|t('app'),
          offLabel: 'Offline'|t('app'),
  2. in /vendor/craftcms/cms/src/helpers/Template.php at line 106– twig_get_attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
          // Add deprecated support for the old DateTime methods
          if ($object instanceof \DateTime && ($value = self::_dateTimeAttribute($object, $item, $type)) !== false) {
              return $value;
          }
   
          try {
              return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
          } catch (UnknownMethodException $e) {
              // Copy twig_get_attribute()'s BadMethodCallException handling
              if ($ignoreStrictCheck || !$env->isStrictVariables()) {
                  return null;
              }
              throw new RuntimeError($e->getMessage(), -1, $source);
  3. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30– craft\helpers\Template::attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
      {{ forms.autosuggestField({
          first: true,
          label: "System Name"|t('app'),
          id: 'name',
          suggestEnvVars: true,
          name: 'name',
          value: system.name
      }) }}
   
      {{ forms.lightswitchField({
          label: "System Status"|t('app'),
          warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
          id: 'live',
  
  ```
  
  The errors on the lines correspond to:
  
  line 30: value: system.name
  
  line 106: return \twig\_get\_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
  
  line 30: value: system.name
  
  As you can see, all is happening in /vendor, so I guess it must be some setup that I have missed or incorrectly executed. Why is the system variable null? Is it because of my local machine is missing some configuration? (Macbook Pro with macOs Big Sur)
  
  **Tags:** templating, php, error-message, setup
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-01-25. Score: 2 | Accepted answer
  
  I've looked all over for a solution to this but couldn't find anything. I don't know if you've already fixed your problem now, but in case you haven't or someone else has found this error and arrived here, a simple fix for it is to add the missing information into the `project.yaml` in `config/project/`.
  
  For my local development build, I used the following:
  
  ```
  system:
    edition: solo
    live: true
    name: '{YOUR PROJECT NAME HERE}'
    retryDuration: null
    schemaVersion: 3.5.13
    timeZone: UTC
  
  ```
  
  For the `schemaVersion`, it will need to match the one specified in the installed version of Craft in your `vendor` folder. This can also be found [in the repo.](https://github.com/craftcms/cms/blob/develop/src/config/app.php#L6-L7)
  
  I'm not sure what the cause of the missing info is, but I am also on a Mac running Big Sur so it may be related. Once you have added in this information, you should be able to edit it normally from Settings -> General.
  
  > **Comments:**
  > **username_0**: This, together with matching the schemaVersion to vendor/craftcms/cms/src/config/app.php did the trick!  
  
  ---
  
  