-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Error:: Please check the form below for errors. Trying to setup snipe-it as subdirectory. #13615
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Hm, I'm not able to reproduce this locally. What happens if you check, save, then uncheck those options on the Security page in the admin? |
This happens when I try to save any Security setting, doesn't matter if the options are checked or unchecked. |
I just did a fresh install in the subdirectory. It works well if using MySQL but it has the mentioned problem when using Postgres. We wanted to use an existing server that we had but it seems like a snipe-it query is not working as intended. Tested in PostgreSQL 10.7 and PostgreSQL 12. Tried with db being hosted locally and a remote db. I'll provide more details if needed. I just noticed, it says in the documentation that it doesn't support PostgreSQL, sorry for wasting your time. Feel free to delete the issue. |
Thanks for the follow up. We don’t strictly-speaking support Postgres, but it should work. I’ll take a look and see if we’re not setting a default value for those two fields |
fwiw, i've just setupped a 6.4.2 with php 8.1 on OpenBSD, using psql 16, and regular usage mostly seems to work (eg creating locations/categories/assets), but saving settings fails the same way as reported in this issue. i've added some debug printfs to display errors, and the
in the database, those two fields in the settings table are what isnt really helpful is that the page only displays **Error: Please check the form below for errors ** but doesnt actually display the error message :) ok, i'll turn on the debug mode to try to understand laravel console .. @snipe, should this issue be reopened ? (even if psql is not supported, im aware that it's a best effort target)
|
not knowing much about laravel/php frameworks but digging more, i'm also seeing a 500 error code if i try to save on the security settings tab with it feels strange because from my understanding of https://github.com/snipe/snipe-it/blob/master/app/Models/Setting.php#L69 those fields are 'nullable'. When i try to print the value of ok, in the database, they're not..
fiddling with the database table, i'm able to save security settings once i've removed the
but doing the same for so i checked for the value of with those 3 fields having their
|
suggested in snipe#7600 (comment) improves interoperability with postgresql where the database fields are of type boolean see snipe#7600 & snipe#13615
suggested in snipe#7600 (comment) improves interoperability with postgresql where the database fields are of type boolean see snipe#7600 & snipe#13615
Debug mode
Describe the bug
Can't change admin settings. I can do all other operations but change admin settings. When pressing the save button I get the Error:: Please check the form below for errors. I want to be able to run other projects in other subdirectories while having snipe-it installed.
Reproduction steps
Expected behavior
To save any admin setting.
Screenshots
No response
Snipe-IT Version
v6.2.0-pre build 11531 (g20da6cccb)
Operating System
Ubuntu 20.04
Web Server
Apache2
PHP Version
7.4.3-4ubuntu2.19
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
Is this a fresh install or an upgrade?
Fresh Install.
What OS and web server you're running Snipe-IT on
Ubuntu 20.04 using Apache2.
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
Manual installation.
Include what you've done so far in the installation, and if you got any error messages along the way.
No errors.
Indicate whether or not you've manually edited any data directly in the database
Didn't edit db.
Add any other context about the problem here.
I'm using postgresql. Installed everything as root user.
The text was updated successfully, but these errors were encountered: