Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Make AJAX work with PHP error / notice output #984

@borekb

Description

@borekb

"GUI not loading" is one of the most common support requests we get, and it's usually caused by some PHP notice interfering with the REST API output (JSON parsing fails on the client).

We should improve the situation and load the UI even if there are some notices or other non-JSON output in the response. There are two levels on where we could improve things:

  1. On the server side. There are tricks with output buffering available.
  2. On the client side. This is probably where the focus should be because in the end, client must deal with the malformed response.

Metadata

Metadata

Assignees

Labels

improvementImprovement of an existing functionality. See "feature" for new features.scope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.scope: frontendThe 'frontend' React app and other UI thingssize: sEffort: half a day, roughly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions