<p>I had the same issue. In our case it were the i18n and the vendor files that were being excluded by a too restrictive gitignore file.</p>

<p>Never use the default gitignore from Craft 3 on a Craft 2 setup. :-)</p>

CC BY-SA 3.0
2018-03-03T19:19:54.773Z
2018-03-03T19:19:54.773Z
Diederik
<p>When requesting the control panel I get the following error: </p>

<pre><code>Fatal error: Call to a member function getTimeFormat() on a non-object in
/craft/app/etc/requirements/RequirementsChecker.php on line 103
</code></pre>

<p>Apparently  <code>craft()-&gt;locale</code> is null, but I have no idea why this is the case. I'm running craft locally, on <a href="http://[PROJECT].craft.dev/" rel="nofollow">http://[PROJECT].craft.dev/</a> and installed the Pro version.</p>

<p>Any ideas?</p>

<p>Edit: this turned out to be a too restrictive gitignore file, ignoring the craft/app/framework/i18n/data folder</p>

CC BY-SA 3.0
2015-02-17T18:06:29.963Z
That is weird.  Can you hit us up at support@buildwithcraft.com so we can look into it?
Brad Bell
CC BY-SA 3.0
2015-04-30T13:56:18.187Z
Thanks for the follow-up.  Would you mind posting that as an official answer to the question?
Brad Bell
<control-panel><localization><error-message>
craft()->locale->getTimeFormat() throws Fatal error
# craft()->locale->getTimeFormat() throws Fatal error

(Asked by: username_0 on 2015-02-17)

When requesting the control panel I get the following error: 
Fatal error: Call to a member function getTimeFormat() on a non-object in
/craft/app/etc/requirements/RequirementsChecker.php on line 103

Apparently  craft()->locale is null, but I have no idea why this is the case. I'm running craft locally, on http://[PROJECT].craft.dev/ and installed the Pro version.
Any ideas?
Edit: this turned out to be a too restrictive gitignore file, ignoring the craft/app/framework/i18n/data folder

**Tags:** control-panel, localization, error-message

> **Comments:**
> **username_1**: That is weird.  Can you hit us up at support@buildwithcraft.com so we can look into it?  
> **username_1**: Thanks for the follow-up.  Would you mind posting that as an official answer to the question?  

---

## 1 answers

### Answer by username_2 on 2018-03-03. Score: 1

I had the same issue. In our case it were the i18n and the vendor files that were being excluded by a too restrictive gitignore file.

Never use the default gitignore from Craft 3 on a Craft 2 setup. :-)


---

