Undefined property when using cacheMethod = db What can the issue be here? I have no clue.

Config settings are like this:

'cacheMethod'           =&gt; "db",
'cacheDuration'         =&gt; 'P2M', /*2 months*/


Undefined property: Craft\WebApp::$db

/var/www/www_cmgg_cmgg_be/craft/app/services/CacheService.php(46)

34         switch (craft()-&gt;config-&gt;get('cacheMethod'))
35         {
36             case CacheMethod::APC:
37             {
38                 $this-&gt;_cacheComponent = new ApcCache();
39                 break;
40             }
41 
42             case CacheMethod::Db:
43             {
44                 $this-&gt;_cacheComponent = new DbCache();
45                 $this-&gt;_cacheComponent-&gt;gCProbability = craft()-&gt;config-&gt;get('gcProbability', ConfigFile::DbCache);
46                 $this-&gt;_cacheComponent-&gt;cacheTableName = craft()-&gt;db-&gt;getNormalizedTablePrefix().craft()-&gt;config-&gt;get('cacheTableName', ConfigFile::DbCache);
47                 $this-&gt;_cacheComponent-&gt;autoCreateCacheTable = true;
48                 break;
49             }
50 
51             case CacheMethod::EAccelerator:
52             {
53                 $this-&gt;_cacheComponent = new EAcceleratorCache();
54                 break;
55             }
56 
57             case CacheMethod::File:
58             {
Solved. The client was using something called Samba Share on their server and that didn't work well with permissions. They changed servers and it was solved.