marionnewlevant / craft-snitch

Craft plugin. Report when two people might be editing the same entry, category, or global
MIT License
35 stars 16 forks source link

InvalidConfigException Unable to locate message source for category 'typedlinkfield'. #15

Closed dlindberg closed 4 years ago

dlindberg commented 4 years ago

Description

There is a difficult to diagnose issue introduced with the Craft 3.3+ update that can cause yii\base\InvalidConfigException if a plugin assumes the craft app is fully bootstrapped during the init() method. The specific issue occurs when using the sebastianlenz/linkfield plugin as reported in issue 79 on that plugin where the CpFieldInspect-Craft also trigged the issue (From the discussion, diagnosing the problem proved challenging, but the specific solution appears relatively straight forward.

Steps to reproduce

  1. Install the Craft Snitch Plugin
  2. Install another plugin that modifies the application configuration (e.g. sebastianlenz/linkfield)

Additional info

marionnewlevant commented 4 years ago

Thanks for the very clear report!