Parse Error on Login Page
-
I am the webmaster currently for the following website msdlawaz.com and am having difficulty logging into the website’s dashboard. This is a self hosted WordPress site. Also the site has somehow been hacked to display spam links for Cialis and Viagra. I will post a separate thread though asking how to remove that.
When I go to the login page msdlawaz.com/wp-admin this is what I see:
Parse error: syntax error, unexpected $end in /home/content/82/9493782/html/wp-admin/includes/update.php on line 234
I have opened the file in question here are the contents of the file.
<?php
/**
* Update/Install Plugin/Theme administration panel.
*
* @package WordPress
* @subpackage Administration
*/if ( ! defined( ‘IFRAME_REQUEST’ ) && isset( $_GET[‘action’] ) && in_array( $_GET[‘action’], array( ‘update-selected’, ‘activate-plugin’, ‘update-selected-themes’ ) ) )
define( ‘IFRAME_REQUEST’, true );/** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . ‘/admin.php’ );include_once ABSPATH . ‘wp-admin/includes/class-wp-upgrader.php’;
if ( isset($_GET[‘action’]) ) {
$plugin = isset($_REQUEST[‘plugin’]) ? trim($_REQUEST[‘plugin’]) : ”;
$theme = isset($_REQUEST[‘theme’]) ? urldecode($_REQUEST[‘theme’]) : ”;
$action = isset($_REQUEST[‘action’]) ? $_REQUEST[‘action’] : ”;if ( ‘update-selected’ == $action ) {
if ( ! current_user_can( ‘update_plugins’ ) )
wp_die( __( ‘You do not have sufficient permissions to update plugins for this site.’ ) );check_admin_referer( ‘bulk-update-plugins’ );
if ( isset( $_GET[‘plugins’] ) )
$plugins = explode( ‘,’, stripslashes($_GET[‘plugins’]) );
elseif ( isset( $_POST[‘checked’] ) )
$plugins = (array) $_POST[‘checked’];
else
$plugins = array();$plugins = array_map(‘urldecode’, $plugins);
$url = ‘update.php?action=update-selected&plugins=’ . urlencode(implode(‘,’, $plugins));
$nonce = ‘bulk-update-plugins’;wp_enqueue_script( ‘updates’ );
iframe_header();$upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( ‘nonce’, ‘url’ ) ) );
$upgrader->bulk_upgrade( $plugins );iframe_footer();
} elseif ( ‘upgrade-plugin’ == $action ) {
if ( ! current_user_can(‘update_plugins’) )
wp_die(__(‘You do not have sufficient permissions to update plugins for this site.’));check_admin_referer(‘upgrade-plugin_’ . $plugin);
$title = __(‘Update Plugin’);
$parent_file = ‘plugins.php’;
$submenu_file = ‘plugins.php’;wp_enqueue_script( ‘updates’ );
require_once(ABSPATH . ‘wp-admin/admin-header.php’);$nonce = ‘upgrade-plugin_’ . $plugin;
$url = ‘update.php?action=upgrade-plugin&plugin=’ . urlencode( $plugin );$upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact(‘title’, ‘nonce’, ‘url’, ‘plugin’) ) );
$upgrader->upgrade($plugin);include(ABSPATH . ‘wp-admin/admin-footer.php’);
} elseif (‘activate-plugin’ == $action ) {
if ( ! current_user_can(‘update_plugins’) )
wp_die(__(‘You do not have sufficient permissions to update plugins for this site.’));check_admin_referer(‘activate-plugin_’ . $plugin);
if ( ! isset($_GET[‘failure’]) && ! isset($_GET[‘success’]) ) {
wp_redirect( admin_url(‘update.php?action=activate-plugin&failure=true&plugin=’ . urlencode( $plugin ) . ‘&_wpnonce=’ . $_GET[‘_wpnonce’]) );
activate_plugin( $plugin, ”, ! empty( $_GET[‘networkwide’] ), true );
wp_redirect( admin_url(‘update.php?action=activate-plugin&success=true&plugin=’ . urlencode( $plugin ) . ‘&_wpnonce=’ . $_GET[‘_wpnonce’]) );
die();
}
iframe_header( __(‘Plugin Reactivation’), true );
if ( isset($_GET[‘success’]) )
echo ‘<p>’ . __(‘Plugin reactivated successfully.’) . ‘</p>’;if ( isset($_GET[‘failure’]) ){
echo ‘<p>’ . __(‘Plugin failed to reactivate due to a fatal error.’) . ‘</p>’;error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
@ini_set(‘display_errors’, true); //Ensure that Fatal errors are displayed.
wp_register_plugin_realpath( WP_PLUGIN_DIR . ‘/’ . $plugin );
include( WP_PLUGIN_DIR . ‘/’ . $plugin );
}
iframe_footer();
} elseif ( ‘install-plugin’ == $action ) {if ( ! current_user_can(‘install_plugins’) )
wp_die( __( ‘You do not have sufficient permissions to install plugins on this site.’ ) );include_once ABSPATH . ‘wp-admin/includes/plugin-install.php’; //for plugins_api..
check_admin_referer(‘install-plugin_’ . $plugin);
$api = plugins_api(‘plugin_information’, array(‘slug’ => $plugin, ‘fields’ => array(‘sections’ => false) ) ); //Save on a bit of bandwidth.if ( is_wp_error($api) )
wp_die($api);$title = __(‘Plugin Install’);
$parent_file = ‘plugins.php’;
$submenu_file = ‘plugin-install.php’;
require_once(ABSPATH . ‘wp-admin/admin-header.php’);
- The topic ‘Parse Error on Login Page’ is closed to new replies.