Skip to content

MAGE-1228 Add proxies to constructor to defer store ops #1711

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

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

cammonro
Copy link
Contributor

Summary

This addresses an install issue encountered on Community Edition when installing Algolia via Composer before Magento. It uses proxies to defer the dependency chain that attempts to access store config before it has been defined.

The error resolved is: "In WebsiteRepository.php line 159: The default website isn't defined. Set the website and try again."

Result

Before fix:

image

After fix:

image

@damcou damcou self-requested a review March 24, 2025 08:03
Copy link
Contributor

@damcou damcou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch ! 🚀
Thanks for your investigation !

@cammonro cammonro merged commit c0ae4e0 into release/3.15.0-dev Mar 24, 2025
3 checks passed
@cammonro cammonro deleted the fix/MAGE-1228-ce-install branch March 24, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants