Answers.Body: <p>There are several things that might be the issue in such cases, I'll list a few of them</p>
  <ul>
  <li>Did you change your index.php so maybe Craft is unable to detect the current site?</li>
  <li>Are there different index.php files in different folders in order to do the multisite setup instead of the single one? -&gt; You should only have one for all</li>
  <li>Do you have any plugins that might interfer and offer their custom error page / error behaviors?</li>
  <li>Do you have any other events in your own custom plugin/module that includes a custom error handling?</li>
  <li>Is your error template in the templates roots folder and not in a site/site group subfolder so Craft only selects it for a single site instead of globally?</li>
  <li>Make sure, that the site handle and the directory name match</li>
  <li>Make sure dev mode is off</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-05T06:18:24.687Z
Answers.LastActivityDate: 2022-04-27T07:42:16.640Z
Answers.LastEditDate: 2022-04-27T07:42:16.640Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I have a multi site setup for supporting multiple languages in Craft 3.</p>
  
  <p><code>'/' =&gt; German
  '/en/' =&gt; English</code></p>
  
  <p>In my general.php I have <code>'errorTemplatePrefix' =&gt; 'error/',</code></p>
  
  <p>When I enter '/notexisting', my <code>error/error.twig</code> gets called. But when I enter '/en/notexisting', then the default Craft error message gets displayed "Page Not Found, Template not found: notexisting"</p>
  
  <p>How do I get my <code>error.twig</code> called also for other sites?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-04T14:01:31.330Z
Comments.Text: That should usually work by default. Did you change something in your index.php or do you use different index.php files for each site? Have you changed the default behavior of Craft? Dev mode is tuned off I guess? Is your error folder in a site/sitegroup folder and not in the root of your templates folder?
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-04T14:53:04.377Z
Comments.Text: Thank you very much, it was the last part
Comments.UserDisplayName: Volker Andres
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-04T20:40:02.470Z
Comments.Text: @RobinSchambach Can you just post a checklist for multi site setup? Then I will accept that as the answer
Comments.UserDisplayName: Volker Andres
Tags: <craft3><multi-site><error-handling>
Title: Error pages in multi site setup
ThreadText: # Error pages in multi site setup
  
  (Asked by: username_0 on 2019-03-30)
  
  I have a multi site setup for supporting multiple languages in Craft 3.
  
  `'/' => German
  '/en/' => English`
  
  In my general.php I have `'errorTemplatePrefix' => 'error/',`
  
  When I enter '/notexisting', my `error/error.twig` gets called. But when I enter '/en/notexisting', then the default Craft error message gets displayed "Page Not Found, Template not found: notexisting"
  
  How do I get my `error.twig` called also for other sites?
  
  **Tags:** craft3, multi-site, error-handling
  
  > **Comments:**
  > **username_1**: That should usually work by default. Did you change something in your index.php or do you use different index.php files for each site? Have you changed the default behavior of Craft? Dev mode is tuned off I guess? Is your error folder in a site/sitegroup folder and not in the root of your templates folder?  
  > **username_0**: Thank you very much, it was the last part  
  > **username_0**: @username_1 Can you just post a checklist for multi site setup? Then I will accept that as the answer  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-05. Score: 3 | Accepted answer
  
  There are several things that might be the issue in such cases, I'll list a few of them
  
  * Did you change your index.php so maybe Craft is unable to detect the current site?
  * Are there different index.php files in different folders in order to do the multisite setup instead of the single one? -> You should only have one for all
  * Do you have any plugins that might interfer and offer their custom error page / error behaviors?
  * Do you have any other events in your own custom plugin/module that includes a custom error handling?
  * Is your error template in the templates roots folder and not in a site/site group subfolder so Craft only selects it for a single site instead of globally?
  * Make sure, that the site handle and the directory name match
  * Make sure dev mode is off
  
  
  ---
  
  