• Cannot access my admin page at all, comes up with this message

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home/www/bubblepo/blog/wp-admin/includes/template.php on line 3273

    Help needed

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bubblepoker

    (@bubblepoker)

    }

    function _post_states($post) {
    $post_states = array();
    if ( isset($_GET[‘post_status’]) )
    $post_status = $_GET[‘post_status’];
    else
    $post_status = ”;

    if ( !empty($post->post_password) )
    $post_states[] = __(‘Password protected’);
    if ( ‘private’ == $post->post_status && ‘private’ != $post_status )
    $post_states[] = __(‘Private’);
    if ( ‘draft’ == $post->post_status && ‘draft’ != $post_status )
    $post_states[] = __(‘Draft’);
    if ( ‘pending’ == $post->post_status && ‘pending’ != $post_status )
    $post_states[] = __(‘Pending’);

    if ( ! empty($post_states) ) {
    $state_count = count($post_states);
    $i = 0;
    echo ‘ – ‘;
    foreach ( $post_states as $state ) {
    ++$i;
    ( $i == $state_count ) ? $sep = ” : $sep = ‘, ‘;
    echo “<span class=’post-state’>$state$sep</span>”;
    }
    }
    }

    function screen_meta($screen) {
    global $wp_meta_boxes, $_wp_contextual_help;

    $screen = str_replace(‘.php’, ”, $screen);
    $screen = str_replace(‘-new’, ”, $screen);
    $screen = str_replace(‘-add’, ”, $screen);
    $screen = apply_filters(‘screen_meta_screen’, $screen);

    $column_screens = get_column_headers($screen);
    $meta_screens = array(‘index’ => ‘dashboard’);

    if ( isset($meta_screens[$screen]) )
    $screen = $meta_screens[$screen];
    $show_screen = false;
    if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens) )
    $show_screen = true;
    ?>
    <div id=”screen-meta”>
    <?php
    if ( $show_screen ) :
    ?>
    <div id=”screen-options-wrap” class=”hidden”>
    <h5><?php _e(‘Show on screen’) ?></h5>
    <form id=”adv-settings” action=”” method=”get”>
    <div class=”metabox-prefs”>
    <?php
    if ( !meta_box_prefs($screen) && isset($column_screens) ) {
    manage_columns_prefs($screen);
    wp_nonce_field( ‘hiddencolumns’, ‘hiddencolumnsnonce’, false );
    }
    ?>
    <br class=”clear” />
    </div></form>
    </div>

    <?php
    endif;

    global $title;

    if ( !isset($_wp_contextual_help) )
    $_wp_contextual_help = array();

    if ( !isset($_wp_contextual_help[‘post’]) ) {
    $help = drag_drop_help();
    $help .= ‘<p>’ . __(‘Writing Posts‘) . ‘</p>’;
    $_wp_contextual_help[‘post’] = $help;
    }

    if ( !isset($_wp_contextual_help[‘page’]) ) {
    $help = drag_drop_help();
    $_wp_contextual_help[‘page’] = $help;
    }

    if ( !isset($_wp_contextual_help[‘dashboard’]) ) {
    $help = drag_drop_help();
    $_wp_contextual_help[‘dashboard’] = $help;
    }

    if ( !isset($_wp_contextual_help[‘link’]) ) {
    $help = drag_drop_help();
    $_wp_contextual_help[‘link’] = $help;
    }

    if ( !isset($_wp_contextual_help[‘options-general’]) )
    $_wp_contextual_help[‘options-general’] = __(‘General Settings‘);

    $_wp_contextual_help = apply_filters(‘contextual_help_list’, $_wp_contextual_help, $screen);
    ?>
    <div id=”contextual-help-wrap” class=”hidden”>
    <?php
    $contextual_help = ”;
    if ( isset($_wp_contextual_help[$screen]) ) {
    if ( !empty($title) )
    $contextual_help .= ‘<h5>’ . sprintf(__(‘Get help with “%s”‘), $title) . ‘</h5>’;
    else
    $contextual_help .= ‘<h5>’ . __(‘Get help with this page’) . ‘</h5>’;
    $contextual_help .= ‘<div class=”metabox-prefs”>’ . $_wp_contextual_help[$screen] . “</div>\n”;

    $contextual_help .= ‘<h5>’ . __(‘Other Help’) . ‘</h5>’;
    } else {
    $contextual_help .= ‘<h5>’ . __(‘Help’) . ‘</h5>’;
    }

    $contextual_help .= ‘<div class=”metabox-prefs”>’;
    $contextual_help .= __(‘Documentation‘);
    $contextual_help .= ‘
    ‘;
    $contextual_help .= __(‘Support Forums‘);
    $contextual_help .= “</div>\n”;
    echo apply_filters(‘contextual_help’, $contextual_help, $screen);
    ?>
    </div>

    <div id=”screen-meta-links”>
    <div id=”contextual-help-link-wrap” class=”hide-if-no-js screen-meta-toggle”>
    <?php _e(‘Help’) ?>
    </div>
    <?php if ( $show_screen ) { ?>
    <div id=”screen-options-link-wrap” class=”hide-if-no-js screen-meta-toggle”>
    <?php _e(‘Screen Options’) ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <?php
    }

    /**
    * Add contextual help text for a page
    *
    * @since 2.7.0
    *
    * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
    * @param string $help Arbitrary help text
    */
    function add_contextual_help($screen, $help) {
    global $_wp_contextual_help;

    if ( !isset($_wp_contextual_help) )
    $_wp_contextual_help = array();

    $_wp_contextual_help[$screen] = $help;
    }

    function drag_drop_help() {
    return ‘
    <p>’ . __(‘Most of the modules on this screen can be moved. If you hover your mouse over the title bar of a module you’ll notice the 4 arrow cursor appears to let you know it is movable. Click on it, hold down the mouse button and start dragging the module to a new location. As you drag the module, notice the dotted gray box that also moves. This box indicates where the module will be placed when you release the mouse button.’) . ‘</p>
    <p>’ . __(‘The same modules can be expanded and collapsed by clicking once on their title bar and also completely hidden from the Screen Options tab.’) . ‘</p>
    ‘;
    }

    function screen_icon($name = ”) {
    global $parent_file, $hook_suffix;

    if ( empty($name) ) {
    if ( isset($parent_file) && !empty($parent_file) )
    $name = substr($parent_file, 0, -4);
    else
    $name = str_replace(array(‘.php’, ‘-new’, ‘-add’), ”, $hook_suffix);
    }
    unset($hook_suffix);
    ?>
    <div id=”icon-<?php echo $name; ?>” class=”icon32″>
    </div>
    <?php
    }

    ?>

    Thread Starter bubblepoker

    (@bubblepoker)

    Anyone help me out please, need to access blog very soon!

    Have you tried to upload a new template.php file?

    Clear the browser cache on computer and try again.

    Did you edit your redirect settings?
    Read this: http://codex.wordpress.org/Changing_The_Site_URL

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot Access Admin wp-admin’ is closed to new replies.