I’m having the same issue. After implementing the code above, this is what was returned …
Vasyl Martyniuk This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ $basedir = dirname(__FILE__); if (file_exists($basedir . ‘/wp-config.php’)) { require $basedir . ‘/wp-config.php’; require ABSPATH . ‘wp-admin/includes/upgrade.php’; } else { echo ‘Please insert uninstall.php in the same folder where wp-config.php locates’; exit; //no more action } global $wpdb; if (is_multisite()) { //get all sites first and iterate through each $query = ‘SELECT blog_id FROM ‘ . $wpdb->blogs; $blog_list = $wpdb->get_results($query); if (is_array($blog_list)) { foreach ($blog_list as $blog) { $query = ‘DELETE FROM ‘ . $wpdb->get_blog_prefix($blog_id) . ‘options ‘; $query .= ‘WHERE option_name
= “aam_menu_role_administrator”‘; $wpdb->query($query); } } } else { $query = ‘DELETE FROM ‘ . $wpdb->options . ‘ ‘; $query .= ‘WHERE option_name
= “aam_menu_role_administrator”‘; $wpdb->query($query); } echo ‘Fix completed successfully!’;