Hi.
I have create one application composed by many tables. The main one has many relathionships with the others defined in valuelists.ini as __sql__ = "SELECT fieldid, field FROM table ORDER BY field".
It has worked perfectly until recently. When listing or editing the main table, an error message shows:
Warning: Invalid argument supplied for foreach() in /home/www/dataface/Dataface/Table.php on line 835
I have revised Table.php, but no clue. The tables seem to be OK, so I don't know what happened. Everything else works perfectly, except that when I try to save a new or edited record, it says:
Warning: Invalid argument supplied for foreach() in /home/www/dataface/Dataface/Table.php on line 835
Warning: Cannot modify header information - headers already sent by (output started at /home/www/dataface/Dataface/Table.php:835) in /home/www/dataface/actions/edit.php on line 167
And I have to go back with the browser. However, I see that the records are saved correctly.
Just in case it is of help, the position of the message error in the page is:
List view: between the menus and the results list.
Details view: within the cell of one of the listed fields. Concretely, this field is a widget:type=select, related to other table, but that other table seems to be OK.
Other views (search, add or edit record, etc.): top of the page, before the header.
Greetings