Back

Auth Error after migration from 1.4.13 to 1.5.3

  • 0
  • Self Hosted
alix
22 Mar, 2024, 12:58

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more