Due to the enormous number of people using Directus, our Core Team can only provide support to paying Directus Cloud customers or clients who purchase support hours.
This is an issue with the database itself. Please confirm that your database, tables, and fields are all set to use
utf8-mb4 charset and encoding.
This is shown when the API you're trying to connect to doesn't have any extensions installed. This often occurs when you've installed the API from source, but forgot to build the extensions. You can fix this by going in the
extensions folder in your
api directory and running
npm install && npm run build
The application is a single-page webapp, meaning that all routing is done client side. By default, the app tries using pretty URLs for it's pages. If your webserver doesn't route all requests to
/index.html correctly, there's no page to return and you'll end up with a 404. To fix this, you can either update your servers routing setup or switch the app's
MAMP has a known issue where it strips out the
Authorization header which Directus uses to provide the API with the user token. To fix this, change MAMP's PHP setting from CGI to Module mode.
Directus allows you to request specific field data at different depths. You can use the
fields parameter to fetch deeper relationships fields (eg:
?fields=*.*.* for three levels deep) or even specific fields to keep things as performant as possible (eg:
?fields=image.title for a relational image's title).
If for some reason the buildchain is acting up, or you're not seeing the changes you've made reflected in the browser, please try the following things:
If you're running the application in development mode (by running
npm run dev), stop the buildchain by pressing Ctrl+C and re-start it by running
npm run dev again.
The buildchain caches the changes in the
node_modules/.cache folder. Stop the buildchain by pressing Ctrl+C, delete that folder and restart the buildchain.
This will both delete the cache and makes sure you're using the latest versions of the dependencies that Directus uses.
If all else fails, a full reinstall of everything has to work. If it doesn't work after a reinstall, something else in the code is broken.