This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Seth
Seth

Update: Looking deeper into the source code, I found that the site was looking in config/cms.php for the "activeTheme" parameter - it was set to "demo" which I had deleted on my dev server. Changing that to the name of the theme fixed this.

However this does not explain why this is working on dev and not on the live server.


When copying an october project from my development server to my production server, I'm getting this error. Any idea what is causing this?

/var/www/.../modules/cms/classes/Controller.php line 124 Undefined

EXCEPTION

Cms\Classes\CmsException

 * If the theme is not specified, the current active theme used.
 */
public function __construct($theme = null)
{
    $this->theme = $theme ? $theme : Theme::getActiveTheme();
    if (!$this->theme) {
        throw new CmsException(Lang::get('cms::lang.theme.active.not_found'));
    }

    $this->assetPath = Config::get('cms.themesPath', '/themes').'/'.$this->theme->getDirName();
    $this->router = new Router($this->theme);
    $this->partialStack = new PartialStack;
    $this->initTwigEnvironment();

Last updated

godhanipnj13117535
godhanipnj13117535

Hello, please change in config->cms.php file like 'activeTheme' => 'your theme name '.

Thank You.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.