Hi @haloyudi,
It appears that your site, https://www.adriennesmiles.com, may have one or more redirects in place that are interfering with the WordPress REST API, which Airstory uses to communicate with WordPress.
When visiting https://www.adriennesmiles.com/wp-json/airstory/v1, I’d expect to see a JSON response similar to the following:
{
"namespace": "airstory/v1",
"routes": {
"/airstory/v1": {
"namespace": "airstory/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"namespace": {
"required": false,
"default": "airstory/v1"
},
"context": {
"required": false,
"default": "view"
}
}
}
],
"_links": {
"self": "https://www.adriennesmiles.com/wp-json/airstory/v1"
}
},
"/airstory/v1/webhook": {
"namespace": "airstory/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": []
}
],
"_links": {
"self": "https://www.adriennesmiles.com/wp-json/airstory/v1/webhook"
}
}
},
"_links": {
"up": [
{
"href": "https://www.adriennesmiles.com/wp-json/"
}
]
}
}
Instead, I’m receiving the site’s standard 404 page (side note: it appears that WP_DEBUG is enabled in production, as I’m seeing a PHP error at the top of the page).
I also receive that same 404 page when visiting other endpoints registered within your site:
Here are a few steps you can take to help figure out what might be causing the rewrite issues:
- Visit Settings > Permalink within WordPress and — without making any changes — click “Save settings”.
- This causes WordPress to flush its rewrite rules, and can often resolve issues like this. Think of it as giving WordPress a gentle nudge to say “hey, I think you’re a little confused.”
- This will help narrow down whether or not a particular plugin is interfering with the WP REST API.
- If you’re able to isolate one or more plugins causing issues with the REST API, I’d recommend installing any available updates for them and/or reach out to those plugin developers and let them know.
- If not, then it’s unlikely to be anything within the theme causing issues.
- If switching to a default WordPress theme resolves the issue, then the root cause is likely in your site theme. I’d recommend reaching out to Solo Pine’s support team
- It appears your site is running the Oleander theme, and that theme’s developer appears to have a support portal; if there’s anything in the theme’s code that might be conflicting with the REST API, they’ll want to know so they can fix it.
Please let me know if there’s anything more I can do to assist, and Happy New Year!