YunoHost-Apps / teampass_ynh

Teampass package for YunoHost
https://teampass.net/
GNU General Public License v3.0
2 stars 1 forks source link

Unable to Edit Folders / Create user #20

Open rmueck opened 1 year ago

rmueck commented 1 year ago

Describe the bug

Unable to edit items / create items. Always getting errors SyntaxError: Unexpected end of JSON input

Context

Steps to reproduce

Creating folder or edit folder. Same error for new user.

Expected behavior

Items are created/updated

Logs

No relevant yunohost logs.

nginx logs:

2022/11/20 11:56:42 [error] 1364899#1364899: *135 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 180PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 190PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 201PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 202" while reading response header from upstream, client: 77.10.224.230, server: mydomain.tld, request: "POST /teampass/sources/folders.queries.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-teampass.sock:", host: "mydomain.tld", referrer: "https://mydomain.tld/teampass/index.php?page=folders"
2022/11/20 11:56:53 [error] 1364899#1364899: *135 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 180PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 190PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 201PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/teampass/sources/folders.queries.php on line 202" while reading response header from upstream, client: 77.10.224.230, server: mydomain.tld, request: "POST /teampass/sources/folders.queries.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-teampass.sock:", host: "mydomain.tld", referrer: "https://mydomain.tld/teampass/index.php?page=folders"

Screenshot image

Schdefoon commented 1 year ago

Same problem for me with Teampass on a Raspberry Pi. I wanted to start with Teampass in October and could not manage to create the first user. The only way I could create a user was to manipulate the database. After this I got the same error when trying to create a folder. In the meantime I setup a new YunoHost 11 instance and a new Teampass installation - still the same problem: Can't use Teampass in any way. Always the same error.