Answers.Body: <p>This turned out to be an issue with stalled tasks. There were a number of stalled tasks that were blocking the queue, preventing the localized pages from being created ("resave all localizable elements"). Clearing the stalled tasks resolved the issue. Thanks to Brad Bell for resolving this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T20:09:37.660Z
Answers.LastActivityDate: 2019-02-27T20:09:37.660Z
Answers.UserDisplayName: Wonko
Body: <p>Folks:</p>
  
  <p>I'm creating a localized site on Craft2 and CraftCommerce. I have followed the instructions for creating a localized site but none of the content shows at the localized URL and the homepage shows the craft default template. The default template has no content.</p>
  
  <p>In the CP, the language is available in the upper right of an entry. The fields that are translatable are labelled. When I click the language, the Craft "not found" page is shown.</p>
  
  <p>My guess is that because no fields exist for the language, no fields can be shown on the front end.</p>
  
  <p>Error from the logs:</p>
  
  <pre><code>2019/02/22 11:28:37 [error] [exception.Craft\HttpException.404] Craft\HttpException in /usr/home/name/temp.domain.com/craft/app/controllers/EntriesController.php:773
  Stack trace:
  #0 /usr/home/name/temp.domain.com/craft/app/controllers/EntriesController.php(52): Craft\EntriesController-&gt;_prepEditEntryVariables(Array)
  #1 [internal function]: Craft\EntriesController-&gt;actionEditEntry(Array)
  #2 /usr/home/name/temp.domain.com/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod-&gt;invokeArgs(Object(Craft\EntriesController), Array)
  #3 /usr/home/name/temp.domain.com/craft/app/framework/web/actions/CInlineAction.php(47): CAction-&gt;runWithParamsInternal(Object(Craft\EntriesController), Object(ReflectionMethod), Array)
  #4 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(308): CInlineAction-&gt;runWithParams(Array)
  #5 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(286): CController-&gt;runAction(Object(CInlineAction))
  #6 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(265): CController-&gt;runActionWithFilters(Object(CInlineAction), Array)
  #7 /usr/home/name/temp.domain.com/craft/app/framework/web/CWebApplication.php(282): CController-&gt;run('editEntry')
  #8 /usr/home/name/temp.domain.com/craft/app/framework/web/CWebApplication.php(141): CWebApplication-&gt;runController('entries/editEnt...')
  #9 /usr/home/name/temp.domain.com/craft/app/etc/web/WebApp.php(291): CWebApplication-&gt;processRequest()
  #10 /usr/home/name/temp.domain.com/craft/app/framework/base/CApplication.php(185): Craft\WebApp-&gt;processRequest()
  #11 /usr/home/name/temp.domain.com/craft/app/index.php(73): CApplication-&gt;run()
  #12 /usr/home/name/temp.domain.com/public_html/index.php(20): require_once('/usr/home/name/...')
  #13 {main}
  REQUEST_URI=/admin/entries/contact/5-contact/en_gb
  HTTP_REFERER=http://temp.domain.com/admin/entries/contact/5-contact
  </code></pre>
  
  <p>What I've done:</p>
  
  <p>As mentioned, I've followed the instructions in the Craft docs.</p>
  
  <p>I have updated the asset indexes.</p>
  
  <p>I have used environment variables like so:</p>
  
  <pre><code>'temp.domain.com' =&gt; array(
          'environmentVariables' =&gt; array(
          'devMode' =&gt; true,
          'basePath' =&gt; '/usr/home/business/temp.domain.com/public_html/',
          'baseUrl'  =&gt; 'http://temp.domain.com/',
          ),
          'siteUrl' =&gt; array(
          'en_us' =&gt; 'http://temp.domain.com/',
          'en_gb' =&gt; 'http://temp.domain.com/en_gb',
          )
      ),
  </code></pre>
  
  <p>I have verified that asset source settings are:</p>
  
  <pre><code>{basePath}images_product/
  {baseUrl}images_product/
  </code></pre>
  
  <p>I have made appropriate fields translatable.</p>
  
  <p>I enabled the locales for each section.</p>
  
  <p>I created and populated subfolders. Index.php looks like so:</p>
  
  <pre><code>// Path to your craft/ folder
  $craftPath = '../../craft';
  
  // Tell Craft to serve the British content
  define('CRAFT_LOCALE', 'en_gb');
  </code></pre>
  
  <p>Additional info:</p>
  
  <p>I am using SEOMatic and that does work as advertised with different meta content showing up for the localized site even if nothing else shows on the page.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-24T17:53:58.610Z
Comments.Text: For the CP side of things it looks like there's no 'contact' entry in your en_gb site. It regards to your templates, have you do followed the docs - https://docs.craftcms.com/v2/localization-guide.html#step-7-update-your-templates
Comments.UserDisplayName: Oli
Tags: <plugin-craftcommerce><localization>
Title: Localization - "not found" in CP on language selection
ThreadText: # Localization - "not found" in CP on language selection
  
  (Asked by: username_0 on 2019-02-20)
  
  Folks:
  
  I'm creating a localized site on Craft2 and CraftCommerce. I have followed the instructions for creating a localized site but none of the content shows at the localized URL and the homepage shows the craft default template. The default template has no content.
  
  In the CP, the language is available in the upper right of an entry. The fields that are translatable are labelled. When I click the language, the Craft "not found" page is shown.
  
  My guess is that because no fields exist for the language, no fields can be shown on the front end.
  
  Error from the logs:
  
  ```
  2019/02/22 11:28:37 [error] [exception.Craft\HttpException.404] Craft\HttpException in /usr/home/name/temp.domain.com/craft/app/controllers/EntriesController.php:773
  Stack trace:
  #0 /usr/home/name/temp.domain.com/craft/app/controllers/EntriesController.php(52): Craft\EntriesController->_prepEditEntryVariables(Array)
  #1 [internal function]: Craft\EntriesController->actionEditEntry(Array)
  #2 /usr/home/name/temp.domain.com/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(Craft\EntriesController), Array)
  #3 /usr/home/name/temp.domain.com/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(Craft\EntriesController), Object(ReflectionMethod), Array)
  #4 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
  #5 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
  #6 /usr/home/name/temp.domain.com/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
  #7 /usr/home/name/temp.domain.com/craft/app/framework/web/CWebApplication.php(282): CController->run('editEntry')
  #8 /usr/home/name/temp.domain.com/craft/app/framework/web/CWebApplication.php(141): CWebApplication->runController('entries/editEnt...')
  #9 /usr/home/name/temp.domain.com/craft/app/etc/web/WebApp.php(291): CWebApplication->processRequest()
  #10 /usr/home/name/temp.domain.com/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest()
  #11 /usr/home/name/temp.domain.com/craft/app/index.php(73): CApplication->run()
  #12 /usr/home/name/temp.domain.com/public_html/index.php(20): require_once('/usr/home/name/...')
  #13 {main}
  REQUEST_URI=/admin/entries/contact/5-contact/en_gb
  HTTP_REFERER=http://temp.domain.com/admin/entries/contact/5-contact
  
  ```
  
  What I've done:
  
  As mentioned, I've followed the instructions in the Craft docs.
  
  I have updated the asset indexes.
  
  I have used environment variables like so:
  
  ```
  'temp.domain.com' => array(
          'environmentVariables' => array(
          'devMode' => true,
          'basePath' => '/usr/home/business/temp.domain.com/public_html/',
          'baseUrl'  => 'http://temp.domain.com/',
          ),
          'siteUrl' => array(
          'en_us' => 'http://temp.domain.com/',
          'en_gb' => 'http://temp.domain.com/en_gb',
          )
      ),
  
  ```
  
  I have verified that asset source settings are:
  
  ```
  {basePath}images_product/
  {baseUrl}images_product/
  
  ```
  
  I have made appropriate fields translatable.
  
  I enabled the locales for each section.
  
  I created and populated subfolders. Index.php looks like so:
  
  ```
  // Path to your craft/ folder
  $craftPath = '../../craft';
  
  // Tell Craft to serve the British content
  define('CRAFT_LOCALE', 'en_gb');
  
  ```
  
  Additional info:
  
  I am using SEOMatic and that does work as advertised with different meta content showing up for the localized site even if nothing else shows on the page.
  
  **Tags:** plugin-craftcommerce, localization
  
  > **Comments:**
  > **username_1**: For the CP side of things it looks like there's no 'contact' entry in your en_gb site. It regards to your templates, have you do followed the docs - https://docs.craftcms.com/v2/localization-guide.html#step-7-update-your-templates  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-02-27. Score: 1 | Accepted answer
  
  This turned out to be an issue with stalled tasks. There were a number of stalled tasks that were blocking the queue, preventing the localized pages from being created ("resave all localizable elements"). Clearing the stalled tasks resolved the issue. Thanks to Brad Bell for resolving this.
  
  
  ---
  
  