Well that function didn't exist and was crashing Dolibarr every ODT generation... I think the problem must be in other site