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
Local Generator fails while HTTP Generator doesn't #444
Comments
I'm not seeing anything in the Blitz log file, which is where I would expect to see errors. Can you provide any more details about how exactly it fails? |
So what I did now was I cleared all the logs. Then I cleared the entire cache in Blitz and ran "Generate all pages" and after page ~62 of 437 pages I just stops. Then those three log files are the ones getting created. No visitors or anything during the process. It's just me. If I do exactly the same with the HTTP Generator all pages gets generated as they should. Can there be something in the template(s) that the Local Generator gets stuck on which the HTTP Generator doesn't since Craft mutes the frontend error for the site? But internally twig catches it? I'm thinking about that URLHelper error. |
Yes, it does look like it's related.
Can you check around line 48 in |
So here's the line @bencroker: |
Ok, so it in indeed looks like there's a case where the value passed into |
Small update. We are working through the template errors and so far whenever we fix something the Local Generator goes a little bit further. So this might be 100% twig errors. I'll report back once we are done. But maybe something to figure out anyways? Right now if there's a twig error the warming just halts. |
It does sound like Twig errors. Keep checking the logs until you fix them all up. I'll look into allowing the Local Generator to carry on even when it encounters errors. |
This should resolve the Local Generator failing, feel free to test: |
The Local Generator now runs as it should @bencroker. Great update! Thanks |
Glad to hear it, be sure to fix up those errors though, they should be logged to |
We are having an issue with the Local Generator when warming the site cache. The Local Generator failes after X pages (almost always on the same page) but if we switch to the HTTP Generator it works everytime.
Attached are the console, queue and blitz log files (env. information removed).
Craft version: 4.2.3
Blitz version: 4.2.1
queue-2022-09-16.log
console-2022-09-16.log
blitz-2022-09-16.log
The text was updated successfully, but these errors were encountered: