-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
static:warm command failing #4749
Comments
Okay, the real exception is being masked by this output one. I wonder if it's related to #4746. |
It might be related somehow for sure. The errors are a little different though: Issue #4746 does get thrown if updating the search and the Algolia driver |
I understand they happen at different times. But in both cases you are interacting with entries, so maybe the problem entry is triggering the error in both cases. |
That's really likely. |
This is odd ... as descried in #4746, I had problems using Algolia to search in the cp. Setting searchables inside the This error message from my logs might help [2021-11-16 20:36:16] production.ERROR: Call to undefined method Statamic\Assets\Asset::collection() {"userId":"XXXX","exception":"[object] (Error(code: 0): Call to undefined method Statamic\\Assets\\Asset::collection() at /home/forge/production.page.com/vendor/statamic/cms/src/Http/Resources/CP/Entries/ListedEntry.php:31) Somehow the ListedEntry class does try to get a collection from an Asset ... this will not work. I couldn't dig deeper but am hoping that this will help. |
It seems that those issues are not related. |
I am puzzled, as Maybe it has to do with the installed Guzzle version? Looking at my composer.lock file I am on Guzzle v7.4.1. @jonassiewertsen if this issue still happens for you, can you share the version of Guzzle you have installed please? |
@arthurperton I don't have access to that project anymore, but I asked for the version from someone who has. |
@jonassiewertsen and @arthurperton. The installed Guzzle version is 6.5.5. |
Unless you are using Guzzle 6 for a specific reason, we suggest you just update to version 7 of That should resolve the issue. We'll reopen the issue if you really need Guzzle 6. |
Upgrade to Guzzle 7. |
@jasonvarga Thanks. I was initially having an issue upgrading Guzzle because I had a custom plugin requiring guzzle6-adaptor but I got it sorted. Upgrading Guzzle solved the issue for me. |
Bug description
If running
static:warm
on a production site I get the following error:How to reproduce
I am not sure how this can be reproduced. As our site has round about 3.000 entries, I am not sure how this is related.
The page is not doing anything fancy, the does simply has a few more entries than normal.
Logs
Versions
Statamic 3.2.22 Pro
Laravel 7.30.4
PHP 8.0.3
pecotamic/sitemap 1.2.7
spatie/statamic-responsive-images 2.8.5
statamic/seo-pro 2.3.2
Installation
Other (please explain)
Additional details
No response
The text was updated successfully, but these errors were encountered: