Title: Error with SG slider
Last modified: August 30, 2016

---

# Error with SG slider

 *  Resolved [golempas](https://wordpress.org/support/users/golempas/)
 * (@golempas)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-with-sg-slider/)
 * Hello
 * I have this message with SG slider when i try to open it after the insertion 
   in different sidebar.
 * Fatal error: Call to undefined function sanitize_hex_color() in […]wp-content/
   themes/sg-window/inc/widget-slider.php on line 448
 * Do you have an idea ?
 * I love you theme
 * Sincerely

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [cats_456](https://wordpress.org/support/users/cats_456/)
 * (@cats_456)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-with-sg-slider/#post-6402624)
 * golempas, thanks!
 * I see this error under Appearance > Widgtes too. I forgot to add $this pointer
   to that function in widget-slider.php, line 448 ->
 *     ```
       $instance['text_color'] = $this->sanitize_hex_color( $new_instance['text_color'] ); ;
       ```
   
 * I use mainly new widget’s interface under Customize > Widgets, this function 
   exists by default in the customizer only and doesn’t generate errors there.
 * fixed version in this ticket -> [https://themes.trac.wordpress.org/ticket/26326](https://themes.trac.wordpress.org/ticket/26326)
 *  Thread Starter [golempas](https://wordpress.org/support/users/golempas/)
 * (@golempas)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-with-sg-slider/#post-6402675)
 * THank you
    works well

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error with SG slider’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sg-window/1.2.3/screenshot.png)
 * SG Window
 * [Support Threads](https://wordpress.org/support/theme/sg-window/)
 * [Active Topics](https://wordpress.org/support/theme/sg-window/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sg-window/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sg-window/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [golempas](https://wordpress.org/support/users/golempas/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/error-with-sg-slider/#post-6402675)
 * Status: resolved