• When I try to login to WP admin via wp-login.php, I receive the following error message :
    “Parse error: syntax error, unexpected $end in /home/content/d/o/n/donsms2/html/wp-admin/includes/update.php on line 59”

    The update.php file at line 59 is as follows :
    “} 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 = __(‘Upgrade Plugin’);
    $parent_file = ‘plugins.php’;
    $submenu_file = ‘plugins.php’;
    require_once(‘./admin-header.php’);

    $nonce = ‘upgrade-plugin_’ . $plugin;
    $url = ‘update.php?action=upgrade-plugin&plugin=’ . $plugin;
    [—————————–this is line 59 ———————-]
    $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact(‘title’, ‘nonce’, ‘url’, ‘plugin’) ) );
    $upgrader->upgrade($plugin);

    include(‘./admin-footer.php’);

    } elseif (‘activate-plugin’ == $action ) {“

    I don’t think the problem is directly related to the update.php file, but I can’t see where the problem is coming from. This error may be linked to the fact that I am currently moving the hosting of my blog from an old url to another one (https://www.mychinesebooks.com)

    I suppose this error could be due to one of the following:
    – htaccess file blocking access
    – incorrect wordpress site url written in the admin panel (i have updated the site URL in the wp-options table, in the wp-config.php file, I have also updated guid in the wp-posts table to have the correct URL)
    – plugins not working (->so i have tried moving plugins from the plugins folder to another temp location to see if this does anything)
    – PHP version of new host too high

    I have also looked at :
    https://codex.www.ads-software.com/Changing_The_Site_URL
    https://codex.www.ads-software.com/Login_Trouble

    Any ideas?
    Not being able to access the admin panel is a pain.

    Thanks for any useful pointers

  • The topic ‘can't login to wp-login.php, parse error problem’ is closed to new replies.