-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Keepass Import: Malformed UTF-8 data - Undefined index: Entry in import.queries.php line 591 #3334
Comments
Some additional info: I have tried out old and new Keepass databases created in version 2.49 and 2.52. Even a new database with only one entry leads to the error. The CSV-Import works, although it creates no additional folders. |
Hello I'm curious to get your xml file. NOte: regarding CSV, it is by design, no folders as explain in documentation. |
Hello, thank you for the reply. I have uploaded one of the xml files I used for testing (it contains no actual login data). |
Updating to the latest version has sadly not fixed the issue. |
After changing the owner of the upload folder from root to my apache user I get a new error message. Error message: Raw answer from server: Notice: Undefined index: folders in /var/www/teampass/sources/import.queries.php on line 713 Fatal error: Uncaught TypeError: filter_var_array() expects parameter 1 to be array, null given in /var/www/teampass/sources/import.queries.php:714 Stack trace: #0 /var/www/teampass/sources/import.queries.php(714): filter_var_array() #1 {main} thrown in /var/www/teampass/sources/import.queries.php on line 714 |
Hello, After getting the error to occure, I am unable to properly select the "Folders" category and I get the errors provided at the bottom. Does anyone have the same issue? Next error occurred Raw answer from server: Notice: Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 180 Notice: Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 190 Notice: Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 201 Notice: Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 202 |
Hi. If you've encountered this error on "Folders" category and if it fails on lines 180, 190, 201, 202. You might want to check the table named TeampassDatabase_nested_tree and see if the personal_folder column corresponds to the correct values. After all of the shenanigans descripted above your issue should be fixed. |
Hello, thank you for the reply. While this might fix the issue that occurs after trying to import the xml, the main issue sadly persists. Next error occurred Raw answer from server: Notice: Undefined index: folders in /var/www/teampass/sources/import.queries.php on line 714 Fatal error: Uncaught TypeError: filter_var_array() expects parameter 1 to be array, null given in /var/www/teampass/sources/import.queries.php:715 Stack trace: #0 /var/www/teampass/sources/import.queries.php(715): filter_var_array() #1 {main} thrown in /var/www/teampass/sources/import.queries.php on line 715 Now it creates the folders, but no passwords are being imported. It would be great if anyone could point me to the right direction for fixing this issue. |
Apparently, the error only occures when I import an xml file that is over 2MB or import any file to a personal folder. If I split the file, the import to non-personal folders works. I have already adjusted the max upload size in the php.ini and in TeamPass itself so I am unsure why that is. After upgrading to PHP 8.0.27 I get the following error message, hopefully it's more useful: Next error occurred Raw answer from server: Warning: Undefined array key "folders" in /var/www/teampass/sources/import.queries.php on line 714 Fatal error: Uncaught TypeError: filter_var_array(): Argument #1 ($array) must be of type array, null given in /var/www/teampass/sources/import.queries.php:715 Stack trace: #0 /var/www/teampass/sources/import.queries.php(715): filter_var_array() #1 {main} thrown in /var/www/teampass/sources/import.queries.php on line 715 |
I decided to do a fresh install on debian, it is working now. |
Page on which it happened
https://<anonym_url>/index.php?page=import
Steps to reproduce
Expected behaviour
Import of Keepass entries and folders
Actual behaviour
No import of entries or folders
Server configuration
Operating system: Linux 5.4.17-2136.310.7.1.el8uek.x86_64 #2 SMP Wed Aug 17 15:14:08 PDT 2022 x86_64
Web server: Apache/2.4.37 (Oracle Linux) OpenSSL/1.1.1k
Database: 5.5.5-10.3.35-MariaDB
PHP version: 7.4.19
Teampass version: 3.0.0.19
Teampass configuration file:
Updated from an older Teampass or fresh install: Updated from 3.0.0.17 or .18 I believe
Client configuration
Browser: Chrome, Firefox, Edge
Operating system: Windows 10 & 11
Logs
Next error occurred
Error: Malformed UTF-8 data
Log from the web-browser developer console (CTRL + SHIFT + i)
The text was updated successfully, but these errors were encountered: