Answers.Body: <p>I think the failed propagation job is the problem here.</p>
  <p>You can re-run this by creating an executable to push a new propagation job.</p>
  <p>Duplicate your <code>craft</code> executable and rename it to <code>propagate</code> (or anything you like.</p>
  <p>Replace the code with this:</p>
  <pre class="lang-php prettyprint-override"><code>#!/usr/bin/env php
  &lt;?php
  /**
   * Craft console bootstrap file
   */
  
  // Set path constants
  define('CRAFT_BASE_PATH', __DIR__);
  define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH.'/vendor');
  
  // Load Composer's autoloader
  require_once CRAFT_VENDOR_PATH.'/autoload.php';
  
  // Load dotenv?
  if (class_exists('Dotenv\Dotenv') &amp;&amp; file_exists(CRAFT_BASE_PATH.'/.env')) {
      Dotenv\Dotenv::create(CRAFT_BASE_PATH)-&gt;load();
  }
  
  // Load and run Craft
  define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
  $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/console.php';
  
  // change this to your primary site id
  $primarySiteId = 1;
  
  $app-&gt;queue-&gt;push(new \craft\queue\jobs\PropagateElements([
          'elementType' =&gt; \craft\elements\GlobalSet::class,
          'criteria' =&gt; [
              'siteId' =&gt; $primarySiteId,
          ],
          'siteId' =&gt; null,
      ]
  ));
  exit(0);
  </code></pre>
  <p>Change <code>$primarySiteId</code> to your primary site ID :)</p>
  <p>Now run <code>./propagate</code> (or whatever you named the file).</p>
  <p>This will create a new job that will (re)propagate your Globalsets to all your sites.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-04T16:48:57.933Z
Answers.LastActivityDate: 2022-02-04T17:39:55.397Z
Answers.LastEditDate: 2022-02-04T17:39:55.397Z
Answers.UserDisplayName: Oli
Answers.Body: <p>You're probably experiencing <a href="https://github.com/craftcms/cms/issues/10458" rel="nofollow noreferrer">this issue</a> which can result in global sets not being created in some environments. This issue has already been fixed, the fix will be release with the next Craft version (likely 3.7.31).</p>
  <p>Please try to update to the latest development version by requiring the latest dev version of craft in your <code>composer.json</code>:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;require&quot;: {
      &quot;craftcms/cms&quot;: &quot;dev-develop as 3.7.30.1&quot;,
  }
  </code></pre>
  <p>Then use <code>composer update</code> to get the latest dev version and <code>php craft project-config/apply --force</code> in your staging environment (and ever other affected environment).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-04T14:52:07.947Z
Answers.LastActivityDate: 2022-02-04T14:52:07.947Z
Answers.UserDisplayName: MoritzLost
Body: <p>In desperate need of some help!</p>
  <p>I noticed on one of my multi-sites, 5 out of 8 sites have items missing in the Globals sidebar..</p>
  <p>When I manually type in the URL to view one of the global items I get: <code>403 — User not permitted to edit global set</code></p>
  <p>I've checked in Utilites &gt; Queue Manager and see <code>Propagating global sets</code> has failed. When I click inside the error shows <code>Attempting to save an element in an unsupported site.</code></p>
  <p>Does anyone know how to fix this? I'm assuming it's maybe my project config thats messed up somewhere.</p>
  <hr />
  <p>Edit:<br />
  Also, creating a new site doesn't show Globals either.<br />
  And my local dev database seems to be showing the Globals, but staging does not.</p>
  
Tags: <craft3><multi-site><globals><queue>
Title: Globals disappeared/Queue Failed — Propagating global sets
ThreadText: # Globals disappeared/Queue Failed — Propagating global sets
  
  (Asked by: username_0 on 2022-02-04)
  
  In desperate need of some help!
  
  I noticed on one of my multi-sites, 5 out of 8 sites have items missing in the Globals sidebar..
  
  When I manually type in the URL to view one of the global items I get: `403 — User not permitted to edit global set`
  
  I've checked in Utilites > Queue Manager and see `Propagating global sets` has failed. When I click inside the error shows `Attempting to save an element in an unsupported site.`
  
  Does anyone know how to fix this? I'm assuming it's maybe my project config thats messed up somewhere.
  
  ---
  
  Edit:  
  Also, creating a new site doesn't show Globals either.  
  And my local dev database seems to be showing the Globals, but staging does not.
  
  **Tags:** craft3, multi-site, globals, queue
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2022-02-04. Score: 2 | Accepted answer
  
  I think the failed propagation job is the problem here.
  
  You can re-run this by creating an executable to push a new propagation job.
  
  Duplicate your `craft` executable and rename it to `propagate` (or anything you like.
  
  Replace the code with this:
  
  ```php
  #!/usr/bin/env php
  <?php
  /**
   * Craft console bootstrap file
   */
  
  // Set path constants
  define('CRAFT_BASE_PATH', __DIR__);
  define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH.'/vendor');
  
  // Load Composer's autoloader
  require_once CRAFT_VENDOR_PATH.'/autoload.php';
  
  // Load dotenv?
  if (class_exists('Dotenv\Dotenv') && file_exists(CRAFT_BASE_PATH.'/.env')) {
      Dotenv\Dotenv::create(CRAFT_BASE_PATH)->load();
  }
  
  // Load and run Craft
  define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
  $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/console.php';
  
  // change this to your primary site id
  $primarySiteId = 1;
  
  $app->queue->push(new \craft\queue\jobs\PropagateElements([
          'elementType' => \craft\elements\GlobalSet::class,
          'criteria' => [
              'siteId' => $primarySiteId,
          ],
          'siteId' => null,
      ]
  ));
  exit(0);
  
  ```
  
  Change `$primarySiteId` to your primary site ID :)
  
  Now run `./propagate` (or whatever you named the file).
  
  This will create a new job that will (re)propagate your Globalsets to all your sites.
  
  
  ---
  
  ### Answer by username_2 on 2022-02-04. Score: 2
  
  You're probably experiencing [this issue](https://github.com/craftcms/cms/issues/10458) which can result in global sets not being created in some environments. This issue has already been fixed, the fix will be release with the next Craft version (likely 3.7.31).
  
  Please try to update to the latest development version by requiring the latest dev version of craft in your `composer.json`:
  
  ```json
  "require": {
      "craftcms/cms": "dev-develop as 3.7.30.1",
  }
  
  ```
  
  Then use `composer update` to get the latest dev version and `php craft project-config/apply --force` in your staging environment (and ever other affected environment).
  
  
  ---
  
  