Comments (7)
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.
I've tried clearing cache and stache but still it persists.
from statamic-advanced-seo.
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.
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:
- they were sorted by date
- 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.
I was able to replicate it on a new site.
- Created a fresh new blank statamic site
- Install SSG package
- Create a collection and give them a URL eg blog/{slug}
- Make the collection orderable by date
- Attach a taxonomy to the collection
- 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.
This is the issue I opened for reference: statamic/ssg#134
from statamic-advanced-seo.
Thank you!
from statamic-advanced-seo.
Related Issues (20)
- Make view composer configurable HOT 1
- Browsershot Error When Generating SEO Images HOT 2
- seoMeta query: Maximum execution time of 30 seconds exceeded HOT 2
- App\Models\User database user error when viewing setting pages. HOT 4
- SEO generate images saving on local HOT 2
- Not possible to translate SEO title for custom routes HOT 5
- Force robots to use `noindex,nofollow` when `APP_ENV` is not set to `production` HOT 8
- Issue with SeoVariablesPolicy::view() Causing Server Error in Statamic Application HOT 4
- GraphQL seo>view>head missing json+ld script tag
- [FR] Store settings in mysql or S3 HOT 4
- Error on sitemap syntax error, unexpected identifier "version" HOT 6
- Assets are not Augmented when returned by Statamics Rest API HOT 1
- Add config option to define base URLs for GraphQL view queries HOT 1
- Add sitemap GraphQL query HOT 5
- Open Graph Image - Is it possible to set this to a field? HOT 3
- Weird button labels HOT 1
- `noindex` property in content md sets `seo:indexing` HOT 5
- 1200px x 628px not large enough for OG image to be shown as "large image" HOT 3
- Set SEO for custom views / layouts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statamic-advanced-seo.