0

I'm getting the following error:

Fatal error: Call to undefined method CI_Config::site_prefs() in ...Dev/cms/ee.dev/system/expressionengine/libraries/Core.php on line 122

My setup is as follows: MAMP, EE 2.10.1

ee.dev
- config
- public_html
- system

Dev is my MAMP htdocs folder and I have custom virtual hosts setup as follows:

<VirtualHost *:80>
  DocumentRoot "/Dev/cms/ee.dev/public_html/"
  ServerName ee.dev
</VirtualHost>

<Directory "/Dev/cms/ee.dev/public_html/">
        AllowOverride All
        Options -Indexes +FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>

I was originally getting another error, so I updated the system paths in the main index.php and admin.php:

Changing $system_path = './system'; to $system_path = '../system';

1 Answer 1

0

don't use the sample config file from that repo. Here's the issue you seem to be experiencing https://github.com/focuslabllc/ee-master-config/issues/2

4
  • Thank you. That solved it! Although now seems to be loading database templates. It's something to do with the base path. My setup is: ee.dev/public_html/templates/ And in config.master.php: $env_config['tmpl_file_basepath'] = $base_path . '/../templates'; I tried a few different paths but can't seem to get it working :s
    – jx3
    Commented Sep 2, 2015 at 9:14
  • so $base_path your document root but $base_path . '/../templates'; is going a level up. If you move your template directory a level above, that should solve your issue. I'd always recommend getting to know the default config file first before working with master config. Commented Sep 2, 2015 at 9:20
  • Ah right, yes makes sense. I tried that but didn't seem to work. Confused as to what should be in the master config file vs the system config file now :(
    – jx3
    Commented Sep 2, 2015 at 9:57
  • Solved it here :) - expressionengine.stackexchange.com/questions/32892/… - thanks for your time!
    – jx3
    Commented Sep 2, 2015 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.