Skip to main content
+44 7575 472931[email protected]
HostaccentKnowledge BaseHosting, websites, SEO, and growth

No Valid Plugins Were Found: 5 Fixes That Work (2026)

No valid plugins were found means WordPress can't see a plugin header in your zip. Fix bundles, nested folders and theme zips in minutes, with WP-CLI steps.

WordPressBeginner Guide
No valid plugins were found error fixed by repacking a nested WordPress plugin zip so the main PHP file sits on top

Quick Answer: "The package could not be installed. No valid plugins were found." means WordPress opened your zip and couldn't find a PHP file with a Plugin Name: header at its top level. Usually the zip is a marketplace bundle with the real plugin zip inside, a folder nested twice, or a theme. Find the folder whose main .php file carries that header, zip that folder alone, and upload again.

Last verified: November 2026, against WordPress 7.1.5 and the current WP-CLI wp plugin install command.

You clicked Install Now, watched "Unpacking the package…" scroll by, and got a red "Plugin install failed." line instead of an Activate button. Annoying, but your site is fine. Nothing was installed or changed, and this is one of the easier WordPress errors to clear.

According to Hostaccent's own support data (November 2026), our engineers resolve 20-30 client issues every day, and bounced plugin uploads are a regular part of that pile. This is the routine we run, written so you can do it yourself in about 5 minutes.

What "No Valid Plugins Were Found" Actually Means

It means one check failed: WordPress unpacked your file into a temporary folder, found no plugin, and deleted the files again.

The check is a function called check_package() in the Plugin_Upgrader class, and it has been doing the same job since WordPress 3.3.

As of WordPress 7.1, the plugin installer accepts a zip only when a .php file sitting directly inside the package's top folder contains a Plugin Name: header. It does not search subfolders. A plugin buried one level too deep, or packed inside a second zip, fails this check instantly, even when all 100% of the files inside are healthy.

That header is just a comment block at the top of the main file. According to the WordPress plugin header requirements, Plugin Name is the only line you strictly need:

php
<?php
/**
 * Plugin Name: My Booking Widget
 * Version:     2.4.1
 * Requires PHP: 7.4
 */

Is my plugin broken, or is it just the zip?

Almost always the zip. If the file came from a paid marketplace or installed fine elsewhere, packaging is your problem. A corrupt download throws a different message, covered below.

The Causes, Ranked by How Often We See Them

Four packaging mistakes cause nearly every case, and the first one beats the rest by a wide margin. Here they are in the order they turn up in our queue.

  1. A marketplace bundle uploaded as-is. Premium plugins often download as an "all files" package: documentation, a licence and the actual plugin as a second zip inside.
  2. A folder nested twice. The layout looks like my-plugin.zip > my-plugin/ > my-plugin/ > my-plugin.php.
  3. A theme uploaded under Plugins. Theme zips carry style.css and functions.php but no Plugin Name: header.
  4. A missing or broken header. The header was deleted, misspelled ("Plugin-Name"), or sits in a subfolder file.
What's at the top of the zipLikely causeFix
PDFs, a "Documentation" folder, another .zipMarketplace bundleUpload the inner plugin zip
One folder holding another folder of the same nameDouble nestingRe-zip the inner folder
style.css with a Theme Name: lineIt's a themeUse Appearance > Themes
One folder, .php files, no headerMissing headerRestore the header comment

In the plugin-install tickets our team handles, the single most common cause by far is the marketplace bundle: someone buys a premium plugin, uploads the 12 MB download straight from their Downloads folder, and WordPress finds documentation instead of code. Opening the zip for 10 seconds would have shown the real plugin zip sitting inside.

From the Ticket Queue: According to Hostaccent's support-queue data (November 2026), WordPress issues make up about 30% of our monthly tickets, ahead of SSL problems at 20%. In the failed-install tickets inside that 30%, packaging is the usual culprit, not the server.

Pro Tip: A GitHub "Download ZIP" unpacks to repo-name-main. Rename that folder to the plugin's real slug before re-zipping, or later updates may land as a second copy.

Step-by-Step Fixes for Each Cause

Every fix ends the same way: a zip with one folder at the top and the main .php file directly inside it. Start by looking in the zip before you change anything.

Step 1: Look inside the zip first

On Windows, double-click the zip to browse it without extracting. On a Mac, Safari may have already unzipped it into a folder. On a server, list the contents:

bash
unzip -l my-plugin.zip | head -20

