-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem making checkbox selections then pressing 'selected' in navbar #16
Comments
Trying to solve this issue I am additionally encountering another fatal error when attempting to create a new user:
I'll continue to try and work out if I have configured php or the database incorrectly... |
Hi BRFud, the 2nd problem looks like I have fixed it already, but not yet published the update (always try to collect a bit). The 1st I have just fixed, please find the files I meanwhile updated attached. I will push this also to the git during the day and create a fresh release, hoping that the number of problems resulting from transition to PHP8 will approach 0 soon. Thanks for your error reports. If you like, email any Apache error.log files to [email protected] so that I can fix anything I find within. Best regards, Felix |
Thank you for the reply, and for all your efforts (adapting code to maintain php compatability is a frustrating task, from my experience). I am no longer getting the fatal error, but neither are the selections appearing when I click 'selected' in the navbar. Here are the warnings from apache log:
Perhaps it is best I wait for you to push the fresh release? |
Hi BRFud, thanks for the list of warnings, I will fix them (but they are not the cause of the remaining problem). Have you tried to use the "Select" checkboxes with a normal user (i.e. not root)? root is special, it does not have and entry in 'person' table - and that is also where we store settings and info on users' selection of datasets... With a regular account, I just tried it successfully (and yes, we should explain this a bit somewhere...). |
Thanks for your reply. Unfortunately I seem unable to create a new user. On creating a brand new database I immediately go to settings > users, and click the + to add a new user. Nothing happens in the browser when I click the green tick after entering a username/password and first/last name and leave all else defaults. The apache log gives:
|
Creating (and deleting) users is fixed. The SQL command was a safeguard needed in certain MySQL versions. From PHP8 onwards, it throws an exception (that we can just ignore). Fix is within |
Thank you! It's working well enough now to explore more of the software. Regarding explaining the special nature of the root user, perhaps whenever anyone is logged in as root, the "you are logged in as root" in the navbar could be higghlighted as a reminder not to start doing things they should be doing with the normal user. I have bumped into another issue (I hope you don't mind being notified here): when I select Settings>Global>Internet data retrieval, I am unable to deactivate or re-order the individual data sources. |
Thanks for reporting, I pushed the fixed files, or you can just use the one in the zip |
Hello. I am evaluating this software for use in a small business and encountering an error.
I have entered some items into the local database and selected their checkbox in search, but I get the following error in the apache error log when then pressing "selected" in the navbar:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/lib_db_filter.php:197 Stack trace: #0 /var/www/html/lib_db_query.php(1026): getFilterObject() #1 /var/www/html/list.php(53): handleQueryRequest() #2 {main} thrown in /var/www/html/lib_db_filter.php on line 197
Any idea what the problem could be?
System is running on Ubuntu 22.04, php 8.1, apache2. Installation was from open_enventory_2022-11-29_php8.zip on Sourceforge. Thank you!
The text was updated successfully, but these errors were encountered: