known
known copied to clipboard
Not able to edit/delete post entry
While trying to do this:
Editing (or deleting) a previously created post (on the post page itself and on the main page) with the edit button below the post item.
I encountered this error:
Not an error, but the entry could not be found and I got redirected to the goneContent()-Page: "Sorry, this content isn't here anymore."
This error only seems to occur with Entries/Posts (/entry/edit/5dcf46fd-6752-4a29-b668-70747533c298/) and not with the other types like Status (/status/edit/cf62a311-5e82-45a0-9086-b3aa09997e2e).
Versions: php: 8.0.2 known: 8844e8ab0a0ddcb0c433b9eca92011914818636d (2021-02-10)
Possible Fix:
I modify the regex for the route »\IdnoPlugins\Text\Pages\Edit« and »\IdnoPlugins\Text\Pages\Delete« in the file IdnoPlugins/Text/Main.php by adding the character "-" to be able to match UUIDs »/entry/edit/([A-Za-z0-9-]+)/?«.
After the change the modifying and removing of posts was possible again.
Related Commit in https://github.com/idno/text/commit/59f7d8c278f702fc08cde11254d489b7165f4dd2
Thanks, that sounds like the right fix.
I think that adding the regex as a global would help centralize this logic.
There's already an ID
regex in core I think
There's already an
ID
regex in core I think
There is one in Idno\Core\PageHandler if you mean that regex.