#!/usr/bin/env php ***** create_order.php (1.11) ***** Dolibarr a détecté une erreur technique.
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: 20250629033327
Dolibarr: 20.0.0 - https://www.dolibarr.org
Niveau de fonctionnalités: 0
Identifiant: admin
PHP: 8.0.30
Server: Apache
OS: Linux webd292.cluster023.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 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_order.php
Referer:
Gestionnaire de menu:

Modules/Applications: user, ecm, commande, resource, expedition, margin, ficheinter, loan, fournisseur, contrat, supplier_proposal, partnership, reception, export, import, agenda, facture, tax, salaries, banque, accounting, product, stock, variants, projet, categorie, fckeditor, service, holiday, expensereport, societe, propal
Type gestionnaire de base de données: mysqli
Requête dernier accès en base en erreur: INSERT INTO onr_commande ( ref, fk_soc, date_creation, fk_user_author, fk_projet, date_commande, source, note_private, note_public, ref_ext, ref_client, model_pdf, fk_cond_reglement, deposit_percent, fk_mode_reglement, fk_account, fk_availability, fk_input_reason, date_livraison, fk_delivery_address, fk_shipping_method, fk_warehouse, fk_incoterms, location_incoterms, entity, module_source, pos_source, fk_multicurrency, multicurrency_code, multicurrency_tx) VALUES ('(PROV)', 4, '2025-06-29 03:33:27', 1, null, '2025-06-29 03:33:27', 1, 'A private comment', 'A public comment', null, null, '', null, null, null, NULL, null, null, null, NULL, NULL, NULL, 0, '', 1, null, null, 0, 'EUR', 1)
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 (`onrnegocecrm`.`onr_commande`, CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `onr_societe` (`rowid`))

Message: Cannot add or update a child row: a foreign key constraint fails (`onrnegocecrm`.`onr_commande`, CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `onr_societe` (`rowid`))
--- end error code=1