Encountered an error yesterday while trying to add a new class: Warning: Invalid argument supplied for foreach() in /var/www/html/itop/setup/compiler.class.inc.php on line 342
These issues cannot be reasonably diagnosed by a user and make the application unusable.
The error (Warning is mislabeled) hangs at the "Compiling the data model" setup step.
Encountered an error yesterday while trying to add a new class: Warning: Invalid argument supplied for foreach() in /var/www/html/itop/setup/compiler.class.inc.php on line 342
These issues cannot be reasonably diagnosed by a user and make the application unusable.
The error (Warning is mislabeled) hangs at the "Compiling the data model" setup step.
The area of php code at line 342 is:
After the line
I added the following:
Of course, it should be investigated why $aItems comes with a non array value, but after the patch, it seems to compile and work fine.