Hi,
We use Yoursites.net to manage our Joomla and Wordpress websites.
Now the WP-sites give an error and we found there is a problem with Chronoforms 6 for WP.
Geraint Edwards (from Yoursites) found a solution you can read below.
Can you have a look at it and tell us if you can change this?
----
Chronoforms 6 for WP interferes with the REST API by incorrectly stripping slashes from $_POST and $_GET variables when Chronoforms is not going to be executed.
As you realise wp-settings.php adds magic quotes to input $_REQUEST variables
Plugins that use REST API do not expect these global variables to be tampered with in a way that WordPress doesn't do itself.
Please can you change the code of your G2\L\Wordpress\Boot class constructor to check that the request is relevant to Chronoforms and that its not calling the REST Api before you change global variables that have nothing to do with your plugin.
Alternatively move the stripping of slashes later in your code execution so that it doesn't affect other plugins within Wordpress
Many thanks
----
Thanks in advance,
Yorick
We use Yoursites.net to manage our Joomla and Wordpress websites.
Now the WP-sites give an error and we found there is a problem with Chronoforms 6 for WP.
Geraint Edwards (from Yoursites) found a solution you can read below.
Can you have a look at it and tell us if you can change this?
----
Chronoforms 6 for WP interferes with the REST API by incorrectly stripping slashes from $_POST and $_GET variables when Chronoforms is not going to be executed.
As you realise wp-settings.php adds magic quotes to input $_REQUEST variables
// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) wp_magic_quotes();
Plugins that use REST API do not expect these global variables to be tampered with in a way that WordPress doesn't do itself.
Please can you change the code of your G2\L\Wordpress\Boot class constructor to check that the request is relevant to Chronoforms and that its not calling the REST Api before you change global variables that have nothing to do with your plugin.
Alternatively move the stripping of slashes later in your code execution so that it doesn't affect other plugins within Wordpress
Many thanks
----
Thanks in advance,
Yorick
Hello Yorick,
Ok, I have applied this change here but it will not be active before the next official update, you may comment those lines on your install and check the results and let me know!
Best regards
Ok, I have applied this change here but it will not be active before the next official update, you may comment those lines on your install and check the results and let me know!
Best regards
Hi,
When i comment the lines it works fine indeed.
Do you have any idea when the next version will be released?
Thank you!
When i comment the lines it works fine indeed.
Do you have any idea when the next version will be released?
Thank you!
No timeline for this, but as soon as it's ready for release after some other changes!
This topic is locked and no more replies can be posted.