#!/usr/bin/env php ***** create_invoice.php (1.7) ***** Dolibarr a détecté une erreur technique.
You use an experimental or develop level of features, so please do NOT report any bugs or vulnerability, except if problem is confirmed after moving option MAIN_FEATURES_LEVEL back to 0.
Ces informations peuvent être utiles à des fins de diagnostic (vous pouvez définir l'option $dolibarr_main_prod sur '1' pour masquer les informations sensibles):
Date: 20260606043138
Dolibarr: 19.0.2 - https://www.dolibarr.org
Niveau de fonctionnalités: 2
PHP: 8.1.33
Server: Apache
OS: Linux webd001.cluster131.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Url sollicitée: /dolibarr/dev/examples/code/create_invoice.php
Referer:
Gestionnaire de menu:

Modules/Applications: user, syslog, api, import, export, fckeditor, holiday, expensereport, recruitment, hrm, partnership, knowledgemanagement, ticket, agenda, reception, tax, salaries, banque, paymentbybanktransfer, prelevement, margin, product, service, stock, variants, mrp, bom, workstation, productbatch, projet, eventorganization, categorie, resource, ecm, bookmark, modulebuilder, opensurvey, socialnetworks, notification, mailing, emailcollector, ldap, oauth, geoipmaxmind, clicktodial, printing, debugbar, blockedlog, google, webhook, zapier, incoterm, societe, fournisseur, supplier_proposal, externalsite, paypal, stripe, takepos, facture, website, comptabilite, don, loan, propal, commande, expedition, contrat, ficheinter, adherent, multicurrency, externalrss, barcode, workflow, mailmanspip, gravatar, dav
Type gestionnaire de base de données: mysqli
Requête dernier accès en base en erreur: INSERT INTO llx_facture ( ref, entity, ref_ext, type, subtype, fk_soc, datec, datef, date_pointoftax, note_private, note_public, ref_client, fk_account, module_source, pos_source, fk_fac_rec_source, fk_facture_source, fk_user_author, fk_projet, fk_cond_reglement, fk_mode_reglement, date_lim_reglement, model_pdf, situation_cycle_ref, situation_counter, situation_final, fk_incoterms, location_incoterms, fk_multicurrency, multicurrency_code, multicurrency_tx, retained_warranty, retained_warranty_date_limit, retained_warranty_fk_cond_reglement) VALUES ('(PROV)', 1, null, '0', null, 4, '2026-06-06 04:31:38', '2026-06-06 04:31:38', null, 'A private comment', 'A public comment', null, NULL, null, null, null, null, 1, null, 1, 0, '2026-06-07 04:31:38', null, null, null, 0, 0, '', 0, 'EUR', 1, 0, NULL, 0)
Code retour dernier accès en base en erreur: DB_ERROR_1452
Information sur le dernier accès en base en erreur: Cannot add or update a child row: a foreign key constraint fails (`Dolibarr`.`llx_facture`, CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`))

Message: Cannot add or update a child row: a foreign key constraint fails (`Dolibarr`.`llx_facture`, CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`))
--- end error code=1