Hi,
I just performed the migration from 1.4.13 to 15.3 and everything appeared to run smoothly. Unfortunately, when I tried to access the Admin Dashboard to check my data I got an error 500.
Here the logs :
TypeScript
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
[Error] Timestamp: 2024-03-22T12:54:07+00:00
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
[Error] Type: TypeError
[Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 292
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
[Error] Timestamp: 2024-03-22T12:54:07+00:00
[Error] Method: GET
[Error] URL: /v1/avatars/qr
[Error] Type: TypeError
[Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 292
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
[Error] Timestamp: 2024-03-22T12:55:56+00:00
[Error] Method: POST
[Error] URL: /v1/account/sessions/email
[Error] Type: TypeError
[Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 292
Thanks in advance for your time
TL;DR
Developers encountered an auth error after upgrading from 1.4.13 to 1.5.3, seeing deprecated DateTime errors and TypeError messages in the logs related to Auth and count() function. The issue stems from passing null when a string is expected. To fix this, developers should update the code to provide valid parameters in these instances to resolve the errors and regain access to the Admin Dashboard.Recommended threads
- `type 'Null' is not a subtype of type 'b...
When creating a new file using Appwrite Flutter SDK, the file is successfully created on the server, but the client throws the following exception: ``` type ...
- Console: Query on attribute has greater ...
I noticed an issue when one of my tables reached over ~800 rows. That table is relational to my users table Within the console I am able to view the table with ...
- Appwrite 1.8.1 - Traefik Returns 404 Due...
Problem: Fresh Appwrite 1.8.1 installation returns 404 on all requests. Traefik can't communicate with Docker daemon. Error: Error response from daemon: client ...