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
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...