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

Unknown property redactorLang #74

Closed
BryceBubbles opened this issue Jul 30, 2018 · 2 comments
Closed

Unknown property redactorLang #74

BryceBubbles opened this issue Jul 30, 2018 · 2 comments

Comments

@BryceBubbles
Copy link

Getting unknown property error when trying to edit entries.

yii\base\UnknownPropertyException: Getting unknown property: craft\redactor\assets\redactor\RedactorAsset::redactorLang in ..vendor\yiisoft\yii2\base\BaseObject.php:141

Relevant code seems to be on line 246 of: vendor\craftcms\redactor\src\Field.php

Craft: 3.0.17.1
Redactor plugin: 2.1.4

Not sure if this is a bug or something wrong with my composer setup.
I don't have time to test on a fresh install or narrow things down more atm.

@BryceBubbles
Copy link
Author

I believe line 246 of Field.php:
$redactorLang = $bundle->redactorLang ?? 'en';
needs to be:
$redactorLang = $bundle::$redactorLanguage ?? 'en';
because of 7a3bdea

No time to add a pull request sorry.

@brandonkelly
Copy link
Member

@BryceBubbles thanks for reporting! We just released v2.1.5 with a fix.

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

2 participants