Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation fails - Nesting level too deep #8606

Closed
mbootsman opened this issue Aug 22, 2023 · 1 comment
Closed

Generation fails - Nesting level too deep #8606

mbootsman opened this issue Aug 22, 2023 · 1 comment

Comments

@mbootsman
Copy link

Bug description

When generating the static site, I get this error.

More info: statamic/ssg#144

How to reproduce

Since I'm new here, I'm not sure. I'm using the Peak starter kit, nothing fancy AFAIK.

Logs

You may be able to speed up site generation significantly by installing spatie/fork and using multiple workers (requires PHP 8+).
[✔] Gathered content to be generated
Generating /page-not-found
PHP Fatal error:  Nesting level too deep - recursive dependency? in /home/marcel/Sites/marcelbootsman/vendor/statamic/cms/src/StaticCaching/NoCache/Region.php on line 55

   Symfony\Component\ErrorHandler\Error\FatalError 

  Nesting level too deep - recursive dependency?

  at vendor/statamic/cms/src/StaticCaching/NoCache/Region.php:55
     51▕                     if (! empty($aRecursiveDiff)) {
     52▕                         $data[$aKey] = $aRecursiveDiff;
     53▕                     }
     54▕                 } else {
  ➜  55▕                     if ($aValue != $b[$aKey]) {
     56▕                         $data[$aKey] = $aValue;
     57▕                     }
     58▕                 }
     59▕             } else {


   Whoops\Exception\ErrorException 

  Nesting level too deep - recursive dependency?

  at vendor/statamic/cms/src/StaticCaching/NoCache/Region.php:55
     51▕                     if (! empty($aRecursiveDiff)) {
     52▕                         $data[$aKey] = $aRecursiveDiff;
     53▕                     }
     54▕                 } else {
  ➜  55▕                     if ($aValue != $b[$aKey]) {
     56▕                         $data[$aKey] = $aValue;
     57▕                     }
     58▕                 }
     59▕             } else {

      +1 vendor frames 

  2   [internal]:0
      Whoops\Run::handleShutdown()

Static site generation failed.

Environment

Statamic version: 4.18.0
Statamic SSG version: 2.1

Installation

Starter Kit using via CLI

Antlers Parser

None

Additional details

No response

@jasonvarga
Copy link
Member

Hey, we can keep this going on the other issue you opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants