diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index af02e7d2e..6bcd17c94 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -1826,7 +1826,7 @@ EOF; // Search field in parent class $oField = $this->GetFieldInParentClasses($oClass, $sStateAttCode); if ($oField == null) { - throw new DOMFormatException("Non existing attribute '$sStateAttCode'", null, null, $oStateAttribute); + throw new DOMFormatException("Non existing attribute '$sStateAttCode'", 0, null, $oStateAttribute); } } $oCodeNodes = $this->oFactory->GetNodes('values/value/code', $oField); diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index be361e4b5..e12064982 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -2040,7 +2040,7 @@ class MFElement extends Combodo\iTop\DesignElement { // Houston! $sXPath = DesignDocument::GetItopNodePath($this); - throw new DOMFormatException("id '$key' already used in $sXPath", null, null, $oItem); + throw new DOMFormatException("id '$key' already used in $sXPath", 0, null, $oItem); } $res[$key] = $oItem->GetNodeAsArrayOfItems(); }