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

Generate issue #163

Open
Bracketstech opened this issue Mar 18, 2024 · 2 comments
Open

Generate issue #163

Bracketstech opened this issue Mar 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Bracketstech
Copy link

Bracketstech commented Mar 18, 2024

when I do all the things and tried to execute this command --> php please ssg:generate

this is the output :

You may be able to speed up site generation significantly by installing spatie/fork and using multiple workers (requires PHP 8+).
Gathering content to be generated...

   Error 

  Call to a member function sites() on null

  at vendor/statamic/cms/src/Taxonomies/Term.php:144
    140▕     }
    141▕ 
    142▕     public function defaultLocale()
    143▕     {
  ➜ 144▕         return $this->taxonomy()->sites()->first();
    145▕     }
    146▕ 
    147▕     public function localizations()
    148▕     {

      +2 vendor frames 

  3   [internal]:0
      Statamic\Eloquent\Taxonomies\TermQueryBuilder::Statamic\Eloquent\Taxonomies\{closure}(Object(Statamic\Eloquent\Taxonomies\TermModel))
      +25 vendor frames 

  29  please:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

what is the issue ?

@Bracketstech
Copy link
Author

@duncanmcclean
Copy link
Member

The relevant people are notified when new issues are opened, no need to tag people directly 😄

@duncanmcclean duncanmcclean added the bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants