HI
we have just started getting an error in the sales module when searching.
Search works fine in contacts, but when in sales module we get
----------------------------
Type: E_USER_ERROR (256)
Message: mysqlt error: [1054: Unknown column 'f___first_name' in 'where clause'] in EXECUTE("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')")
File: /xxx/xxx/sitexx/web/crm/libs/adodb/adodb-errorhandler.inc.php
Line=77
error backtrace:
[PHP core called function]
function called: handle_epesi_error(256, "mysqlt error: [1054: Unknown column 'f___first_name' in 'where clause'] in EXECUTE(\"SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')\") ", "/xxx/xxx/sitexx/web/crm/libs/adodb/adodb-errorhandler.inc.php", 77, Array ("mysqlt", "EXECUTE", 1054, "Unknown column 'f___first_name' in 'where clause'", "SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", false, Object (ADODB_mysqlt), "SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", false, "mysqlt error: [1054: Unknown column 'f___first_name' in 'where clause'] in EXECUTE(\"SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')\") "))
File: /xxx/xxx/sitexx/web/crm/libs/adodb/adodb-errorhandler.inc.php
line 77
function called: trigger_error("mysqlt error: [1054: Unknown column 'f___first_name' in 'where clause'] in EXECUTE(\"SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')\") ", 256)
File: /xxx/xxx/sitexx/web/crm/libs/adodb/adodb.inc.php
line 1043
function called: ADODB_Error_Handler("mysqlt", "EXECUTE", 1054, "Unknown column 'f___first_name' in 'where clause'", "SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", false, "Object (ADODB_mysqlt)")
File: /xxx/xxx/sitexx/web/crm/libs/adodb/adodb.inc.php
line 1018
function called: _Execute("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", false)
File: /xxx/xxx/sitexx/web/crm/libs/adodb/adodb.inc.php
line 1392
function called: Execute("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", null)
[PHP core called function]
function called: GetAssoc("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", null)
File: /xxx/xxx/sitexx/web/crm/include/database.php
line 460
function called: call_user_func_array(Array (Object (ADODB_mysqlt), "GetAssoc"), Array ("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')", null))
File: /xxx/xxx/sitexx/web/crm/modules/Utils/RecordBrowser/RecordBrowserCommon_0.php
line 1130
function called: GetAssoc("SELECT id, id FROM contact_data_1 WHERE false OR f_last_name LIKE CONCAT('%','bar','%') OR f___first_name LIKE CONCAT('%','bar','%')")
File: /xxx/xxx/sitexx/web/crm/modules/Utils/RecordBrowser/RecordBrowserCommon_0.php
line 1296
function called: build_query("premium_salesopportunity", Array (#12), false, Array ())
File: /xxx/xxx/sitexx/web/crm/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 790
function called: get_records_count("premium_salesopportunity", Array (#12), false, Array ())
File: /xxx/xxx/sitexx/web/crm/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 296
function called: show_data(Array (), Array (), Array ())
[PHP core called function]
function called: body()
File: /xxx/xxx/sitexx/web/crm/include/module.php
line 793
function called: call_user_func_array(Array (Object (Utils_RecordBrowser), "body"), Array ())
File: /xxx/xxx/sitexx/web/crm/include/module.php
line 713
function called: get_html_of_module(Object (Utils_RecordBrowser), null, null)
File: /xxx/xxx/sitexx/web/crm/modules/Premium/SalesOpportunity/SalesOpportunity_0.php
line 33
function called: display_module("Object (Utils_RecordBrowser)")
[PHP core called function]
function called: body()
File: /xxx/xxx/sitexx/web/crm/include/module.php
line 793
function called: call_user_func_array(Array (Object (Premium_SalesOpportunity), "body"), Array ())
File: /xxx/xxx/sitexx/web/crm/include/module.php
line 713
function called: get_html_of_module(Object (Premium_SalesOpportunity), null, null)
File: /xxx/xxx/sitexx/web/crm/modules/Base/Box/Box_0.php
line 146
function called: display_module("Object (Premium_SalesOpportunity)")
File: /xxx/xxx/sitexx/web/crm/include/epesi.php
line 209
function called: body()
File: /xxx/xxx/sitexx/web/crm/include/epesi.php
line 254
function called: go(Object (Base_Box))
File: /xxx/xxx/sitexx/web/crm/include/epesi.php
line 277
function called: process("__action_module__=%2FBase_Box%7C0%2FPremium_SalesOpportunity%7Cmain_0%2FUtils_RecordBrowser%7Cpremium_salesopportunity%2FUtils_GenericBrowser%7Cpremium_salesopportunity&__location=1374868892.901", false, true)
File: /xxx/xxx/sitexx/web/crm/process.php
line 32
function called: process("_qf__libs_qf_5d8c6b24c7d47c6b8f9b0f3a77345f8d=&submited=1&show_all_pressed=0&submit_search=Search&search=bar&show_all=Show%20all&__action_module__=%2FBase_Box%7C0%2FPremium_SalesOpportunity%7Cmain_0%2FUtils_RecordBrowser%7Cpremium_salesopportunity%2FUtils_GenericBrowser%7Cpremium_salesopportunity", false)
this has been working fine until today
---------------------------------------------------
version 1.52 --
FYI we do have some clients that have no first name so we have had to use a "." as the field is a mandatory field , we have being doing this since the start of use and had no issue,
please can you let me know any ideas what may be causing it
Thanks and regards
Richard