#!/usr/bin/env php ***** create_order.php (1.11) ***** Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to '1' to hide sensitive information):
Date: 20251219212436
Dolibarr: 22.0.0 - https://www.dolibarr.org
Level of features: 0
Login: admin
PHP: 8.1.33
Server: LiteSpeed
OS: Linux lubukraya.iixcp.rumahweb.net 5.14.0-570.30.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 30 05:12:29 EDT 2025 x86_64
User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Requested URL: /erp.ptmac.co.id/dev/examples/code/create_order.php
Referer:
Menu manager:

Modules/Applications: user, categorie, ecm, holiday, ai, bookmark, hrm, barcode, recruitment, workflow, expensereport, societe, modulebuilder, agenda, opensurvey, propal, takepos, commande, webportal, expedition, website, receiptprinter, printing, contrat, webhook, ficheinter, mailing, partnership, cron, knowledgemanagement, blockedlog, fournisseur, incoterm, reception, facture, tax, loan, don, banque, salaries, margin, product, prelevement, paymentbybanktransfer, accounting, service, stock, export, import, fckeditor, bom, variants, productbatch, mrp, workstation, projet, resource, adherent, eventorganization
Database type manager: mysqli
Latest database access request error: INSERT INTO llx_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-12-19 21:24:36', 1, null, '2025-12-19 21:24:36', 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)
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 (`mact3965_dolibarr`.`llx_commande`, CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`))

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