Title: Theme Error
Last modified: September 27, 2021

---

# Theme Error

 *  [ita21](https://wordpress.org/support/users/ita21/)
 * (@ita21)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/theme-error-49/)
 * Hello I am having an issue with my webiste, I get a fatal error and when i check
   the function.php file I see that is missing, the error i get is this:
 * `Fatal error: Uncaught Error: Call to undefined function cs_get_option() in /
   home/wp-content/themes/prague/header.php:12 Stack trace: #0 /home/wp-includes/
   template.php(722): require_once() #1 /home/wp-includes/template.php(671): load_template('/
   home//...', true) #2 /home//wp-includes/general-template.php(41): locate_template(
   Array, true) #3 /home//wp-content/themes/prague/page.php(10): get_header() #4/
   home//wp-includes/template-loader.php(98): include('/home/...') #5 /home//wp-
   blog-header.php(19): require_once('/home/...') #6 /home/index.php(17): require('/
   home/...') #7 {main} thrown in /home/wp-content/themes/prague/header.php on line
   12`
 * How can i solve this?

Viewing 1 replies (of 1 total)

 *  [yogeshyadav20](https://wordpress.org/support/users/yogeshyadav20/)
 * (@yogeshyadav20)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/theme-error-49/#post-14912001)
 * Hi [@ita21](https://wordpress.org/support/users/ita21/)
 * Just pass your function in **action hook after_setup_theme**
 * Like this
 *     ```
       add_action( 'after_setup_theme', 'constants' );
   
       function constants() {
         $blogValue = get_option( 'blogs_creators', '' );
         define('BLOGS_CREATORS', $blogValue );
       }
       ```
   
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Theme Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [yogeshyadav20](https://wordpress.org/support/users/yogeshyadav20/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/theme-error-49/#post-14912001)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
