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

Redactor plugin not found: source #34

Closed
seandelaney opened this issue May 2, 2018 · 3 comments
Closed

Redactor plugin not found: source #34

seandelaney opened this issue May 2, 2018 · 3 comments

Comments

@seandelaney
Copy link

New Craft 3 installation, v3.0.5.

From within the plugin store, clicked to install Redactor plugin, v 2.0.0.1.

I can add new Redactor fields but when I try to create or edit Entries, I get the following error:

Invalid Configuration – yii\base\InvalidConfigException
Redactor plugin not found: source

 in /Users/seandelaney/Sites/REMOVED/vendor/craftcms/redactor/src/Field.php at line 107
        $view->registerCssFile("{$baseUrl}/{$plugin}.css");
                    }
                    // Don't do this twice
                    self::$_registeredPlugins[$plugin] = true;
                    return;
                }
            }
        }
 
        throw new InvalidConfigException('Redactor plugin not found: '.$plugin);
    }
 
    /**
     * Returns the registered Redactor plugin paths.
     *
     * @return string[]
     */
    public static function redactorPluginPaths(): array
    {
                
2. in /Users/seandelaney/Sites/REMOVED/vendor/craftcms/redactor/src/Field.php at line 257 – craft\redactor\Field::registerRedactorPlugin('source')
        $redactorLang = $bundle->redactorLang ?? 'en';
 
        // register plugins
        $redactorConfig = $this->_getRedactorConfig();
        if (isset($redactorConfig['plugins'])) {
            foreach ($redactorConfig['plugins'] as $plugin) {
                static::registerRedactorPlugin($plugin);
            }
        }
 
        $id = $view->formatInputId($this->handle);
        $site = ($element ? $element->getSite() : Craft::$app->getSites()->getCurrentSite());
 
                
3. in /Users/seandelaney/Sites/REMOVED/vendor/twig/twig/lib/Twig/Extension/Core.php at line 1605 – craft\redactor\Field::getInputHtml(null, craft\elements\Entry)

I've not made any Redactor config changes.

@seandelaney
Copy link
Author

Updated Standard.json config to resolve.

@brandonkelly
Copy link
Member

Thanks, we fixed this in v2.0.1.

@kmgdevelopment
Copy link

In case anyone else is having this issue I fixed it by updating the permissions on my Redactor config files to 770. I also re-uploaded the config files just to be safe.

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

No branches or pull requests

3 participants