Title: fatal error call to undefined function in header.php
Last modified: August 30, 2016

---

# fatal error call to undefined function in header.php

 *  Resolved [karluschold](https://wordpress.org/support/users/karluschold/)
 * (@karluschold)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-in-headerphp/)
 * Just updated everything (wordpress, portfolio press, all plugins) and followed
   the suggestions in portfolio press to set up the new verion correctly.
 * I have a child theme that appears to be working for the most part, but its header.
   php is causing the following message to appear on my site (and nothing else):“
   Fatal error: Call to undefined function of_get_option() in /home/karluschold/
   karluschold.com/web/wp-content/themes/ku2/header.php on line 50”
    Line 50 reads“
   <?php if ( of_get_option(‘logo’, false) ) { ?>”
 * I thought maybe it was bad lines in my pre-update based header.php, so I remove
   it and just copied the header.php directly from Portfolio press into my child
   theme to start making my changes from the beginning again. However, while this
   file work in Portfolio Press it causes the same error in my child theme.
 * Is there somewhere I need to go to define this function and if so, what/how should
   it be defined?
    “of_get_option” does not appear in any other files in Portfolio
   Press or my child theme (except Footer.php which appears to cause a similar error
   if I remove header.php all together.).

Viewing 1 replies (of 1 total)

 *  Theme Author [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * (@downstairsdev)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-in-headerphp/#post-6208005)
 * of_get_option is no longer used in the latest version of this theme.
 * You would use portfoliopress_get_option.
 * See the latest header.php:
    [https://github.com/devinsays/portfolio-press/blob/master/header.php](https://github.com/devinsays/portfolio-press/blob/master/header.php)

Viewing 1 replies (of 1 total)

The topic ‘fatal error call to undefined function in header.php’ is closed to new
replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/portfolio-press/2.8.0/screenshot.
   jpg)
 * Portfolio Press
 * [Support Threads](https://wordpress.org/support/theme/portfolio-press/)
 * [Active Topics](https://wordpress.org/support/theme/portfolio-press/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/portfolio-press/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/portfolio-press/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [header](https://wordpress.org/support/topic-tag/header/)

 * 1 reply
 * 2 participants
 * Last reply from: [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-in-headerphp/#post-6208005)
 * Status: resolved