RiRi
August 5, 2023, 12:24pm
1
Hi,
I’m having a problem with my Strapi admin dashboard.
This issue happened all of a sudden, after adding a new component I’m unable to configure the view of ANY component, I get a 405 error.
Console:
[2023-08-05 13:31:28.202] http: GET /content-manager/components/wallets/configuration (131 ms) 200
[2023-08-05 13:31:33.151] http: PUT /components/wallets/configuration (2 ms) 405
On Strapi I get the error: “Warning: An error occurred”
Everything else is working fine except when I try to configure the view.
I’ve tried:
npm run build
It completes successfully, but it doesn’t fix the issue.
Thanks
Just to confirm that I also got error 405 while editing the view of a component. PUT method at http://localhost:1337/components/component.name/configuration
returns 405 Method Not Allowed
I’m also getting this error configuring the view of a component. PUT method not allowed on URL http://localhost:1337/admin/content-manager/components/banners.expertise-banner/configurations/edit
[2023-08-09 11:52:23.799] http: GET /content-manager/components/banners.expertise-banner/configuration (7 ms) 200
[2023-08-09 11:52:33.926] http: PUT /components/banners.expertise-banner/configuration (0 ms) 405
thanos
August 10, 2023, 8:51am
5
For anyone else having the same issue, this was fixed on v4.12.4 :
strapi:main
← MonsterDeveloper:fix-components-view-configuration
opened 12:37PM - 06 Aug 23 UTC
<!--
Hello 👋 Thank you for submitting a pull request.
To help us merge your … PR, make sure to follow the instructions below:
- Create or update the tests
- Create or update the documentation at https://github.com/strapi/documentation
- Refer to the issue you are closing in the PR description: Fix #issue
- Specify if the PR is ready to be merged or work in progress (by opening a draft PR)
Please ensure you read the Contributing Guide: https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md
-->
### What does it do?
Allows to save a view configuration for a component.
### Why is it needed?
Fixes a bug in the content-manager where a PUT request to save component's view configuration is sent to a wrong endpoint, resulting in a 405 HTTP error.
### How to test it?
1. In a Content Type Builder, create a component
1. Click on "Configure the view"
1. Change a title of any text field
1. Click "Save"
### Related issue(s)/PR(s)
Fixes #17575 , #17577
1 Like