• 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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    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

    (@nicodm)

    OK, thank you ! But how can i replace this fonction in my header.php ?

    @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

    (@cbutlerjr)

    OK, thank you ! But how can i replace this fonction in my header.php ?

    As @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.