Title: Fatal error: Uncaught Error: Call to undefined function wc_string_to_bool()
Last modified: May 19, 2020

---

# Fatal error: Uncaught Error: Call to undefined function wc_string_to_bool()

 *  [haanaa](https://wordpress.org/support/users/haanaa/)
 * (@haanaa)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-wc_string_to_bool/)
 * hi wordpress lovers
    front end and back end of my website is down and show this
   error . please help me
 * Fatal error: Uncaught Error: Call to undefined function wc_string_to_bool() in/
   home/hagbaaco/public_html/wp-content/plugins/woo-variation-gallery/includes/hooks.
   php:54 Stack trace: #0 /home/hagbaaco/public_html/wp-includes/class-wp-hook.php(
   287): Woo_Variation_Gallery->{closure}(‘<script type=’t…’, ‘jquery-core’, ‘[https://hagbaa&#8230](https://hagbaa&#8230);.’)#
   1 /home/hagbaaco/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘
   <script type=’t…’, Array) #2 /home/hagbaaco/public_html/wp-includes/class.wp-
   scripts.php(400): apply_filters(‘script_loader_t…’, ‘<script type=’t…’, ‘jquery-
   core’, ‘[https://hagbaa&#8230](https://hagbaa&#8230);.’) #3 /home/hagbaaco/public_html/
   wp-includes/class.wp-dependencies.php(116): WP_Scripts->do_item(‘jquery-core’,
   0) #4 /home/hagbaaco/public_html/wp-includes/class.wp-scripts.php(643): WP_Dependencies-
   >do_items(Array, 0) #5 /home/hagbaaco/public_html/wp-includes/script-loader.php(
   2134): WP_Scripts->do_head_items() #6 /home/hagbaaco/public_html/wp-includes/
   script-loader.php(2253): print_head_scripts() #7 /home/hagbaaco/publ in /home/
   hagbaaco/public_html/wp-content/plugins/woo-
 * please help me
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-call-to-undefined-function-wc_string_to_bool%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-wc_string_to_bool/#post-12859279)
 * This looks like an issue with the [Woo Variations Gallery](https://wordpress.org/plugins/woo-variation-gallery/)
   free plugin. You will need to bring up the issue on [their support forums](https://wordpress.org/support/plugin/woo-variation-gallery/).
   You also may have debugging enabled which you can disable in `wp-config.php`,
   see [WordPress Debugging](https://wordpress.org/support/article/debugging-in-wordpress/)
   and the WP_DEBUG & WP_DEBUG_LOG flags.
 *  [manu1437](https://wordpress.org/support/users/manu1437/)
 * (@manu1437)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-wc_string_to_bool/#post-13604049)
 * **I am also getting this error. i am working on local server. same error getting
   
   please give some solution.
   
    Fatal error: Uncaught Error: Call to undefined function
   wc_string_to_bool() in C:\xampp\htdocs\fashionblock\wp-content\plugins\woo-variation-
   gallery\includes\hooks.php:54 Stack trace: #0 C:\xampp\htdocs\fashionblock\wp-
   includes\class-wp-hook.php(287): Woo_Variation_Gallery->{closure}(‘<script src
   =’ht…’, ‘ai1wm_util’, ‘[http://localhos…&#8217](http://localhos…&#8217);) #1 
   C:\xampp\htdocs\fashionblock\wp-includes\plugin.php(206): WP_Hook->apply_filters(‘
   <script src=’ht…’, Array) #2 C:\xampp\htdocs\fashionblock\wp-includes\class.wp-
   scripts.php(400): apply_filters(‘script_loader_t…’, ‘<script src=’ht…’, ‘ai1wm_util’,‘
   [http://localhos…&#8217](http://localhos…&#8217);) #3 C:\xampp\htdocs\fashionblock\
   wp-includes\class.wp-dependencies.php(116): WP_Scripts->do_item(‘ai1wm_util’,
   0) #4 C:\xampp\htdocs\fashionblock\wp-includes\class.wp-scripts.php(643): WP_Dependencies-
   >do_items(Array, 0) #5 C:\xampp\htdocs\fashionblock\wp-includes\script-loader.
   php(1841): WP_Scripts->do_head_items() #6 C:\xampp\htdocs\fashionblock\wp-includes\
   class-wp-hook.php(287): print_head_scripts(”) #7 C:\xa in C:\xampp\htdocs\fashionblock\
   wp-content\plugins\woo-variation-gallery\includes\hooks.php on line 54
    -  This reply was modified 5 years, 7 months ago by [manu1437](https://wordpress.org/support/users/manu1437/).

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

The topic ‘Fatal error: Uncaught Error: Call to undefined function wc_string_to_bool()’
is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [Not Accessible](https://wordpress.org/support/topic-tag/not-accessible/)
 * [site down](https://wordpress.org/support/topic-tag/site-down/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [manu1437](https://wordpress.org/support/users/manu1437/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-wc_string_to_bool/#post-13604049)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
