Hi,
Every time that i want to enter to my Company data info... The principal company, i recive this error:
Type: E_USER_ERROR (256)
Message: mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))] in EXECUTE("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')")
File: /home/uti/epesi2013/libs/adodb/adodb-errorhandler.inc.php
Line=77
error backtrace:
[PHP core called function]
function called: handle_epesi_error(256, "mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))] in EXECUTE(\"INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')\") ", "/home/uti/epesi2013/libs/adodb/adodb-errorhandler.inc.php", 77, Array ("mysqlt", "EXECUTE", 1452, "Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))", "INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')", false, Object (ADODB_mysqlt), "INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')", false, "mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))] in EXECUTE(\"INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')\") "))
File: /home/uti/epesi2013/libs/adodb/adodb-errorhandler.inc.php
line 77
function called: trigger_error("mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))] in EXECUTE(\"INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')\") ", 256)
File: /home/uti/epesi2013/libs/adodb/adodb.inc.php
line 1043
function called: ADODB_Error_Handler("mysqlt", "EXECUTE", 1452, "Cannot add or update a child row: a foreign key constraint fails (`epesi`.`company_recent`, CONSTRAINT `company_recent_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `company_data_1` (`id`))", "INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')", false, "Object (ADODB_mysqlt)")
File: /home/uti/epesi2013/libs/adodb/adodb.inc.php
line 999
function called: _Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2013-10-29 13:48:14')")
[PHP core called function]
function called: Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (?, ?, ?)", Array (-1, 1, "2013-10-29 13:48:14"))
File: /home/uti/epesi2013/include/database.php
line 339
function called: call_user_func_array(Array (Object (ADODB_mysqlt), "Execute"), Array ("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (?, ?, ?)", Array (#3)))
File: /home/uti/epesi2013/modules/Utils/RecordBrowser/RecordBrowserCommon_0.php
line 947
function called: Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (%d, %d, %T)", Array (-1, "1", "2013-10-29 13:48:14"))
File: /home/uti/epesi2013/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 1167
function called: add_recent_entry("company", "1", -1)
[PHP core called function]
function called: view_entry("view", -1, Array (), Array (false))
File: /home/uti/epesi2013/include/module.php
line 793
function called: call_user_func_array(Array (Object (Utils_RecordBrowser), "view_entry"), Array ("view", -1, Array (#0), Array (#1)))
File: /home/uti/epesi2013/include/module.php
line 713
function called: get_html_of_module(Object (Utils_RecordBrowser), Array ("view", -1, Array (#0), Array (#1)), "view_entry")
File: /home/uti/epesi2013/modules/CRM/Contacts/Contacts_0.php
line 54
function called: display_module("Object (Utils_RecordBrowser)", Array ("view", -1, Array (#0), Array (#1)), "view_entry")
[PHP core called function]
function called: body()
File: /home/uti/epesi2013/include/module.php
line 793
function called: call_user_func_array(Array (Object (CRM_Contacts), "body"), Array ())
File: /home/uti/epesi2013/include/module.php
line 713
function called: get_html_of_module(Object (CRM_Contacts), null, null)
File: /home/uti/epesi2013/modules/Base/Box/Box_0.php
line 146
function called: display_module("Object (CRM_Contacts)")
File: /home/uti/epesi2013/include/epesi.php
line 213
function called: body()
File: /home/uti/epesi2013/include/epesi.php
line 258
function called: go(Object (Base_Box))
File: /home/uti/epesi2013/process.php
line 32
function called: process("mode=main_company&box_main_href=a5c7a0b0ee97efdc3eff6fb6dfd77d2e", false)