• I’ve built a site that is ready to port over to live production. On demo site everything works perfect. But now as I’m trying to take it live (i’ve imported everything and uploaded the theme) but found the following error on the homepage

    Fatal error: Call to undefined function get_sidebar1() in?/home/endles12/public_html/wp-content/themes/endless/index.php?on line?8

    site is endlesssytlescc.com

    thanks for any assistance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • There isn’t a native get_sidebar1() function within WordPress. Perhaps that should be get_sidebar('1') (if the theme contains a sidebar-1.php file)?

    Thread Starter malibu06

    (@malibu06)

    we built a sidebar1.php as part of the theme so figured

    get_sidebar1() would pull it

    Nope – it needs to be get_sidebar('1') with a sidebar-1.php file.

    Hi,

    It is due to the theme endless which is not compatible with your wordpress version. Kindly check with default theme of wordpress or compatible theme with your installed wordpress version.

    Thanks,

    Shane G.

    Thread Starter malibu06

    (@malibu06)

    esmi – i renamed the sidebar1 to sidebar-1 and changed the code to get_sidebar('1') and everything worked.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Call to undefined function’ is closed to new replies.