Support » Fixing WordPress » get_header error

  • I have extensive experience with wordpress, but this is a first for me. My current site is showing the following error:
    Warning: Cannot modify header information – headers already sent by (output started at /homepages/39/d239156155/htdocs/JP/wp-content/themes/theme18070/front-page.php:1) in /homepages/39/d239156155/htdocs/JP/wp-content/themes/theme18070/header.php on line 15

    I have looked at front-page.php:1 and this is what it shows:

    <?php get_header(); ?>
    	<div  id='pageList'>
    		<section class="container">
    			<article id='pageHolder_1'>
    			</article>
    			<article id='pageHolder_2'>
    			</article>
    		</section>
    	</div>
    <?php get_footer(); ?>

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I have looked at the spacing, and it sll seems good. My site is
    http://www.jpwebdesign.us/

    thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter joeypolice

    (@joeypolice)

    Esmi, yes I looked at that post and adjusted the code accordingly…but it still did not work.

    <?php get_header();
    ?>
    	<div  id='pageList'>
    		<section class="container">
    			<article id='pageHolder_1'>
    			</article>
    			<article id='pageHolder_2'>
    			</article>
    		</section>
    	</div>
    <?php get_footer();
    ?>

    Adjusted what code? The issue is probably “invisible” characters at the top of the file.

    Thread Starter joeypolice

    (@joeypolice)

    No. I opened the file in notepad and made sure there were no extra spaces or lines.

    Thread Starter joeypolice

    (@joeypolice)

    I just retyped in notepad. Am I missing something else that you can think of?

    Please try re-reading the page at the link I posted above.

    Thread Starter joeypolice

    (@joeypolice)

    Based on the above link, I followed the instructions and re-uploaded. This is the code. Thank you for your help, I just really need to get this fixed. It is still not working.

    <?php get_header();
    ?>
    <div  id='pageList'>
    <section class="container">
    <article id='pageHolder_1'>
    </article>
    <article id='pageHolder_2'>
    </article>
    </section>
    </div>
    <?php get_footer();
    ?>

    The whole point about invisible characters is that we can’t see them.

    Thread Starter joeypolice

    (@joeypolice)

    Esmi,

    Again, thanks for your help. Based on the instructions I have followed, can you think of any other reason it is not working?

    Thread Starter joeypolice

    (@joeypolice)

    SOLVED!

    All I had to do was retype the front-page.php in a notepad and replace the original. Copy/paste would not work.

    Now, I have a redirect loop happening. Ugh

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘get_header error’ is closed to new replies.