Flashcard plugin doesnt fetch words from database
-
i have this issue with the Flashcard Extension plugin on our WordPress website.
The problem arises when attempting to access the API endpoint for retrieving flashcards. Whenever I make a request to the endpoint
https://hermitnowcom.wpcomstaging.com/wp-json/flashcard-extension/v1/get-flashcard, I receive a 404 error response indicating that the requested resource was not found.I have already gone through several troubleshooting steps with the assistance of an AI assistant, but we haven’t been able to pinpoint the exact cause of the issue. Here’s a summary of what we have done so far:
- Checked the plugin code: We reviewed the plugin code to ensure that the
get-flashcardendpoint is registered correctly using theregister_rest_route()function. Everything appears to be in order, but we might have missed something. - Verified the endpoint details: We confirmed that the namespace is set as
flashcard-extension/v1and the route is/get-flashcard, matching the code implementation. The endpoint details seem consistent. - Plugin activation: The Flashcard Extension plugin is active on our WordPress site. We made sure to activate it properly.
- Plugin conflict: We tested for any potential conflicts with other plugins by deactivating them temporarily. However, the issue persisted even with other plugins disabled, suggesting that the problem lies within the Flashcard Extension itself.
- Cache clearing: We cleared browser cache and disabled any WordPress caching plugins to ensure we’re working with the latest code changes. Unfortunately, this didn’t resolve the issue.
- Server configuration: We couldn’t identify any server-related configurations or security measures that might be causing the problem. We suspect the issue lies within the plugin code rather than the server configuration.
Despite these efforts, the API endpoint for retrieving flashcards continues to return a 404 error. As a result, the flashcards are not being displayed on our website.
what can i do to fix it?
If you require any additional information please let me know
- Checked the plugin code: We reviewed the plugin code to ensure that the
The topic ‘Flashcard plugin doesnt fetch words from database’ is closed to new replies.