Hi:
I got following error automatically while working:
Type: E_USER_ERROR (256)
Message: mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`nexussec_secure`.`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, '2014-05-28 07:08:31')")
File: /home/nexussec/public_html/customer/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 (`nexussec_secure`.`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, '2014-05-28 07:08:31')\") ", "/home/nexussec/public_html/customer/libs/adodb/adodb-errorhandler.inc.php", 77, Array ("mysqlt", "EXECUTE", 1452, "Cannot add or update a child row: a foreign key constraint fails (`nexussec_secure`.`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, '2014-05-28 07:08:31')", false, Object (ADODB_mysqlt), "INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2014-05-28 07:08:31')", false, "mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`nexussec_secure`.`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, '2014-05-28 07:08:31')\") "))
File: /home/nexussec/public_html/customer/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 (`nexussec_secure`.`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, '2014-05-28 07:08:31')\") ", 256)
File: /home/nexussec/public_html/customer/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 (`nexussec_secure`.`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, '2014-05-28 07:08:31')", false, "Object (ADODB_mysqlt)")
File: /home/nexussec/public_html/customer/libs/adodb/adodb.inc.php
line 999
function called: _Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2014-05-28 07:08:31')")
[PHP core called function]
function called: Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (?, ?, ?)", Array (-1, 1, "2014-05-28 07:08:31"))
File: /home/nexussec/public_html/customer/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/nexussec/public_html/customer/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", "2014-05-28 07:08:31"))
File: /home/nexussec/public_html/customer/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 1168
function called: add_recent_entry("company", "1", -1)
[PHP core called function]
function called: view_entry("view", -1, Array (), Array (false))
File: /home/nexussec/public_html/customer/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/nexussec/public_html/customer/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/nexussec/public_html/customer/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/nexussec/public_html/customer/include/module.php
line 793
function called: call_user_func_array(Array (Object (CRM_Contacts), "body"), Array ())
File: /home/nexussec/public_html/customer/include/module.php
line 713
function called: get_html_of_module(Object (CRM_Contacts), null, null)
File: /home/nexussec/public_html/customer/modules/Base/Box/Box_0.php
line 146
function called: display_module("Object (CRM_Contacts)")
File: /home/nexussec/public_html/customer/include/epesi.php
line 213
function called: body()
File: /home/nexussec/public_html/customer/include/epesi.php
line 258
function called: go(Object (Base_Box))
File: /home/nexussec/public_html/customer/process.php
line 32
function called: process("mode=main_company&box_main_href=a5c7a0b0ee97efdc3eff6fb6dfd77d2e", false)
-------------------------------
My query is , if I delete all files and upload all again. Will it solve this problem?
Please reply.
Pravin