Questions tagged [strapi]

Strapi is an open-source Node.js headless CMS built on top of Koa. It's frontend-agnostic and claims to not be an MVC framework. It auto-generate RESTful endpoints and has support for GraphQL and WebSockets.

2734 questions
0
votes
0 answers

RBAC not enabled in Strapi v4.11.1

I upgraded my Strapi installation from v4.6.0 to v.4.11.1 and can still see the "You have reached the limit" popup when trying to add a role in Strapi admin. Is there a DB migration script that is required to enable RBAC?
Omtara
  • 2,911
  • 2
  • 19
  • 31
0
votes
0 answers

Strapi V4 : how can I restrict user update (PUT /users/:id) to only the user itself, and admins?

I've enabled the update permissions for the Authentificated role of Users-permissions. I noticed that now, any Authentificated user can update any other user using the PUT /users/:id endpoint. That's a weird default behaviour ! I guess I have to add…
gordie
  • 1,637
  • 3
  • 21
  • 41
0
votes
0 answers

strapi(4) not able to display image on frontend UI

I am able to fetch data from strapi but i am not able to display it on frontend UI image url is showing in console but i am not able to display it on UI. [[console log data]](https://i.stack.imgur.com/n85n5.png) is there any fault in this code If…
0
votes
0 answers

Strapi deployment with Oracle DB on K8s fails with OCIEnvCreate error. Verified DB and env variables. How to troubleshoot and resolve?

Strapi deployment with Oracle 19c on Kubernetes encounters persistent error. Verified DB connectivity, environment variables, and tried without volume. Need guidance to troubleshoot and resolve the issue.as i am not much familiar with k8s
0
votes
0 answers

Issue populating fields in gatsby-source-strapi

I am having an issue when trying to populate the fields in the gatsby graphql when using the gatsby-source-strapi plugin. If I check the graph on strapi I can see all the fields fine but when populating these in gatsby I am only getting the ids no…
Richard
  • 13
  • 3
0
votes
0 answers

React connection with Strapi API call doesn't work correctly with React Query

In the following code I use the plugin react-query to make an API call to strapi. When I open the application it doensn't work at first and I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'data') When I…
JosineD58
  • 27
  • 5
0
votes
1 answer

Strapi V4: how to enrich ctx.query.populate?

Let's say I call my endpoint with those parameters : GET /api/articles?populate[0]=seoData&populate1=seoData.sharedImage&populate[2]=seoData.sharedImage.media I want my middleware to alter what's populated. There is an example in the official…
gordie
  • 1,637
  • 3
  • 21
  • 41
0
votes
1 answer

How to prepopulate in Strapi Service - V4

I'm looking to prepopulate my endpoints with related data and perform transformation but i'm unsure i've approach this most effectively. I feel like somehow the additional query(s) within the find(...args) being looped is adding to the request and…
devools
  • 73
  • 6
0
votes
1 answer

How do I configure Strapi and NGINX routing for a subdomain?

I am looking for assistance with configuring subdomains and routing for a server hosting my Strapi app. The server has two subdomains, admin.website.com and api.website.com. Currently, the app is running on port 1338 at http://localhost:1338. I need…
Alexiuscrow
  • 776
  • 2
  • 15
  • 34
0
votes
1 answer

How do I implement pagination using Strapi as backend and React.js as Frontend?

So I am trying to GET customers from this endpoint in Strapi, after implementation, when I click on "Next" page, page number increases by 1 as expected, moves to next page but data array is empty and hence the inability to render data. What am I…
0
votes
0 answers

Edit strapi relations in place

Does the Strapi admin interface support editing relations in-place, i.e. creating content and its related content at the same time? Or is there a plugin supporting this? I think Contentful has support for this.
nwpullman
  • 25
  • 4
0
votes
0 answers

strapi dockerize npm error on docker-compose up:'@strapi/strapi' of undefined

Trying to follow this article to setup a local running strapi v4 that I can later deploy in production. I am how ever running into some errors. First time around I got: npm ERR! cipm can only install packages with an existing package-lock.json or…
0
votes
0 answers

Strapi Menu Plugin on click of a relation throws 405

`I am trying to add a Relation in the Menu, but the relation items arent loading. This request keeps hitting : POST /admin/plugins/menus/edit/menus/relations/page_otm?limit=20&start=0 (0 ms) 405 instead of : POST…
0
votes
0 answers

How to access the intermediate table automatically created by Strapi

Version Strapi:v4.10.5 npm:v6.14.8 Content Question about Strapi. I created a many-to-many relationship using the following two collections: employee_career_histories employee_statuses When I created this relationship, an intermediate table called…
kazuki
  • 1
  • 1
0
votes
0 answers

Image Upload Failed with Strapi and Cloudinary

I am having troubles deploying a Strapi App on Railways. I installed Cloudinary to handle my images but some picture can’t be uploaded and when the failure happens the whole server break and I have to restart it. The same image can be uploaded on…
VincentAb
  • 31
  • 8