Fatal error: Call to undefined function - help?!

Discussion in 'WordPress' started by idan_k, Jan 5, 2011.

  1. #1
    Hi,

    I own a WP website.
    I created a new file named: landingpage.php
    on this template page im planning to create my CB products landing page.
    now - i created another footer.php page named: footerlanding.php so i could edit the things i dont want (infolinks, small logo, etc..)
    when im targeting my landingpahe.php to this footerlanding.php with this code:
    <?php get_footerlanding(); ?> i rcive this error:

    Fatal error: Call to undefined function get_footerlanding() in /home5/erticl1/public_html/wp-content/themes/ik2/landingpage.php on line 39

    what should i do?
    thanks..

    idan
     
    idan_k, Jan 5, 2011 IP
  2. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the error message, it is clear that your theme, which is called ik2 on landingpage.php there is incorrect code online 39

    What you can do is, upload your saved copy of current theme.
     
    KimiGermany, Jan 5, 2011 IP
  3. daljit

    daljit Well-Known Member

    Messages:
    312
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    hi i got the issue this is due to <?php get_footer( $name ); ?> $name is the name of the footer file.This will work fine.....if u still not able to do that then post me.
     
    daljit, Jan 6, 2011 IP