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

PHP error when generating cache #578

Closed
GaelPQCQ opened this issue Nov 2, 2023 · 6 comments
Closed

PHP error when generating cache #578

GaelPQCQ opened this issue Nov 2, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@GaelPQCQ
Copy link

GaelPQCQ commented Nov 2, 2023

Screenshot 2023-11-02 at 11 18 19

  • Steps to reproduce the issue
    I have two sites in my Craft instance.
    I click on Generate cache and I get the error, same with the console command.

  • A clear and concise description of what you expected to happen.
    The cache is generated without any error

  • The plugin and Craft version numbers.
    Craft 4.5.9
    Blitz 4.7.0

@GaelPQCQ GaelPQCQ added the bug Something isn't working label Nov 2, 2023
@bencroker
Copy link
Collaborator

bencroker commented Nov 2, 2023

Do you have custom site URIs defined in config settings (via a blitz.php file) and, if so, is the setting correctly formatted?

@GaelPQCQ
Copy link
Author

GaelPQCQ commented Nov 2, 2023

No I don't have a blitz.php file.
I tried setting up the cache only on one site (instead of all sites) but it does the same error still.

@kerrig
Copy link

kerrig commented Nov 2, 2023

I'm also running into this same error (same versions as well). We do have a blitz.php file but no custom site URIs are defined. Seems like this happened with the most recent update as I just updated today and this was working fine before the update.

@bencroker
Copy link
Collaborator

Thanks for reporting and confirm this! Fixed in 2feda81 for the next release.

You can test this by running composer require "putyourlightson/craft-blitz:dev-develop as 4.7.1".

@bencroker
Copy link
Collaborator

Released in 4.7.1.

@GaelPQCQ
Copy link
Author

GaelPQCQ commented Nov 3, 2023

Thank you very much for this fast correction!

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

3 participants