ivinteractive / kirbycms-redirects

GNU General Public License v3.0
33 stars 3 forks source link

Problem with installing the plugin #10

Closed introvert closed 7 years ago

introvert commented 7 years ago

Hey,

When I install the plugin in the site/plugins/redirecty I get the following error when I want to access the admin panel:

Whoops \ Exception \ ErrorException (E_ERROR) Method Kirby\Panel\View::__toString() must not throw an exception, caught Error: Call to a member function redirects() on boolean

Any idea how should I fix this?

Thanks

ivi-admin commented 7 years ago

Hey @introvert, that should be fixed now with this commit. The issue was that in the widget (and also in the redirecty() function), it wasn't doing a check for the redirects page's existence before trying to pull the redirects from it. You can update to the latest version, or just create the redirects content page directory/file via the CLI.