The easiest way of using svg logo
Upload the logo manually to the path of 'sites/all/themes/urbansherpa/images/urbansherpa-logo.svg' instead of using Drupal to upload the image to the drupal public folder, cause drupal image doesn't support svg formatGo to Drupal admin panel : admin/appearance/settings/urbansherpa
Untick the check-box of 'Use the default logo' and put the path where the logo was uploaded. In my example it's 'sites/all/themes/urbansherpa/images/urbansherpa-logo.svg'
All done and the svn logo should work as expected.
Trace the Drupal core code to understand the aforementioned steps
Open the file with the path of 'modules/system/system.admin.inc'Search the function named 'system_theme_settings'
At the bottom of the function, the snippet of adding validate function can be found:
$form['#validate'][] = 'system_theme_settings_validate';
Search the validate function in the same file and at the bottom of this function you will find the magic snippet:
// If the user provided a path for a logo or favicon file, make sure a file
// exists at that path.
if (!empty($form_state['values']['logo_path'])) {
$path = _system_theme_settings_validate_path($form_state['values']['logo_path']);
if (!$path) {
form_set_error('logo_path', t('The custom logo path is invalid.'));
}
}
if (!empty($form_state['values']['favicon_path'])) {
$path = _system_theme_settings_validate_path($form_state['values']['favicon_path']);
if (!$path) {
form_set_error('favicon_path', t('The custom favicon path is invalid.'));
}
}
From the snippet above, we can realize that it requires a logo path and a favicon path which are existing files.