alix
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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...