исправить проблему с лицензией на business площадку можно так:
в файле admin/admin_business.php
найти
Code:
$rc_validator->license($setting['setting_business_license'],'business','license');
if (!$rc_validator->has_errors()) {
// SAVE CHANGES
$sql = "UPDATE se_settings SET
setting_business_license='{$setting[setting_business_license]}',
setting_permission_business='{$setting[setting_permission_business]}',
setting_business_proximity_country='{$setting[setting_business_proximity_country]}',
setting_business_proximity_search='{$setting[setting_business_proximity_search]}',
setting_business_summary_required='{$setting[setting_business_summary_required]}',
setting_business_desc_required='{$setting[setting_business_desc_required]}',
setting_business_phone_required='{$setting[setting_business_phone_required]}',
setting_business_url_required='{$setting[setting_business_url_required]}',
setting_business_tags_required='{$setting[setting_business_tags_required]}',
setting_business_neighborhood_required='{$setting[setting_business_neighborhood_required]}',
setting_business_location_postal_required='{$setting[setting_business_location_postal_required]}',
setting_business_location_street_required='{$setting[setting_business_location_street_required]}',
setting_business_location_city_required='{$setting[setting_business_location_city_required]}',
setting_business_location_province_required='{$setting[setting_business_location_province_required]}',
setting_business_location_country_required='{$setting[setting_business_location_country_required]}',
setting_business_countries='{$setting[setting_business_countries]}',
setting_business_country_field_type='{$setting[setting_business_country_field_type]}',
setting_business_provinces='{$setting[setting_business_provinces]}',
setting_business_province_field_type='{$setting[setting_business_province_field_type]}',
setting_business_cities='{$setting[setting_business_cities]}',
setting_business_city_field_type='{$setting[setting_business_city_field_type]}'
";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
$catprofile_map = rc_toolkit::get_post('catprofile_map', array());
foreach ($catprofile_map as $cat_id => $profilecat_id) {
$sql = "UPDATE se_businesscats SET businesscat_businessprofilecat_id = '$profilecat_id' WHERE businesscat_id = '$cat_id'";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
}
$result = 1;
}
}
и заменить на
Code:
// $rc_validator->license($setting['setting_business_license'],'business','license');
// if (!$rc_validator->has_errors()) {
// SAVE CHANGES
$sql = "UPDATE se_settings SET
setting_business_license='{$setting[setting_business_license]}',
setting_permission_business='{$setting[setting_permission_business]}',
setting_business_proximity_country='{$setting[setting_business_proximity_country]}',
setting_business_proximity_search='{$setting[setting_business_proximity_search]}',
setting_business_summary_required='{$setting[setting_business_summary_required]}',
setting_business_desc_required='{$setting[setting_business_desc_required]}',
setting_business_phone_required='{$setting[setting_business_phone_required]}',
setting_business_url_required='{$setting[setting_business_url_required]}',
setting_business_tags_required='{$setting[setting_business_tags_required]}',
setting_business_neighborhood_required='{$setting[setting_business_neighborhood_required]}',
setting_business_location_postal_required='{$setting[setting_business_location_postal_required]}',
setting_business_location_street_required='{$setting[setting_business_location_street_required]}',
setting_business_location_city_required='{$setting[setting_business_location_city_required]}',
setting_business_location_province_required='{$setting[setting_business_location_province_required]}',
setting_business_location_country_required='{$setting[setting_business_location_country_required]}',
setting_business_countries='{$setting[setting_business_countries]}',
setting_business_country_field_type='{$setting[setting_business_country_field_type]}',
setting_business_provinces='{$setting[setting_business_provinces]}',
setting_business_province_field_type='{$setting[setting_business_province_field_type]}',
setting_business_cities='{$setting[setting_business_cities]}',
setting_business_city_field_type='{$setting[setting_business_city_field_type]}'
";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
$catprofile_map = rc_toolkit::get_post('catprofile_map', array());
foreach ($catprofile_map as $cat_id => $profilecat_id) {
$sql = "UPDATE se_businesscats SET businesscat_businessprofilecat_id = '$profilecat_id' WHERE businesscat_id = '$cat_id'";
$resource = $database->database_query($sql) or die($database->database_error()." <b>SQL was: </b>$sql");
}
$result = 1;
//}
}
то есть, грубо говоря, там пару строк всего закомментировать надо, или удалить, чтоб валидатор не срабатывал.