A healthy plugin shows paths like my-plugin/my-plugin.php and my-plugin/includes/. Anything else points you to one of the fixes below.

Fix A: Pull the plugin out of a marketplace bundle

Extract the full download. Inside, look for a zip named after the plugin, often plugin-name.zip or plugin-name-installable.zip. Upload that inner file at Plugins > Add New Plugin > Upload Plugin, and don't unzip it first.

Fix B: Repair a double-nested folder

Extract the zip, then open folders until you reach the one that holds the main .php file. Compress that folder itself (right-click, then Compress on a Mac or Send to > Compressed folder on Windows). From a terminal:

bash
unzip my-plugin.zip -d tmp
cd tmp/my-plugin
zip -r ~/my-plugin-fixed.zip my-plugin

Re-zipping fixes most WordPress plugin zip upload errors in about 2 minutes. The rule is simple: compress the folder that directly contains the file with the Plugin Name: header, never the folder around it. If the new zip opens to one folder and that folder shows the main .php file, the installer will accept it.

Fix C: Install a theme where themes go

If the top folder holds a style.css with a Theme Name: line, it's a theme. Go to Appearance > Themes > Add New Theme > Upload Theme instead. Premium themes sometimes ship a companion plugin as a separate zip in the same download.

Fix D: Restore a missing plugin header

Find which file holds the header, if any:

bash
grep -rl "Plugin Name:" --include=*.php my-plugin

No result means the header is gone, so add the comment block shown earlier to the top of the main file. If the header turns up in a subfolder, that subfolder is the real plugin, and that's the one to zip.

Fix E: Skip the uploader with SFTP, File Manager or WP-CLI

Extract the zip on your computer, then upload the plugin folder to wp-content/plugins/ over SFTP or cPanel File Manager, so the path reads wp-content/plugins/my-plugin/my-plugin.php. Set folders to 755 and files to 644, then activate the plugin from the Plugins screen.

Using WP-CLI, our team installs plugins from local zips across client sites in bulk. It runs the same package check, so it won't hide a bad zip, but it fails fast and sidesteps browser upload limits:

bash
wp plugin install ~/my-plugin-fixed.zip --activate

The WP-CLI plugin install documentation covers flags such as --force.

Live site and no time to experiment? Our engineers fix this exact install error for a small one-time fee, and you'll see the exact quote before anyone touches your site. Hosted with Hostaccent? Then problems like this are simply covered by support, free. Have an engineer fix it

Professional help available

Still seeing the mail error?

Share the bounce message, affected domain, and sending route. We can investigate DNS, authentication, reputation, and server configuration across providers.

Request email helpExplore email supportHosted elsewhere? One-time paid support is available after scope and price confirmation.

Errors That Look Similar but Need a Different Fix

If your message doesn't end in "no valid plugins", the zip check isn't your problem.

Exact messageWhat it really meansFix
"The uploaded file exceeds the upload_max_filesize directive in php.ini."Zip is bigger than PHP's upload capRaise the limit
"The link you followed has expired."Zip is bigger than post_max_sizeRaise post_max_size
"Installation failed: Could not create directory."Folder permissions or ownershipFix the directory error
"The plugin does not have a valid header."Shown at activation, usually a nested folder copied in by FTPMove the folder up one level
"Incompatible Archive"Not a real zip, often a login page saved as .zipDownload it again

PHP ships with upload_max_filesize at 2 MB and post_max_size at 8 MB, per the PHP core php.ini directives. Check your real limit under Media > Add New Media File, where WordPress prints "Maximum upload file size". In cPanel, open MultiPHP INI Editor and set both values to 64M, keeping post_max_size equal to or larger than the upload limit.

On tightly capped shared plans, big uploads can also trip 508 resource limit errors. And if a plugin installs, activates, and the site starts returning a white screen, that's a code conflict, covered in our 500 Internal Server Error guide for WordPress.

Insider Insight: When a hacked site lands in our queue, one of the first places we look is wp-content/plugins for nulled premium plugins. Those "free" re-packaged copies are the sloppiest zips around and the most common way malware gets in. If one fails to install, treat that as a favour.

How to Confirm the Fix and Stop It Coming Back

You'll know it worked when the installer shows "Plugin installed successfully." with an Activate Plugin button. Then confirm the plugin appears under Plugins with its header's name and version, its folder has a clean slug (no -main, no folder inside a folder), and it's active:

bash
wp plugin list --status=active
wp plugin get my-plugin --field=version

