Forums

[resolved] Dead Contact Link (7 posts)

  1. ssword0321
    Member
    Posted 1 year ago #

    I'm building a site using wordpress as my cms, and have everything working the way I want it to structurally. The only problem is that when you click on my contact button I get the error "Fatal error: Call to undefined function get_header() in /home/content/41/7378741/html/scottsword/contact/index.php on line 1"

    All my anchor tags are the same for my sprite menu they are all <!--a href="<?php bloginfo('url')?>/contact/--> the same for blog, portfolio, etc (minus the !--, I just threw that in so wp didn't compress my code when I tried to show you). All the links work except for contact. Perhaps wordpress doesn't recognize a php call named contact? Perhaps I'm looking over something very stupid.

    Here is a link to my site so you can see what I'm talking about http://www.scottsword.com

    Any help would be greatly appreciated.

    -Scott

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    so wp didn't compress my code when I tried to show you

    please use the 'code' button of this editor.

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

  3. Phil
    Member
    Posted 1 year ago #

  4. ssword0321
    Member
    Posted 1 year ago #

    Thank you, but neither one of those links helped because I have not made any changes to my index.php files. I used the snippets that wammi or whatever suggested and have the same problem. All of the links in my navigation work perfectly minus that one contact link. If the index file was some how compromised then all of them would be giving me an error.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Your contact page will be using page.php (assuming it is set to use the default Page template) - not index.php.

  6. ssword0321
    Member
    Posted 1 year ago #

    All my pages are set up individually, page-about.php, page-portfolio.php, and page-contact.php All work except for the contact page.

  7. ssword0321
    Member
    Posted 1 year ago #

    Never mind, I fixed it myself. I just change the permalink from .../contact/ to /contactme/ and it works fine.

Topic Closed

This topic has been closed to new replies.

About this Topic