# Admin portal Members page stuck loading \[400 error bad request\]

**URL:** <https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151>\
**Category:** Self-hosting\
**Created:** [March 17, 2025, 3:12am UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151 "2025-03-17T03:12:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tud0r](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tud0r/32/35357_2.png) [@tud0r](https://forum.ghost.org/u/tud0r)\
**Post date:** [March 17, 2025, 3:12am UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151/1 "2025-03-17T03:12:01Z")

</div>

I recently updated from v4 to v5 and am experiencing the members page in the admin portal does not load and stays stuck on the loading screen with the animation .

I see 400 ERRORS in the console

```auto
GET .../ghost/api/admin/members/?order=id&limit=1&page=1&include=newsletters%2Clabels 
400 (Bad Request)

```

and

```auto
GET .../ghost/api/admin/members/?order=id&limit=1&page=1&include=newsletters%2Clabels 
400 (Bad Request)

```

I also used Postman to test the API still no luck

body:

```auto
{"errors":[{"message":"Request not understood error, cannot list members.","context":"Could not understand
request.","type":"BadRequestError","details":null,"property":null,"help":null,"code":"ER_BAD_FIELD_ERROR","id":"0d786f70-02dd-11f0-9a71-27755cd7b7fd","ghostErrorCode":null}]}

```

test results:

```auto
FAILED : Response status code is 200 | AssertionError: expected 400 to equal 200
FAILED : Response time is less than 200ms | AssertionError: expected 950 to be below 200
FAILED : Response body has a valid schema and format | AssertionError: expected '{"errors":[{"message":"Request not un…' to be empty...
FAILED : Content-Type header is 'text/html' | AssertionError: expected 'application/json; charset=utf-8' to equal 'text/html'

```

Im I missing something here? Typically Id ignore this however ghost does not provide any simple feature to password protect a page so my only option is to use the members feature which is very overkill for my needs.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 17, 2025, 5:21am UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151/2 "2025-03-17T05:21:43Z")

</div>

Can you share your setup? From the `ER_BAD_FIELD_ERROR` in the code, my guess is you’re using MariaDB or MySQL 5 and running into a database incompatibility

---

<div class="post-metadata">

**Author:** ![tud0r](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tud0r/32/35357_2.png) [@tud0r](https://forum.ghost.org/u/tud0r)\
**Post date:** [March 17, 2025, 3:06pm UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151/3 "2025-03-17T15:06:30Z")

</div>

Im running

```auto
mysql Ver 8.0.41-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))

```

on a digitalocean droplet

```auto
Server version: 8.0.41-0ubuntu0.22.04.1 (Ubuntu)

```

I just migrated from Ghost v4 to v5 recently and I think I also had to update mysql.  
I cannot find an example of the members database table for ghost v5 anywhere but referencing this to get an idea: [Ghost/core/server/data/schema/schema.js at v5.0.0 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/blob/v5.0.0/core/server/data/schema/schema.js)

Im not seeing any differences from my current mysql members database table which looks like this :

```auto
Table: members
Create Table: CREATE TABLE `members` (
  `id` varchar(24) COLLATE utf8mb4_general_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `created_by` varchar(24) COLLATE utf8mb4_general_ci NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(24) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `name` varchar(191) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `note` varchar(2000) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `uuid` varchar(36) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `geolocation` varchar(2000) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email_open_rate` int unsigned DEFAULT NULL,
  `email_count` int unsigned NOT NULL DEFAULT '0',
  `email_opened_count` int unsigned NOT NULL DEFAULT '0',
  `status` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'free',
  `last_seen_at` datetime DEFAULT NULL,
  `email_disabled` tinyint(1) NOT NULL DEFAULT '0',
  `comment_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `free_member_signup_notification` tinyint(1) NOT NULL DEFAULT '0',
  `paid_subscription_started_notification` tinyint(1) NOT NULL DEFAULT '0',
  `paid_subscription_canceled_notification` tinyint(1) NOT NULL DEFAULT '0',
  `mention_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `recommendation_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `milestone_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `donation_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `enable_comment_notifications` tinyint(1) NOT NULL DEFAULT '0',
  `expertise` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `last_commented_at` datetime DEFAULT NULL,
  `transient_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `locale` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `members_email_unique` (`email`),
  UNIQUE KEY `members_uuid_unique` (`uuid`),
  KEY `members_email_open_rate_index` (`email_open_rate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci

```

there may be a few more keys added while I was trouble shooting.

I can see the GET request from the admin portal passes parameters for “news\_letters” and “labels” but omitting those from the request and testing in Postman still shows 400 Error.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 18, 2025, 2:40pm UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151/4 "2025-03-18T14:40:43Z")

</div>

Can you check if there’s an ANSI\_QUOTES issue?

> **[Resolving a misconfigured MySQL database with Ghost - Ghost Developers](https://ghost.org/docs/faq/troubleshooting-mysql-database/#error-er_bad_field_error)**
>
> Find out how to resolve issues with a misconfigured MySQL database for developers maintaining a self-hosted instance of Ghost.

Also, can you share the server logs which should include the query that failed? You can do this with `ghost log -e`

---

<div class="post-metadata">

**Author:** ![tud0r](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tud0r/32/35357_2.png) [@tud0r](https://forum.ghost.org/u/tud0r)\
**Post date:** [March 19, 2025, 2:52pm UTC](https://forum.ghost.org/t/admin-portal-members-page-stuck-loading-400-error-bad-request/56151/5 "2025-03-19T14:52:04Z")

</div>

This was super helpful as Im not a database guy.

Running `ghost log -e` outputed the exact missing table column and the table it is missing from in the logs:

```auto
CODE: ER_BAD_FIELD_ERROR
MESSAGE: select * from `members_products` where `expiry_at` < '2025-03-19T00:00:00.000Z' - Unknown column 'expiry_at' in 'where clause'

```

After adding the `expiry_at` column into the `members_products` table everything seems to be working.