The 10-Second Zip Test

Before any upload, open the zip and ask three questions. Is there exactly one folder at the top? Is there a .php file directly inside that folder? Does that file start with a Plugin Name: line? Three yeses mean the upload will pass the package check. Any "no" tells you which fix above to use, so you never see the error again.

Prevention is habit: download from the vendor's own account page, keep the original zip, and test new plugins on staging. If the site feels heavier after a new plugin, our WordPress site slow diagnosis guide and the steps to fix high TTFB in WordPress show whether it's the plugin or the server.

Fixed It, or Still Stuck? Your Next Step

If the plugin is active now, keep one habit: run the 10-second zip test before each upload, because no valid plugins were found is always a packaging problem you can spot before WordPress does. On a properly managed host, untangling bad zips, raising upload limits and fixing folder permissions is support's job, not yours. Hostaccent's WordPress Hosting on Medium, $8.99/mo renews at the same $8.99/mo, with 24/7 help from our own engineers and a 30-day money-back guarantee. It's sized for single sites and small portfolios, so a busy store may want a higher tier.

Still stuck? Open a ticket with our engineers and you'll get the exact quote for the one-time fix before any work starts.

Frequently Asked Questions

Why does WordPress say no valid plugins were found for a plugin I just bought?

Because you most likely uploaded the full marketplace download rather than the plugin itself. Premium vendors bundle documentation, licence files and sometimes demo content together with the installable plugin, which sits inside as its own zip file. WordPress only looks at the top level of what you upload, finds no plugin header there, and stops. Extract the download, locate the inner zip named after the plugin, and upload that file without unzipping it.

Can I upload a plugin zip on a Mac without breaking it?

Yes, as long as you upload the original file or compress the right folder. Safari can unzip downloads automatically, leaving you with a folder instead of a zip. If that happens, right-click the plugin folder that directly contains the main .php file and choose Compress. Don't compress a parent folder around it. WordPress skips the hidden __MACOSX folder that macOS adds, so that folder won't cause the failure.

What is the maximum plugin zip size WordPress accepts?

WordPress itself sets no fixed limit. The cap comes from PHP's upload_max_filesize and post_max_size settings on your server, which default to 2 MB and 8 MB but are often raised by hosts. You can see your current limit under Media > Add New Media File. If a plugin is larger, raise both settings in your PHP configuration, or upload it over SFTP or with WP-CLI, which avoid the browser upload entirely.

Is it safe to install a plugin manually through FTP?

Yes, it's the same files in the same place, just copied by you instead of the installer. The only real risks are putting the folder at the wrong depth or leaving wrong permissions. Make sure the path reads wp-content/plugins/plugin-name/plugin-name.php, set folders to 755 and files to 644, then activate from the Plugins screen. Keep a backup first if the site is live, as with any plugin change.

Why did my plugin install from GitHub fail?

GitHub's Download ZIP button packs the whole repository, so the plugin only installs when its main file sits at the repository root. Projects that keep the plugin code in a subfolder will fail the package check. Look on the Releases page for a built plugin zip first. If you must use the source download, rename the extracted folder to the plugin's slug and re-zip it.

Will this error break my live site?

No. The installer works in a temporary folder and deletes it when the package check fails, so nothing reaches your plugins directory and your live pages keep running exactly as before. The risk starts later, when a fixed zip installs and activates. A plugin that clashes with your theme or PHP version can cause errors then, so activate new plugins on staging first or during a quiet traffic window.

Professional help available

Still losing or rejecting mail? Let an email specialist trace the cause.

Share the bounce message, affected domain, and sending route. We can investigate DNS, authentication, reputation, and server configuration across providers.

  • No hosting transfer required
  • Scope confirmed before paid work
  • No changes before your approval
Request email helpExplore email supportHosted elsewhere? One-time paid support is available after scope and price confirmation.
Reviewed by

Hostaccent Editorial Team

Reviewed for technical accuracy and clarity before publication.

Last updated

Dec 2, 2026

HostAccent Editorial Team publishes practical hosting guides, operations checklists, and SEO-focused tutorials for businesses building international web presence.

Discussion

Have a question or tip about this topic? Share it below — your comment will appear after review.

Your email stays private and is only used for moderation.

Write for the Community

Have a tutorial, tip, or insight to share? Get published on the Hostaccent Blog with your name, bio, and website link.

Become a Contributor

Need a faster setup for this workflow?