picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

Incompatible plugin: Plugins for Pico CMS for Nextcloud must use one of the API versions 1, 2, 3, but this plugin uses API version 0. #565

Closed GeneriumMadness closed 3 years ago

GeneriumMadness commented 3 years ago

In your plugins wiki I found pico-redirect plugin, but when I installed it into my Nextcloud instance I got only this error Error

I have not changed the files of this plugin, i don't know how to change it and make it work. I need only working redirect plugin please.

Lomanic commented 3 years ago

As stated in the wiki this plugin is deprecated, it is not compatible with Pico nowadays. But this plugin is only a few lines long, you can easily migrate it to the 1.0 API.

PhrozenByte commented 3 years ago

Untested, but should work: https://gist.github.com/PhrozenByte/247e65a6b11790fc304de78e105347db

Please give feedback whether it works.

GeneriumMadness commented 3 years ago

Please give feedback whether it works. image

GeneriumMadness commented 3 years ago

i repaired it, but redirection didn't work, just blank white page instead of redirection

PhrozenByte commented 3 years ago

Updated, try again.

GeneriumMadness commented 3 years ago

Works perfectly, you have to put it on the first page of the best pico plugins! Thank you very much.