November 16, 2009

BUG: Warning: call_user_func(tep_cfg_select_option(array('true', 'false'),)

Update: One Day since SimpleSuggest - Ajax Search for OsCommerce is released, there is a first bug to fix, thx to cezar99. In the first package there was an error in the sql script.
If you have a warning like this:

Warning:
call_user_func(tep_cfg_select_option(array('true',
'false'),)[function.call-user-func]: First argument
is expected to be a valid callback in /admin/includes/functions/general.php on line 1284

Warning: call_user_func(tep_cfg_select_option(array('true',
'false'),)[function.call-user-func]: First argument
is expected to be a valid callback in
/admin/includes/functions/general.php on line 1284

In your OsCommerce Admin section, use this to correct the error:
UPDATE `configuration` SET `use_function` = '', `set_function` = 'tep_cfg_select_option(array(''true'', ''false''),' WHERE `configuration`.`configuration_key` like 'SIMPLESUGGEST_MARK_SEARCH_CHAR' LIMIT 1;
UPDATE `configuration` SET `use_function` = '', `set_function` = 'tep_cfg_select_option(array(''true'', ''false''),' WHERE `configuration`.`configuration_key` like 'SIMPLESUGGEST_ACTIVE' LIMIT 1;

Keine Kommentare:

Kommentar veröffentlichen