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

Installing Redactor on Craft 3.1.2.1 errors #3677

Closed
CreateSean opened this issue Jan 19, 2019 · 4 comments
Closed

Installing Redactor on Craft 3.1.2.1 errors #3677

CreateSean opened this issue Jan 19, 2019 · 4 comments
Assignees

Comments

@CreateSean
Copy link

I updated a C2 site to C3. Added redactor via composer command and then installed via the plugin page and get this error.

Unknown Property – yii\base\UnknownPropertyException
Setting unknown property: craft\redactor\Field::availableAssetSources
1. in D:\sites\caffeine-c3\vendor\yiisoft\yii2\base\Component.php at line 209
200201202203204205206207208209210211212213214215216217218                                    $behavior->$name = $value;
                return;
            }
        }
 
        if (method_exists($this, 'get' . $name)) {
            throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
        }
 
        throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
    }
 
    /**
     * Checks if a property is set, i.e. defined and not null.
     *
     * This method will check in the following order and act accordingly:
     *
     *  - a property defined by a setter: return whether the property is set
     *  - a property of a behavior: return whether the property is set
                

The entire CP is unusable until I remove redactor from composer.json and run composer update

@CreateSean
Copy link
Author

I fixed my issue by going through the tedious process of:

  • removing redactor
  • finding all redactor fields and changing to plain text (there were a lot)
  • installing redactor
  • finding all the changed fields and changing them back to redactor.

now everything works.

Not great, but I can move forward.

@mortscode
Copy link

mortscode commented Jan 21, 2019

Also experiencing this exact problem. I'm updating a 5-year old site from Craft 2 to 3, and the idea of going through all of the Reactor fields, changing them to plain text, updating, and then changing them back would be quite a heavy lift.

Also, for mine, in order to get any usability back, I had to go into the DB and manually delete the redactor row from the plugins table.

Any hope for a solution for this?

My local setup is running on a Docker image. Craft 3.1.2.2 with a mysql DB.

@andris-sevcenko
Copy link
Contributor

Looking into this now.

@andris-sevcenko
Copy link
Contributor

Ah shoot, found it. Fixing it now.

@andris-sevcenko andris-sevcenko transferred this issue from craftcms/redactor Jan 21, 2019
@andris-sevcenko andris-sevcenko self-assigned this Jan 21, 2019
andris-sevcenko added a commit that referenced this issue Jan 21, 2019
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