#!/usr/bin/php ***** create_invoice.php (1.7) ***** Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to '1' to remove such notices):
Date: 20260223155334
Dolibarr: 8.0.3
Level of features: 0
PHP: 7.4.33
Server: Apache
OS: Linux webd003.cluster103.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
UserAgent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Requested URL: /dolibarr/dev/examples/create_invoice.php
Referer:
Menu manager:

Database type manager: mysqli
Latest database access request error: INSERT INTO llx_facture ( facnumber, entity, ref_ext, type, fk_soc, datec, remise_absolue, remise_percent, datef, date_pointoftax, note_private, note_public, ref_client, ref_int, fk_account, 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) VALUES ('(PROV)', 1, null, '0', '4', '2026-02-23 15:53:34', NULL, NULL, '2026-02-23 15:53:34', null, null, null, null, null, NULL, null, null, '1', null, 1, 0, '2026-02-23 15:53:34', '', null, null, 0, 0, '', 0, 'EUR', 1)
Return code for latest database access request error: DB_ERROR_1452
Information for latest database access request error: Cannot add or update a child row: a foreign key constraint fails (`nexiiumcxedoli`.`llx_facture`, CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT)

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