Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Multisite setup (subdomain): Theme 'ceevee' does not exist, unable to display page

Solved by Jan Galinski View solution

Started by Jan Galinski 9 years ago · 1 replies · 1060 views
9 years ago

I use the ceevee skeleton and created a simple multisite by duplicating its user folder into /user/sites/foo.mydomain and /user/sites/bar.mydomain.
Both subdomain are configured to point to the same grav-multisite

However, instead of a running installation, I get:

TXT
Theme 'ceevee' does not exist, unable to display page.

my setup.php was copied from the docs and looks like this:

PHP
<?php
/**
 * Multisite setup for subsites accessible via sub-domains.
 */
use Grav\Common\Utils;

// Get subsite name from sub-domain
$environment = isset($_SERVER['HTTP_HOST'])
  ? $_SERVER['HTTP_HOST']
  : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost');
// Remove port from HTTP_HOST generated $environment
$environment = strtolower(Utils::substrToString($environment, ':'));
$folder = "sites/{$environment}";

if ($environment === 'localhost' || !is_dir(ROOT_DIR . "user/{$folder}")) {
  return [];
}

return [
  'environment' => $environment,
  'streams' => [
    'schemes' => [
      'user' => [
        'type' => 'ReadOnlyStream',
        'prefixes' => [
          '' => ["user/{$folder}"],
        ]
      ]
    ]
  ]
];

what could be the issue here?

9 years ago Solution

I was able to resolve this, I just forgot the "sites" folder. Meanwhile I enhanced the setup with help from /forum/archive/multisite-inheritance-question-t1708 and see my pages. Nice.

I had to disable the email plugin, though, it failed with a composer error. But one step after the other

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago