Title: Possibly deleted page.php&#8230;=)
Last modified: August 19, 2016

---

# Possibly deleted page.php…=)

 *  [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/)
 * 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

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196866)
 * 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.
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196870)
 * 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
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196876)
 * 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!
 * =)
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196882)
 * 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.
 *  Thread Starter [intcon](https://wordpress.org/support/users/intcon/)
 * (@intcon)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196892)
 * bless you…=)
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196926)
 * Let me know it that worked….

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Possibly deleted page.php…=)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/possibly-deleted-pagephp/#post-1196926)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
