Help needed

Discussion in 'PHP' started by ZCore13, Dec 3, 2009.

  1. #1
    Hi,

    I hope someone can help me. I killed my Wordpress site while doing an upgrade to the newest version. I'm not sure what happened, but when it got to be time to re-activate the plugins, I get the following message and and site and all access to the admin section is down.

    This is a copy of the first few lines of the admin file:

    <?php
    /**
     * WordPress Administration Bootstrap
     *
     * @package WordPress
     * @subpackage Administration
     */
    
    /**
     * In WordPress Administration Panels
     *
     * @since unknown
     */
    define('WP_ADMIN', TRUE);
    
    if ( defined('ABSPATH') )
    	require_once(ABSPATH . 'wp-load.php');
    else
    	require_once('../wp-load.php');
    
    if ( get_option('db_version') != $wp_db_version ) {
    	wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
    	exit;
    }
    
    require_once(ABSPATH . 'wp-admin/includes/admin.php');
    
    auth_redirect();
    
    nocache_headers();
    
    update_category_cache();
    
    $posts_per_page = get_option('posts_per_page');
    $what_to_show = get_option('what_to_show');
    $date_format = get_option('date_format');
    $time_format = get_option('time_format');
    Code (markup):
    Can anyone help??? Thanks.
     
    ZCore13, Dec 3, 2009 IP
  2. sloddl

    sloddl Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it can't find the function "get_option()" you must include it in this file.
     
    sloddl, Dec 3, 2009 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You say you've upgraded, but by the looks of it not all of the files have been overwritten. Delete everything except for the wp-content folder and the wp-config.php file, and then upload a new install via ftp

    This should fix it
     
    JAY6390, Dec 3, 2009 IP