Title: Error in header.php
Last modified: March 10, 2019

---

# Error in header.php

 *  [nicodm](https://wordpress.org/support/users/nicodm/)
 * (@nicodm)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/)
 * Hello,
 * I’m a little noob, but i need some help. In my header.php file, in my theme, 
   I have an error :”Uncaught Error: Call to undefined function wpmem_inc_sidebar()
   in wp-content/themes/afisst/header.php:115
    Stack trace: #0 wp-includes/template.
   php(704): require_once() #1 wp-includes/template.php(653): load_template(‘/home/
   creoimagi…’, true) #2 wp-includes/general-template.php(41): locate_template(Array,
   true) #3 wp-content/themes/afisst/page.php(14): get_header() #4 wp-includes/template-
   loader.php(77): include(‘/home/creoimagi…’) #5 wp-blog-header.php(19): require_once(‘/
   home/creoimagi…’) #6 index.php(17): require(‘/home/creoimagi…’) #7 {main} thrown”
 * Someone, can help me, please ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-header-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/#post-11298555)
 * I’m not sure why you’re using `wpmem_inc_sidebar()` in your header.php file, 
   but does not exist in the plugin. It is an obsolete function and has been for
   quite some time.
 *  Thread Starter [nicodm](https://wordpress.org/support/users/nicodm/)
 * (@nicodm)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/#post-11299141)
 * OK, thank you ! But how can i replace this fonction in my header.php ?
 *  [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * (@shinerweb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/#post-11299950)
 * [@nicodm](https://wordpress.org/support/users/nicodm/) You could either go back
   to the theme developer and (a) check for an updated theme (b) ask them to update
   the theme (c) create a child theme copy and then copy the header.php file to 
   your child theme, open it up and remove/replace the function with the latest 
   version if there is one.
 * Those are your only choices…
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/#post-11301116)
 * > OK, thank you ! But how can i replace this fonction in my header.php ?
 * As [@shinerweb](https://wordpress.org/support/users/shinerweb/) mentioned, this
   is in a theme file. If you put it in the theme file yourself, take it out. If
   it was in the theme as-is, contact the theme developer and tell them they are
   using something that is significantly out of date.

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

The topic ‘Error in header.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-header-php/#post-11301116)
 * Status: not resolved