TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Uncaught TypeError: json_decode(): must be of type string, bool given in main.functions.php:1552

Open oscardsi opened this issue 3 years ago • 0 comments

Steps to reproduce

  1. Install Teampass according to instrunructions
  2. Setup LDAP
  3. Click Users > LDAP synchronication
  4. Try logging in again

Expected behaviour

This process worked just yesterday without issue.

Actual behaviour

the following error occurs: User-Caution-Teampass

Login-Teampass

### Server configuration
**Operating system**
Ubuntu 20.04

**Web server:**
Apache2

**Database:**
Mysql

**PHP version:**
8.1

**Teampass version:** 
3.0.0.18

**Teampass configuration file:**

**Updated from an older Teampass or fresh install:**
PLEASE attach to this issue the file `/includes/config/tp.config.php`.

### Client configuration
**Browser:**

**Operating system:**

### Logs
#### Web server error log

Insert your webserver log here


#### Log from the web-browser developer console (CTRL + SHIFT + i)

Insert the log here and especially the answer of the query that failed.

Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, bool given in /var/www/html/TeamPass/sources/main.functions.php:1552

PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/teampass/sources/identify.php:306\nStack trace:\n#0 /var/www/html/TeamPass/sources/identify.php(186): identifyUser()\n#1 {main}\n thrown in /var/www/html/TeamPass/sources/identify.php on line 306

oscardsi avatar Aug 03 '22 16:08 oscardsi