Coder Social home page Coder Social logo

Comments (7)

aerni avatar aerni commented on June 14, 2024 1

I tracked this down, and it seems to be an issue with the statamic/ssg package. Advanced SEO depends on the request()->path() to determine if a collection's blueprint should be extended or not. This is where the ssg:generate command fails. I'll open an issue on the repo and see where that goes. I might be able to fix the issue on my end with a nasty workaround. But I rather not.

from statamic-advanced-seo.

mc4rdle avatar mc4rdle commented on June 14, 2024

I've tried clearing cache and stache but still it persists.

from statamic-advanced-seo.

aerni avatar aerni commented on June 14, 2024

I'm going to need more information to work with. What's causing the error? I just tried to reproduce it on a fresh installation with aerni/advanced-seo and statamic/ssg. I can run ssg:generate without an error.

Please create a fresh repo that reproduces the error so I can take a look at it.

from statamic-advanced-seo.

mc4rdle avatar mc4rdle commented on June 14, 2024

Yea, the logs don't seem to give any clues. I tried to remove everything one by one until it worked. It turns out two collections were causing it (Blog and Webinars), and they both had two things in common:

  1. they were sorted by date
  2. they had a taxonomy linked to the collection

Deleting every entry in both collections stopped the error. Removing the Taxonomy or disabling Enable Publish Dates from the collection alone doesn't stop it, but removing/disabling both on the collection at the same time does, which is strange.

Log File:
log.txt

from statamic-advanced-seo.

mc4rdle avatar mc4rdle commented on June 14, 2024

I was able to replicate it on a new site.

  1. Created a fresh new blank statamic site
  2. Install SSG package
  3. Create a collection and give them a URL eg blog/{slug}
  4. Make the collection orderable by date
  5. Attach a taxonomy to the collection
  6. Run php please ssg:generate and it will fail

The collection's yaml file on my new fresh site:

title: Blog
template: blog/show
layout: layout
taxonomies:
  - tags
revisions: false
route: '/blog/{slug}'
date: true
sort_dir: asc
date_behavior:
  past: public
  future: private
preview_targets:
  -
    label: Entry
    url: '{permalink}'
    refresh: true

from statamic-advanced-seo.

aerni avatar aerni commented on June 14, 2024

This is the issue I opened for reference: statamic/ssg#134

from statamic-advanced-seo.

mc4rdle avatar mc4rdle commented on June 14, 2024

Thank you!

from statamic-advanced-seo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.