Answers.Body: <p>As mentioned in <a href="https://craftcms.com/docs/4.x/console-commands.html#resave-matrix-blocks" rel="nofollow noreferrer">the official docs</a>, the <code>resave/matrix-blocks</code> command needs the <code>--field</code> (i.e. a Matrix field handle) or <code>--element-id</code> (IDs of specific blocks to resave) arguments, on order for Craft to pull in the correct content tables.</p>
  <p>This means that you won't be able to resave all Matrix blocks in a single command, but have to them field by field, i.e.</p>
  <pre class="lang-shell prettyprint-override"><code>./craft resave/matrix-blocks --field matrixFieldHandle
  </code></pre>
  <p>...where <code>matrixFieldHandle</code> should be replaced with an actual Matrix field handle.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-07T16:45:45.217Z
Answers.LastActivityDate: 2023-03-07T16:45:45.217Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <p>We recently updated one of our biggest projects to Craft 4. And today I tried to resave all the matrix block with <code>resave/matrix-blocks</code> but was greeted with the following behaviour:</p>
  <p><a href="https://i.sstatic.net/1dHRD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1dHRD.png" alt="enter image description here" /></a></p>
  <p>Does anybody have a similar problem or know what might cause this? Using the CP works expected without any problems. And the logs don't show me anything to work with.</p>
  <p>Leonardo</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-13T07:34:51.930Z
Comments.Text: I cant't remeber how we solved this issue. sorry
Comments.UserDisplayName: Leonardo
Tags: <matrix><craft4><cli>
Title: Resaving Matrix Blocks skips because of "not loading its content"
ThreadText: # Resaving Matrix Blocks skips because of "not loading its content"
  
  (Asked by: username_0 on 2023-03-07)
  
  We recently updated one of our biggest projects to Craft 4. And today I tried to resave all the matrix block with `resave/matrix-blocks` but was greeted with the following behaviour:
  
  [![enter image description here](https://i.sstatic.net/1dHRD.png)](https://i.sstatic.net/1dHRD.png)
  
  Does anybody have a similar problem or know what might cause this? Using the CP works expected without any problems. And the logs don't show me anything to work with.
  
  username_0
  
  **Tags:** matrix, craft4, cli
  
  > **Comments:**
  > **username_0**: I cant't remeber how we solved this issue. sorry  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-03-07. Score: 1 | Accepted answer
  
  As mentioned in [the official docs](https://craftcms.com/docs/4.x/console-commands.html#resave-matrix-blocks), the `resave/matrix-blocks` command needs the `--field` (i.e. a Matrix field handle) or `--element-id` (IDs of specific blocks to resave) arguments, on order for Craft to pull in the correct content tables.
  
  This means that you won't be able to resave all Matrix blocks in a single command, but have to them field by field, i.e.
  
  ```shell
  ./craft resave/matrix-blocks --field matrixFieldHandle
  
  ```
  
  ...where `matrixFieldHandle` should be replaced with an actual Matrix field handle.
  
  
  ---
  
  