Today I logged into a client’s WordPress site as an administrator and still couldn’t update a single plugin. At the top of the dashboard WordPress showed: “WordPress 7.1.5 is available! Please notify the site administrator.” I was the site administrator. Here’s what causes this, how to fix it in two minutes, and why it can be a warning sign that the site was hacked.
The short answer
WordPress only shows “Please notify the site administrator” to users who are not allowed to update. If you’re an admin and still see it, something has removed the update permission from everyone. Nine times out of ten that’s one line in wp-config.php:
define( 'DISALLOW_FILE_MODS', true );
This constant blocks installing, updating and deleting plugins, themes and WordPress itself — for every user, including administrators. You’ll also notice the Dashboard → Updates menu item disappears and there’s no “Add New Plugin” button.
How to fix it
- Back up the site first from your hosting panel.
- Open
wp-config.phpin your host’s File Manager or via FTP (it’s in the site’s root folder). - Search for
DISALLOW_FILE_MODS. Delete the line or changetruetofalse. - Keep the safe one:
define( 'DISALLOW_FILE_EDIT', true );only hides the built-in code editor, which is good security. Make sure it sits above the line/* That's all, stop editing! */. - Save, refresh wp-admin, and Dashboard → Updates comes back.
Don’t confuse these similar settings
AUTOMATIC_UPDATER_DISABLED— stops automatic background updates only. You can still update by hand.WP_AUTO_UPDATE_CORE— controls which core updates install automatically ('minor'is a sensible default).DISALLOW_FILE_EDIT— hides Appearance → Theme File Editor. Keep it on.DISALLOW_FILE_MODS— the one that locks everyone out of updates.
If the line isn’t in wp-config.php
Check these, in this order:
- Snippet plugins (Code Snippets, WPCode): look for snippets mentioning updates or
remove_cap. wp-content/mu-plugins/: “must-use” plugins run silently and don’t appear in the normal Plugins list.- Your host: some managed hosts lock updates and run them for you.
- Your role: in Users, confirm you’re really an Administrator and not an Editor.
Why this can be a sign of a hacked site
On the site I fixed, the lines had been added after require_once ABSPATH . 'wp-settings.php'; — a place no normal setup puts them — and the site had hundreds of spam comments waiting. Malware often adds DISALLOW_FILE_MODS so the owner can’t update or remove the infected plugin. If that sounds familiar:
- Run a malware scan (Wordfence or your host’s scanner).
- Check Users for administrators you don’t recognise.
- Change the database password and generate new security keys.
- Update in a safe order: plugins → page builder → WordPress core, checking the site after each step.
What I learned
“I’m the admin but I can’t update” is almost never a user-role problem — it’s a site-wide lock. Read the exact wording of the notice: WordPress is telling you which permission is missing. And when config lines appear in strange places, treat it as a security check, not just a settings fix.
Locked out of updates or worried your site has been compromised? My WordPress maintenance service covers safe updates, backups and security checks every month.