Skip to content

fix: resolve InvalidConfigException by fixing case-sensitivity in translation category#214

Merged
lukeholder merged 1 commit into
craftcms:7.xfrom
alricium:7.x
May 19, 2026
Merged

fix: resolve InvalidConfigException by fixing case-sensitivity in translation category#214
lukeholder merged 1 commit into
craftcms:7.xfrom
alricium:7.x

Conversation

@alricium
Copy link
Copy Markdown
Contributor

I found the exact cause of this crash. The issue is a simple case-sensitivity mismatch in the translation category name.

In src/models/Settings.php, the error validation message for the host name attribute is calling Craft::t() using 'Shopify' with a capital S. However, the plugin registers and configures all its translation sources using the lowercase 'shopify' category.

When a host name validation fails, the framework tries to look up the capital 'Shopify' source, can't locate it, and throws the InvalidConfigException.

I fixed this by changing the category name to lowercase 'shopify' so it matches the plugin's registered translation source and handles the validation error gracefully instead of crashing.

@alricium alricium requested a review from a team as a code owner May 19, 2026 11:18
@lukeholder lukeholder merged commit cc52166 into craftcms:7.x May 19, 2026
6 checks passed
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