Pojawia mi się błąd podczas próby otworzenia zakładki "moja firma". Macie pomysł jak go naprawić?
Błąd:
Type: E_USER_ERROR (256)
Message: mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`thompson_crm`.`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-09-02 12:29:51')")
File: /home/thompson/domains/web-monter.pl/public_html/crm/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 (`thompson_crm`.`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-09-02 12:29:51')\") ", "/home/thompson/domains/web-monter.pl/public_html/crm/libs/adodb/adodb-errorhandler.inc.php", 77, Array ("mysqlt", "EXECUTE", 1452, "Cannot add or update a child row: a foreign key constraint fails (`thompson_crm`.`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-09-02 12:29:51')", false, Object (ADODB_mysqlt), "INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2014-09-02 12:29:51')", false, "mysqlt error: [1452: Cannot add or update a child row: a foreign key constraint fails (`thompson_crm`.`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-09-02 12:29:51')\") "))
File: /home/thompson/domains/web-monter.pl/public_html/crm/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 (`thompson_crm`.`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-09-02 12:29:51')\") ", 256)
File: /home/thompson/domains/web-monter.pl/public_html/crm/libs/adodb/adodb.inc.php
line 1074
function called: ADODB_Error_Handler("mysqlt", "EXECUTE", 1452, "Cannot add or update a child row: a foreign key constraint fails (`thompson_crm`.`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-09-02 12:29:51')", false, "Object (ADODB_mysqlt)")
File: /home/thompson/domains/web-monter.pl/public_html/crm/libs/adodb/adodb.inc.php
line 1030
function called: _Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (-1, 1, '2014-09-02 12:29:51')")
[PHP core called function]
function called: Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (?, ?, ?)", Array (-1, 1, "2014-09-02 12:29:51"))
File: /home/thompson/domains/web-monter.pl/public_html/crm/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/thompson/domains/web-monter.pl/public_html/crm/modules/Utils/RecordBrowser/RecordBrowserCommon_0.php
line 982
function called: Execute("INSERT INTO company_recent (company_id, user_id, visited_on) VALUES (%d, %d, %T)", Array (-1, "1", "2014-09-02 12:29:51"))
File: /home/thompson/domains/web-monter.pl/public_html/crm/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 1169
function called: add_recent_entry("company", "1", -1)
[PHP core called function]
function called: view_entry("view", -1, Array (), Array (false))
File: /home/thompson/domains/web-monter.pl/public_html/crm/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/thompson/domains/web-monter.pl/public_html/crm/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/thompson/domains/web-monter.pl/public_html/crm/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/thompson/domains/web-monter.pl/public_html/crm/include/module.php
line 793
function called: call_user_func_array(Array (Object (CRM_Contacts), "body"), Array ())
File: /home/thompson/domains/web-monter.pl/public_html/crm/include/module.php
line 713
function called: get_html_of_module(Object (CRM_Contacts), null, null)
File: /home/thompson/domains/web-monter.pl/public_html/crm/modules/Base/Box/Box_0.php
line 146
function called: display_module("Object (CRM_Contacts)")
File: /home/thompson/domains/web-monter.pl/public_html/crm/include/epesi.php
line 241
function called: body()
File: /home/thompson/domains/web-monter.pl/public_html/crm/include/epesi.php
line 286
function called: go(Object (Base_Box))
File: /home/thompson/domains/web-monter.pl/public_html/crm/process.php
line 36
function called: process("mode=main_company&box_main_href=a5c7a0b0ee97efdc3eff6fb6dfd77d2e", false)