Plesk

Unable to change login settings of WordPress instance: Cannot read property ‘login’ of undefined

Symptoms

Cause

Corrupted WordPress instance database.

Resolution

  1. Log into Plesk.

  2. Open Domains > example.com > WordPress instance > Database > necessary database > open in phpMyAdmin > example_usermeta.

  3. Click Insert button:

  4. Type the following:

    First query:

    user_id - 1
    meta_key - example_capabilities
    meta_value - a:1:{s:13:"administrator";b:1;}

    The second query:

    user_id - 1
    meta_key - example_user_level
    meta_value - 10

  5. Click Go:

Note: If the table does not exist, the last backup should be restored or WordPress Support Contacted, to further assistance to reacreate the table.