Error 404 while creating a new test
-
Hi,
I am using Bedrock (roots.io) and I have some problem creating a new test.
On elementor editor when I create a new test for an element and I click on “Save new test”, I get the error “Error saving new test”.
In the console I get a 404 on
POST https://mywebsite.test/wp/wp-json/splitTestForElementor/v1/tests/I took a look at the code. In file Admin/assets/js/editor.min.js at lines 216 and 334 there are these calls:
jQuery.post("../wp-json/splitTestForElementor/v1/tests/", test, function(result) {...
jQuery.post("../wp-json/splitTestForElementor/v1/variations/", newTestVariation, function(result) {...
Replacing them with
jQuery.post("/wp-json/splitTestForElementor/v1/tests/", test, function(result) {...
jQuery.post("/wp-json/splitTestForElementor/v1/variations/", newTestVariation, function(result) {...
all it works fine. I only tested on bedrock enviroment.
Do you think it is possible to correct the code?
Thank you
Valerio
- You must be logged in to reply to this topic.