Am receiving the following error:
“Invalid argument supplied for foreach() | Script: C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\devel\class\generator
mFontePHPForm.class.php linha: 12764”
This has appeared since upgrading to version 8.00.0030.
Prior to upgrading to this version:
I had been trying to add calls to sc_commit_trans in form events that were making calls sc_redir.
In the main project we have multiple connections. I would get errors like:
“You are using transaction macros with a connection that is not transactional”
When I could not get that to work I tried a simpler project with just a single connection. That did work.
But now neither the main project nor the simpler project work. I receive the compiler error listed above.
The code for the single connection project in onAfterDelete is just:
sc_commit_trans(‘conn_mysql_2’);
sc_redir(‘grid_t1’);
Any help with this issue would be greatly appreciated.