WordPress.org

Ready to get started?Download WordPress

Forums

Possibly deleted page.php...=) (7 posts)

  1. intcon
    Member
    Posted 5 years ago #

    so back last week, when i didn't know anything about WP...i made a change to the page.php page and possibly the wrong page.php page as well, and uploaded it possibly to the wrong spot even. =) i'm older and wiser now.

    the problem is, i can't remember exactly what i've done...when I go to pages in my dashboard, there they are...when I go to edit one however I get this..Fatal error: Call to undefined function: get_header() in /home/.chat/farmer11/barbaradoyen.com/wp-admin/page.php on line 1
    I can quick edit the page, view the page, but I can't EDIT the page...any ideas what I've done wrong?

    carrie

  2. Download a fresh copy of your theme and get page.php from it and replace it and/or compare the files.

    If you dropped the old page.php somewhere else, it might not hurt anything, but it's a good idea to find it and delete it, especially if it's in the root of your webserver.

  3. intcon
    Member
    Posted 5 years ago #

    If i download the theme's page.php, and upload it into the wp-content/themes/nameoftheme/ file...would that affect the wp-admin file that the error is coming up with in the above error msg?

    carrie

  4. intcon
    Member
    Posted 5 years ago #

    any ideas? i have two page.php pages..
    one starts with `<?php get_header(); ?>
    <div class="art-contentLayout">
    <div class="art-content">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="art-Post">`
    the other

    <?php get_header(); ?>
    <div class="contentLayout">
    <div class="sidebar1">
    
    					<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>

    which one goes where?

    thanks!

    =)

  5. It sounds like you put a theme page.php in place of WP admin page.php, so upload a new copy of the theme page.php to your theme, and then download WP again, and get just the page.php out of wp-admin and replace that on your web server. Either of thos code snips could be from the theme page.php; neither is from a wp-admin page.php.

  6. intcon
    Member
    Posted 5 years ago #

    bless you...=)

  7. Let me know it that worked....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.