0

几天以来,我们正在测试 Dolibarr (14.0.3)。当我们创建一个 BOM 列表时,我们会收到一个返回的纯文本对象,而不是被重定向到相关的 BOM(概念)。在后台是创建的 BOM,所以如果我们再次打开 Dolibarr 并导航到 BOM 列表,它就处于概念状态。

这是我在浏览器中得到的响应:

object(BOM)#89 (102) { ["element"]=> string(3) "bom" ["table_element"]=> string(7) "bom_bom" ["ismultientitymanaged"]=> int(1) ["isextrafieldmanaged"]=> int(1) ["picto"]=> string(3) "bom" ["fields"]=> array(20) { ["rowid"]=> array(8) { ["type"]=> string(7) "integer" ["label"]=> string(11) "TechnicalID" ["enabled"]=> int(1) ["visible"]=> int(0) ["position"]=> int(1) ["notnull"]=> int(1) ["index"]=> int(1) ["comment"]=> string(2) "Id" } ["ref"]=> array(12) { ["type"]=> string(12) "varchar(128)" ["label"]=> string(3) "Ref" ["enabled"]=> int(1) ["noteditable"]=> int(1) ["visible"]=> int(4) ["position"]=> int(10) ["notnull"]=> int(1) ["default"]=> string(6) "(PROV)" ["index"]=> int(1) ["searchall"]=> int(1) ["comment"]=> string(16) "Reference of BOM" ["showoncombobox"]=> string(1) "1" } ["label"]=> array(11) { ["type"]=> string(12) "varchar(255)" ["label"]=> string(5) "Label" ["enabled"]=> int(1) ["visible"]=> int(1) ["position"]=> int(30) ["notnull"]=> int(1) ["searchall"]=> int(1) ["showoncombobox"]=> string(1) "2" ["autofocusoncreate"]=> int(1) ["css"]=> string(11) "maxwidth300" ["csslist"]=> string(16) "tdoverflowmax200" } ["bomtype"]=> array(10) { ["type"]=> string(7) "integer" ["label"]=> string(4) "Type" ["enabled"]=> int(1) ["visible"]=> int(1) ["position"]=> int(33) ["notnull"]=> int(1) ["default"]=> string(1) "0" ["arrayofkeyval"]=> array(2) { [0]=> string(13) "Manufacturing" [1]=> string(11) "Disassemble" } ["css"]=> string(11) "minwidth175" ["csslist"]=> string(18) "minwidth175 center" } ["fk_product"]=> array(11) { ["type"]=> string(85) "integer:Product:product/class/product.class.php:1:(finished IS NULL or finished <> 0)" ["label"]=> string(7) "Product" ["picto"]=> string(7) "product" ["enabled"]=> int(1) ["visible"]=> int(1) ["position"]=> int(35) ["notnull"]=> int(1) ["index"]=> int(1) ["help"]=> string(14) "ProductBOMHelp" ["css"]=> string(11) "maxwidth500" ["csslist"]=> string(16) "tdoverflowmax100" } ["description"]=> array(6) { ["type"]=> string(4) "text" ["label"]=> string(11) "Description" ["enabled"]=> int(1) ["visible"]=> int(-1) ["position"]=> int(60) ["notnull"]=> int(-1) } ["qty"]=> array(9) { ["type"]=> string(4) "real" ["label"]=> string(8) "Quantity" ["enabled"]=> int(1) ["visible"]=> int(1) ["default"]=> int(1) ["position"]=> int(55) ["notnull"]=> int(1) ["isameasure"]=> string(1) "1" ["css"]=> string(13) "maxwidth75imp" } ["duration"]=> array(8) { ["type"]=> string(8) "duration" ["label"]=> string(17) "EstimatedDuration" ["enabled"]=> int(1) ["visible"]=> int(-1) ["position"]=> int(101) ["notnull"]=> int(-1) ["css"]=> string(13) "maxwidth50imp" ["help"]=> string(21) "EstimatedDurationDesc" } ["fk_warehouse"]=> array(8) { ["type"]=> string(57) "integer:Entrepot:product/stock/class/entrepot.class.php:0" ["label"]=> string(22) "WarehouseForProduction" ["picto"]=> string(5) "stock" ["enabled"]=> int(1) ["visible"]=> int(-1) ["position"]=> int(102) ["css"]=> string(11) "maxwidth500" ["csslist"]=> string(16) "tdoverflowmax100" } ["note_public"]=> array(6) { ["type"]=> string(4) "html" ["label"]=> string(10) "NotePublic" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(161) ["notnull"]=> int(-1) } ["note_private"]=> array(6) { ["type"]=> string(4) "html" ["label"]=> string(11) "NotePrivate" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(162) ["notnull"]=> int(-1) } ["date_creation"]=> array(6) { ["type"]=> string(8) "datetime" ["label"]=> string(12) "DateCreation" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(300) ["notnull"]=> int(1) } ["tms"]=> array(6) { ["type"]=> string(9) "timestamp" ["label"]=> string(16) "DateModification" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(501) ["notnull"]=> int(1) } ["date_valid"]=> array(6) { ["type"]=> string(8) "datetime" ["label"]=> string(14) "DateValidation" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(502) ["notnull"]=> int(0) } ["fk_user_creat"]=> array(9) { ["type"]=> string(38) "integer:User:user/class/user.class.php" ["label"]=> string(12) "UserCreation" ["picto"]=> string(4) "user" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(510) ["notnull"]=> int(1) ["foreignkey"]=> string(10) "user.rowid" ["csslist"]=> string(16) "tdoverflowmax100" } ["fk_user_modif"]=> array(8) { ["type"]=> string(38) "integer:User:user/class/user.class.php" ["label"]=> string(9) "UserModif" ["picto"]=> string(4) "user" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(511) ["notnull"]=> int(-1) ["csslist"]=> string(16) "tdoverflowmax100" } ["fk_user_valid"]=> array(8) { ["type"]=> string(38) "integer:User:user/class/user.class.php" ["label"]=> string(14) "UserValidation" ["picto"]=> string(4) "user" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(512) ["notnull"]=> int(0) ["csslist"]=> string(16) "tdoverflowmax100" } ["import_key"]=> array(6) { ["type"]=> string(11) "varchar(14)" ["label"]=> string(8) "ImportId" ["enabled"]=> int(1) ["visible"]=> int(-2) ["position"]=> int(1000) ["notnull"]=> int(-1) } ["model_pdf"]=> array(5) { ["type"]=> string(12) "varchar(255)" ["label"]=> string(9) "Model pdf" ["enabled"]=> int(1) ["visible"]=> int(0) ["position"]=> int(1010) } ["status"]=> array(9) { ["type"]=> string(7) "integer" ["label"]=> string(6) "Status" ["enabled"]=> int(1) ["visible"]=> int(2) ["position"]=> int(1000) ["notnull"]=> int(1) ["default"]=> int(0) ["index"]=> int(1) ["arrayofkeyval"]=> array(3) { [0]=> string(7) "Entwurf" [1]=> string(9) "Aktiviert" [9]=> string(11) "Deaktiviert" } } } ["rowid"]=> NULL ["ref"]=> string(8) "(PROV25)" ["label"]=> string(3) "asd" ["bomtype"]=> string(1) "0" ["description"]=> string(0) "" ["date_creation"]=> NULL ["tms"]=> NULL ["fk_user_creat"]=> NULL ["fk_user_modif"]=> NULL ["import_key"]=> NULL ["status"]=> NULL ["fk_product"]=> string(1) "5" ["qty"]=> string(1) "1" ["efficiency"]=> int(1) ["table_element_line"]=> string(11) "bom_bomline" ["fk_element"]=> string(6) "fk_bom" ["class_element_line"]=> string(7) "BOMLine" ["childtablesoncascade":protected]=> array(1) { [0]=> string(11) "bom_bomline" } ["lines"]=> array(0) { } ["total_cost"]=> int(0) ["unit_cost"]=> int(0) ["db"]=> object(TraceableDB)#83 (21) { ["db"]=> object(DoliDBMysqli)#31 (19) { ["db"]=> object(mysqli)#32 (18) { ["affected_rows"]=> int(0) ["client_info"]=> string(13) "mysqlnd 7.4.3" ["client_version"]=> int(70403) ["connect_errno"]=> int(0) ["connect_error"]=> NULL ["errno"]=> int(0) ["error"]=> string(0) "" ["error_list"]=> array(0) { } ["field_count"]=> int(0) ["host_info"]=> string(23) "10.128.11.30 via TCP/IP" ["info"]=> NULL ["insert_id"]=> int(0) ["server_info"]=> string(38) "5.5.5-10.3.31-MariaDB-0ubuntu0.20.04.1" ["server_version"]=> int(100331) ["sqlstate"]=> string(5) "00000" ["protocol_version"]=> int(10) ["thread_id"]=> int(4005680) ["warning_count"]=> int(0) } ["type"]=> string(6) "mysqli" ["_results":"DoliDBMysqli":private]=> bool(true) ["forcecharset"]=> string(4) "utf8" ["forcecollate"]=> string(15) "utf8_unicode_ci" ["connected"]=> bool(true) ["database_selected"]=> bool(true) ["database_name"]=> string(22) "testbarr_int_axxteq_de" ["database_user"]=> string(27) "testbarr_int_axxteq_de_user" ["database_host"]=> string(12) "10.128.11.30" ["database_port"]=> string(4) "3306" ["transaction_opened"]=> int(0) ["lastquery"]=> string(89) "UPDATE llx_bom_bom SET ref = '(PROV25)' WHERE (ref = '(PROV)' OR ref = '') AND rowid = 25" ["lastqueryerror"]=> NULL ["lasterror"]=> NULL ["lasterrno"]=> NULL ["ok"]=> bool(true) ["error"]=> NULL ["_results":"DoliDB":private]=> NULL } ["queries"]=> array(5) { [0]=> array(6) { ["sql"]=> string(127) "SELECT transkey, transvalue FROM llx_overwrite_trans where lang='de_DE' OR lang IS NULL AND entity IN (0, 1) ORDER BY lang DESC" ["duration"]=> float(0.00041580200195312) ["memory_usage"]=> int(0) ["is_success"]=> bool(true) ["error_code"]=> NULL ["error_message"]=> NULL } [1]=> array(6) { ["sql"]=> string(307) "SELECT m.rowid, m.type, m.module, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.url, m.titre, m.prefix, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu, m.position FROM llx_menu as m WHERE m.entity IN (0,1) AND m.menu_handler IN ('eldy','all') AND m.usertype IN (0,2) ORDER BY m.position, m.rowid" ["duration"]=> float(0.00088310241699219) ["memory_usage"]=> int(0) ["is_success"]=> bool(true) ["error_code"]=> NULL ["error_message"]=> NULL } [2]=> array(6) { ["sql"]=> string(266) "SELECT rowid, name, label, type, size, elementtype, fieldunique, fieldrequired, param, pos, alwayseditable, perms, langs, list, printable, totalizable, fielddefault, fieldcomputed, entity, enabled, help FROM llx_extrafields WHERE elementtype = 'bom_bom' ORDER BY pos" ["duration"]=> float(0.0004730224609375) ["memory_usage"]=> int(0) ["is_success"]=> bool(true) ["error_code"]=> NULL ["error_message"]=> NULL } [3]=> array(6) { ["sql"]=> string(346) "INSERT INTO llx_bom_bom (ref, label, bomtype, fk_product, description, qty, duration, fk_warehouse, note_public, note_private, date_creation, date_valid, fk_user_creat, fk_user_modif, fk_user_valid, import_key, model_pdf, status) VALUES ('', 'asd', 0, 5, NULL, 1, NULL, NULL, NULL, NULL, '2021-10-21 13:23:04', NULL, 1, NULL, NULL, NULL, NULL, 0)" ["duration"]=> float(0.00059199333190918) ["memory_usage"]=> int(0) ["is_success"]=> bool(true) ["error_code"]=> NULL ["error_message"]=> NULL } [4]=> array(6) { ["sql"]=> string(89) "UPDATE llx_bom_bom SET ref = '(PROV25)' WHERE (ref = '(PROV)' OR ref = '') AND rowid = 25" ["duration"]=> float(0.00047087669372559) ["memory_usage"]=> int(0) ["is_success"]=> bool(true) ["error_code"]=> NULL ["error_message"]=> NULL } } ["startTime":protected]=> float(1634822584.9715) ["startMemory":protected]=> int(2097152) ["type"]=> string(6) "mysqli" ["forcecharset"]=> string(4) "utf8" ["forcecollate"]=> string(15) "utf8_unicode_ci" ["_results":"DoliDB":private]=> NULL ["connected"]=> NULL ["database_selected"]=> NULL ["database_name"]=> NULL ["database_user"]=> NULL ["database_host"]=> NULL ["database_port"]=> NULL ["transaction_opened"]=> NULL ["lastquery"]=> NULL ["lastqueryerror"]=> NULL ["lasterror"]=> NULL ["lasterrno"]=> NULL ["ok"]=> NULL ["error"]=> NULL } ["id"]=> int(25) ["entity"]=> NULL ["error"]=> NULL ["errorhidden"]=> NULL ["errors"]=> array(0) { } ["array_options"]=> array(0) { } ["array_languages"]=> NULL ["linkedObjectsIds"]=> NULL ["linkedObjects"]=> NULL ["oldcopy"]=> NULL ["table_ref_field":protected]=> string(0) "" ["context"]=> array(0) { } ["canvas"]=> NULL ["project"]=> NULL ["fk_project"]=> NULL ["projet"]=> NULL ["contact"]=> NULL ["contact_id"]=> NULL ["thirdparty"]=> NULL ["user"]=> NULL ["origin"]=> NULL ["origin_id"]=> NULL ["ref_ext"]=> NULL ["ref_previous"]=> NULL ["ref_next"]=> NULL ["newref"]=> NULL ["statut"]=> NULL ["country"]=> NULL ["country_id"]=> NULL ["country_code"]=> NULL ["state"]=> NULL ["state_id"]=> NULL ["state_code"]=> NULL ["region_id"]=> NULL ["region_code"]=> NULL ["region"]=> NULL ["barcode_type"]=> NULL ["barcode_type_code"]=> NULL ["barcode_type_label"]=> NULL ["barcode_type_coder"]=> NULL ["mode_reglement_id"]=> NULL ["cond_reglement_id"]=> NULL ["demand_reason_id"]=> NULL ["transport_mode_id"]=> NULL ["cond_reglement"]=> NULL ["fk_delivery_address"]=> NULL ["shipping_method_id"]=> NULL ["model_pdf"]=> NULL ["modelpdf"]=> NULL ["last_main_doc"]=> NULL ["fk_bank"]=> NULL ["fk_account"]=> NULL ["openid"]=> NULL ["note_public"]=> NULL ["note_private"]=> NULL ["note"]=> NULL ["total_ht"]=> NULL ["total_tva"]=> NULL ["total_localtax1"]=> NULL ["total_localtax2"]=> NULL ["total_ttc"]=> NULL ["comments"]=> array(0) { } ["name"]=> NULL ["lastname"]=> NULL ["firstname"]=> NULL ["civility_id"]=> NULL ["date_validation"]=> NULL ["date_modification"]=> NULL ["next_prev_filter"]=> NULL ["specimen"]=> int(0) ["sendtoid"]=> NULL ["alreadypaid"]=> NULL ["childtables":protected]=> array(0) { } ["fk_warehouse"]=> string(0) "" }

我在 Nginx 错误日志中找不到任何日志,还尝试检查 Dolibarr 14.0.2 、 14.0.0 和 13.0.0 但都有相同的问题。我认为某些配置错误或服务器上缺少某些东西,但我找不到什么。我在 Google、他们的 Git 或他们的论坛上也找不到这个问题。有谁知道原因以及如何解决?

4

0 回答 0