-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
TypeError: k[c[o].parent.toString(...)] is undefined #1575
Comments
Difficult to help here. I don't see in what file the error is. |
So I went deep, upgraded to current development. Only some users are affected. The reason is roles matching to folders. If a role has read or write access to level 3 folder, but not to level 1, the tree is not loaded. For example I have folders:
If my role has access to linux or windows, folder tree is loaded. If my role has only access to file_share and not to linux_server, tree is not loaded. If I give access to whole linux servers, everything is ok. |
This is my output of tree.php when it only shows the loading ring and no tree content: |
I think the error is somewhere else as this json array is perfectly formed. Can you share your screen with me for better debug? |
Ok, it seems like a jstree timing issue reported here: http://stackoverflow.com/questions/38520980/jstree-cannot-read-property-children-of-undefined-timing-issue |
Perhaps a direction to investigate. I will try to put some "pauses" in the script to reproduce this long tree load. |
I finally could reproduce. With the last commit, it is corrected. |
Confirmed, fixed. Thank you! |
Steps to reproduce
Expected behaviour
Folders tree should be displayed
Actual behaviour
Tree keeps loading and no folders show up
Server configuration
Operating system:
Debian
Web server:
Apache
Database:
MySQL
PHP version:
5.6
Teampass version:
2.1.26
Updated from an older Teampass or fresh install:
Fresh
Client configuration
Browser:
Firefox, Edge
Operating system:
Windows
Logs
Web server error log
No errors in webserver log, all request are 200 OK.
Firebug log (How to?)
Firefox console shows error:
TypeError: k[c[o].parent.toString(...)] is undefined
Looks like jquery doesn't know how to parse input from database or something strange is returned.
The text was updated successfully, but these errors were encountered: