Page 1 of 1

1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 12:00 pm
by NotSoWittyName
I'm getting the above error message trying to do a few things in ZM. The latest time I just hit this was when I was trying to add a server. I completed all feels, pressed "add", and the new server was not added. Instead, I received these error messages:

Code: Select all

11/15/22, 12:55:02 PM GMT+1	web_php		556557	FAT	View 'server' does not exist	/usr/share/zoneminder/www/index.php	281
11/15/22, 12:55:02 PM GMT+1	web_php		556557	ERR	actions can no longer be performed without POST.	/usr/share/zoneminder/www/index.php	200

Re: 1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 1:42 pm
by Magic919
I'm guessing it's in here

Code: Select all

/usr/share/zoneminder/www/skins/classic/views/options.php:          <form name="optionsForm" method="get" action="?">
Change the "get" to "post".

Re: 1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 4:08 pm
by FSAB
I'm also getting that option when trying to modify Zones in 1.36.31

Re: 1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 4:21 pm
by Magic919
Same fix will apply across a few of the PHP files.

Re: 1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 5:49 pm
by NotSoWittyName
Works for me, thanks.

Should this be submitted as an issue to GitHub?

Re: 1.36.31: Cannot add server: "actions can no longer be performed without POST"

Posted: Tue Nov 15, 2022 5:51 pm
by Magic919
Isaac was the one that originally mentioned it, so I wouldn’t see any value in it.