Adding Database Queries to Include Actions Can Create a $_POST Variable - Then The Include Action Doesn't Execute

Wappler Version : 3.7.3
Operating System : Windows 10
Server Model: PHP
Database Type: MySQL
Hosting Type:

If you add a database query to an include action, the action should work okay afterwards.

Actual behavior

This isn’t always the case. Adding the database action can cause a $POST variable to be added to the Include action which then causes the action to no longer execute.

Create an include action.
Add a database query to the which causes a $_POST variable to be created.
Note that the include action is no longer executed when called.

Could you give more details on that? How is not executed? Do you get any errors or so?

No, there are no errors, it just doesn’t execute, like the include step doesn’t exist. The rest of the server action that calls it executes okay.

I didn’t check whether there are any errors on the console…

How do you know it didn’t execute? Maybe the update record just didn’t run because the input $_POST wasn’t set?

It was a database query and it didn’t run… then I just put a simple Set Value with the output set in the Library Action and it didn’t appear in the output…

The I noticed the $_POST in the Library Action which had been created by Wappler when I had added the Database Query step. I deleted it and then when I called the main server action then this include action ran okay.

I hope that makes sense!

It may be related to this bug fixed in 3.8.1.