Skip to content
Skip to main content
Ahosting Logo
  • Hosting
    • WordPress Hosting
      Fast, secure hosting for WordPress sites
    • Web Hosting
      Reliable, affordable hosting for sites
    • FFMpeg Hosting
      Fast hosting for FFmpeg projects
    • Reseller Hosting
      Start hosting biz with white-label plans
    • VPS Hosting
      Scalable VPS with full control & power
    • Dedicated Server
      High-power servers for max security
    • WooCommerce Hosting
      Fast hosting for WooCommerce shops
  • Domain
    • Register a Domain
      Secure your domain name in minutes
    • Domain Transfer
      Move domains to Ahosting with ease
    • Premium SSL Certificate
      Enterprise SSL to build customer trust
  • Support
    • Submit A Ticket
      Expert 24/7 help from our support team
    • Abuse Report
      Report abuse to keep network safe
    • Knowledge Base
      Quick answers via step-by-step guides
  • Company
    • Blog
      Expert articles to power your online growth
    • Compare Hosts
      Side-by-side comparison
    • Datacenter
      Secure, high tech datacenter for hosting
    • About Us
      Learn about our mission, values & team
    • Contact Us
      Contact sales for plans, pricing & advice
    • Sitemap
      Find info fast with our clear site map
My Account
Ahosting Logo
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • FFMpeg Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Server
    • WooCommerce Hosting
  • Domain
    • Register a Domain
    • Domain Transfer
    • Premium SSL Certificate
  • Support
    • Knowledge Base
    • Abuse Report
    • Submit A Ticket
  • Company
    • About Us
    • Contact Us
    • Blog
    • Sitemap
    • Datacenter
  • Legal
    • Privacy Policy
    • Terms of Service
    • Acceptable Use Policy
    • Service Level Agreement
    • Resource Abuse Policy
My Account

AHosting Blog

Author: Matt Chrust

Matt Chrust

Director of Business Development, AHosting Matt has led business development at AHosting since the company’s founding in 2002. He writes about WordPress hosting infrastructure, server performance, and the evolving requirements of WordPress sites at scale.
  • 502 Bad Gateway WordPress Error: Who Sent It and What Died (2026)

    502 Bad Gateway WordPress Error: Who Sent It and What Died (2026)

    • 502 Bad Gateway WordPress Errors: A Proxy Reporting That Something Behind It Failed
    • First Step: Work Out Who Sent the 502 Bad Gateway WordPress Page
      • A Cloudflare-branded page means your origin said it
      • A blank page means Cloudflare said it
      • A plain page from your own web server
    • Second Step: Match the Log to the Cause of the 502 Bad Gateway WordPress Error
      • Cause one: the worker was killed
      • Cause two: nothing is listening
      • Cause three: the response header was too big
      • Cause four: the backend gave up before the proxy did
    • Why a PHP Fatal Error Gives a 500, Not a 502 Bad Gateway WordPress Page
    • Why a Slow Request Is a 504, and What a Queue Looks Like Next to a 502 Bad Gateway WordPress Error
    • Find Your 502 Bad Gateway WordPress Cause in Two Clicks
    • What You Can Fix Yourself When WordPress Shows a 502 Bad Gateway
    • What a Host Has to Fix, and What to Send Support for a 502 Bad Gateway
    • How Long Does a 502 Bad Gateway WordPress Error Last?
    • Frequently Asked Questions: 502 Bad Gateway WordPress
      • How do you fix a 502 bad gateway WordPress error in 2026?
      • What does a 502 bad gateway WordPress error mean when the server runs nginx?
      • 502 vs 504: how do you tell a 502 bad gateway WordPress page from a timeout in 2026?
      • How long does a 502 bad gateway WordPress error last on shared hosting?
      • Why does a 502 bad gateway WordPress error appear only on wp-admin or checkout pages?
      • Does a PHP fatal error cause a 502 bad gateway WordPress page or a 500 error?
      • Cloudflare 502 vs origin 502: which one is your 502 bad gateway WordPress page in 2026?
      • Does AHosting show a 502 or a 508 when a WordPress site reaches its plan limits?
      • What should I send AHosting support when my site shows a 502 bad gateway?
      • Can a security plugin or a large cookie cause a 502 on AHosting WordPress hosting in 2026?
    TL;DR

    A 502 bad gateway WordPress error is a proxy reporting that the process behind it died, vanished or sent a broken answer. Find out who sent it, then read the log line: a PHP fatal error is a 500, and a slow request is a 504.

    Listen: why one 502 Bad Gateway page hides four different causes, and how the log tells them apart. By Matt Chrust, Director of Business Development, AHosting.

    502 Bad Gateway WordPress Errors: A Proxy Reporting That Something Behind It Failed

    A 502 bad gateway WordPress error is not a WordPress error. WordPress never prints it, because WordPress is not running when it happens. A server sitting in front of PHP asked for your page, got no valid answer, and reported that with status 502.

    That one fact reorders the whole troubleshooting job. Most guides start by disabling plugins. A plugin can be the reason a worker died, but the 502 itself only tells you that some hop lost contact with the hop on its right. The first job is to find which hop spoke, and the second is to read the line it wrote down.

    We reproduced the common causes on a small nginx and php-fpm lab and recorded the status code and the log line each one produced. The lab is one workstation with plain PHP scripts, with no WordPress install, and it is not LiteSpeed. Our shared servers run LiteSpeed, so read the log wording below as nginx wording and the mechanism as the part that carries over.

    Who prints a 500, a 502 or a 504 Four boxes in a row: browser, Cloudflare edge, web server, PHP worker running WordPress. The PHP worker prints a 500 when PHP fails. The web server prints a 502 when the worker died, is unreachable or sent a broken header, and a 504 when it waited too long. Cloudflare prints its own 502 when the origin answer is invalid. Browser Cloudflare Web server PHP worker runs WordPress 500 PHP ran and failed 502 or 504 no valid answer, or waited too long 502 or 504 branded = origin said it blank = Cloudflare said it The hop that prints the status is the hop that lost contact with the hop on its right.
    StatusWho prints itWhat happenedWhat produced it in the lab
    500The PHP sidePHP ran and failedAn undefined function, and an exhausted memory_limit
    502The proxy or web serverNo valid answer from the backendA killed worker, a stopped backend, an oversized response header, a backend timer that fired first
    503The proxy or web serverThe backend is unavailableNot tested in the lab
    504The proxy or web serverIt waited and gave upA script slower than the read timeout, and a request queued behind busy workers
    Status Code Map: which status each failure produced on nginx and php-fpm in our lab (one workstation, 2026-11-13).

    First Step: Work Out Who Sent the 502 Bad Gateway WordPress Page

    If your site sits behind Cloudflare, two different machines can print a 502, and they need opposite fixes. Cloudflare’s documentation separates them by how the page looks.

    A Cloudflare-branded page means your origin said it

    Cloudflare returns a branded 502 or 504 when your origin web server itself answered with a 502 or 504. Cloudflare only relayed it. Nothing in the Cloudflare dashboard will fix this one, so the next stop is the origin web server error log for the same minute.

    A blank page means Cloudflare said it

    A blank page with no branding is a 502 or 504 that Cloudflare produced. The documentation names two causes you can act on: an origin that serves gzip content but sends a wrong content-length header, and broken gzip output. It also names a third you cannot: a data center shifting traffic, which can cause a few seconds of 502 errors. Check the Cloudflare status page before you change anything at the origin.

    A plain page from your own web server

    A grey page reading 502 Bad Gateway with the server name underneath came from the web server in front of PHP. That is the case the rest of this guide is about. If you are unsure how Cloudflare and a LiteSpeed cache interact on your site, our LiteSpeed Cache and Cloudflare guide explains which layer serves what.

    Second Step: Match the Log to the Cause of the 502 Bad Gateway WordPress Error

    Every 502 we produced printed an identical grey page, so the page cannot tell the causes apart. The web server error log can. This table is the AHosting 502 Cause Map from the lab: one row per cause, the status it returned, and the log line that names it.

    CauseStatusError log line (nginx)Other evidence
    Worker killed mid-request (SIGKILL)502 in about 1 msConnection reset by peer while reading response header from upstreamphp-fpm log: child exited on signal 9 (SIGKILL)
    PHP backend stopped502 in about 1 msconnect() failed (Connection refused) while connecting to upstreamNo php-fpm process is listening
    Response header larger than the buffer502upstream sent too big header while reading response header from upstreamWorked at 3,000 and 3,900 bytes, failed at 9,000 bytes with a 4k buffer
    Backend timer fires before the proxy timer502 at 2.3 sConnection reset by peer while reading response header from upstreamphp-fpm request_terminate_timeout of 2 s against a 3 s proxy timeout
    AHosting 502 Cause Map: four causes, one status, four different log lines (nginx 1.31.6 with php-fpm, PHP 8.5.10, one workstation).

    Two rows print the same log line, and that is a real limit of the method. A killed worker and a backend timer that fired first both end in a reset connection. To separate them, read the php-fpm log: it names the signal when a worker dies, and the timer shows up as the request reaching a fixed duration.

    Cause one: the worker was killed

    A PHP worker can die for reasons PHP never gets to report, because a process that receives SIGKILL cannot catch it. The usual source is the kernel running out of memory and choosing a victim, a mechanism LWN describes as the out-of-memory killer. In the lab we sent the signal ourselves, and the visitor saw a 502 within a few milliseconds while php-fpm logged the signal and started a replacement worker.

    Cause two: nothing is listening

    When php-fpm was stopped, every request returned a 502 at once and the nginx log said connect() failed with connection refused. This is the cause where every page fails together. On a shared account you cannot restart the service yourself, so this is a ticket, and the log line is what makes the ticket short.

    Cause three: the response header was too big

    This one hides inside a working backend. The web server reads the first part of the reply into a buffer, and nginx documents that a header larger than the buffer makes the response invalid. In the lab a 3,900-byte Set-Cookie header passed against a 4k buffer, and a 9,000-byte one returned a 502 with the log line upstream sent too big header.

    A plugin that stuffs state into cookies can reach that size. The request-side version of the same problem is covered in our 400 Bad Request header and cookie guide. We did not test LiteSpeed, so we make no claim about its limit.

    Cause four: the backend gave up before the proxy did

    php-fpm has its own per-request kill timer, request_terminate_timeout, which is off by default. With it set to 2 seconds and the proxy timeout at 3 seconds, an 8-second script returned a 502 after 2.3 seconds. The backend killed its own worker first, so the proxy saw a reset connection instead of a slow one.

    Why a PHP Fatal Error Gives a 500, Not a 502 Bad Gateway WordPress Page

    Many guides blame PHP errors for a 502. The lab says otherwise. An undefined function returned a 500 with an empty body, and a script that exhausted memory_limit also returned a 500. In both cases the PHP worker survived, finished the request and told the web server it had failed. The web server then passed that status along.

    That separation is useful. A 500 means PHP ran, so the PHP error log holds the reason and WordPress can usually be debugged from inside. A 502 means PHP never completed the request, so the answer sits in the web server log and the process list. The two logs answer different questions, and reading the wrong one is how a 502 hunt wastes an afternoon.

    Resource limits follow the same pattern on our servers. A CloudLinux limit normally appears as a 508 page, not a 502, and our 508 Resource Limit Reached guide explains what the entry-process numbers mean.

    Why a Slow Request Is a 504, and What a Queue Looks Like Next to a 502 Bad Gateway WordPress Error

    A slow script produced the other status. The proxy waited, reached its read timeout and returned a 504 at 3.00 seconds. The nginx documentation defines that timer as the gap between two successive reads from the backend, with a default of 60 seconds, so a script that sends nothing for that long loses the request.

    A queue produced the same status. We ran a pool of two workers and sent three requests that each took 2 seconds. Two finished normally and the third waited for a free worker, then timed out as a 504 at 3.0 seconds. No process died, so no 502 appeared. The visitor sees a gateway error, but the cause is capacity.

    The remedy differs too. A 502 asks you to find what died. A 504 asks you to find what was slow, and our maximum execution time guide covers the PHP side of that question. If both statuses alternate on the same URL, the request is slow enough to be killed by a timer on some attempts and to time out on others.

    Find Your 502 Bad Gateway WordPress Cause in Two Clicks

    The checker below turns the first two steps into one answer. It tells you which log to open first. It does not diagnose your site, because only the log line can do that.

    Find Your 502 Cause

    Pick what you see, and the checker names the first thing to read.

    See the published plan limits

    What You Can Fix Yourself When WordPress Shows a 502 Bad Gateway

    Work in this order, and stop at the first step that changes the result.

    1. Reload once, then open the same URL in a private window. A single killed worker is replaced in moments, so a reload that works means the cause was one request.
    2. Check the Cloudflare status page if the error page is blank. Nothing at your origin needs to change when Cloudflare produced the page.
    3. Rename the plugins folder in the cPanel File Manager to switch every plugin off. If the 502 goes away, put the folder back and rename plugins one at a time to find the one that triggers it.
    4. Look at the cookies the site sets. A plugin that stores a long list in a cookie can push the response header over the web server buffer.
    5. Retry the failing action in smaller pieces. A large import, a bulk image regeneration or an export is a request that can outlive a timer, so run it in batches.

    A plugin that keeps killing its own worker is a code problem, and renaming it is the correct end of the self-service route. If the 502 persists with every plugin off, the cause sits below WordPress, and no setting inside WordPress can reach it.

    If the failures follow the account running out of room, the numbers matter. Our web hosting plans publish their CloudLinux limits so you can compare them with what the site actually uses, and a VPS gives you the logs and the service restarts that a shared account cannot.

    What a Host Has to Fix, and What to Send Support for a 502 Bad Gateway

    Three of the four causes live where a shared account cannot reach: a stopped PHP service, a worker killed by the kernel, and a server buffer or timer. Only the host can read those logs for your account, restart the service or change the limit. Your part is to make the ticket searchable.

    Send four items: the exact failing URL, the time of the error with your time zone, the status code, and whether the page carried Cloudflare branding. With a Cloudflare site, Cloudflare support also asks for the output of your domain’s /cdn-cgi/trace page, so open it and copy the result before you write.

    Add one sentence about what changed last: a plugin update, an import, a new cookie banner, a traffic campaign. The log line says what happened, and that sentence says why it started today.

    How Long Does a 502 Bad Gateway WordPress Error Last?

    It lasts exactly as long as its cause. A killed worker was replaced almost instantly in the lab, so the next request worked. A stopped backend failed every request until it was started again, and a request that trips a timer fails every time you repeat it. Reload twice before you decide which of the three you have.

    That pattern is the cheapest test in this guide. One failure that clears is a worker. Every page failing at once is a stopped backend. One URL failing every time is the request itself, and it needs its own fix, not a restart.

    Frequently Asked Questions: 502 Bad Gateway WordPress

    How do you fix a 502 bad gateway WordPress error in 2026?

    Specifically, find out who sent the page first, then match the web server log line to its cause. A Cloudflare-branded 502 means your origin sent it, a blank unbranded page means Cloudflare did, and the log lines in the cause map above separate a dead worker from a stopped backend from an oversized header.

    What does a 502 bad gateway WordPress error mean when the server runs nginx?

    In practice, it means the web server in front of PHP got no valid answer from PHP. On nginx the error log names the reason: connect() failed, Connection reset by peer, or upstream sent too big header. WordPress never prints the page itself, because it is not running when the 502 happens.

    502 vs 504: how do you tell a 502 bad gateway WordPress page from a timeout in 2026?

    In contrast to a 502, a 504 means the proxy waited and gave up, while a 502 means it got a broken answer or none at all. In the lab a script slower than the read timeout returned 504 at 3.00 seconds, and a killed worker returned 502 within a few milliseconds.

    How long does a 502 bad gateway WordPress error last on shared hosting?

    Overall, it lasts as long as its cause does. A single killed worker is replaced in moments and a reload works, while a stopped backend keeps returning 502 until someone restarts it. If the same URL fails on every reload, the request itself is the cause.

    Why does a 502 bad gateway WordPress error appear only on wp-admin or checkout pages?

    Specifically, those pages run the heaviest PHP and cannot be cached, so they reach a timer or a memory ceiling first. In the lab a php-fpm timer set below the proxy timer turned an 8-second script into a 502 after 2.3 seconds.

    Does a PHP fatal error cause a 502 bad gateway WordPress page or a 500 error?

    In fact, a PHP fatal error returns a 500, not a 502. In the lab an undefined function and an exhausted memory_limit both returned 500 with an empty body, and the 502 appeared only when the worker process itself died or could not be reached.

    Cloudflare 502 vs origin 502: which one is your 502 bad gateway WordPress page in 2026?

    However, the status code alone cannot tell you, because both are 502. Cloudflare documents that a Cloudflare-branded page means your origin returned the 502 or 504, and that an unbranded blank page means Cloudflare produced it, so the look of the page is the first clue.

    Does AHosting show a 502 or a 508 when a WordPress site reaches its plan limits?

    Fortunately, a plan limit normally shows as a 508 Resource Limit Is Reached page, which our 508 guide explains. A 502 therefore points at a crashed process, an unreachable backend or an oversized response header instead of a plan limit.

    What should I send AHosting support when my site shows a 502 bad gateway?

    Specifically, send the exact URL, the time of the error with your time zone, the status code, and whether the page carried Cloudflare branding. With those four items the matching log line can be found instead of guessed.

    Can a security plugin or a large cookie cause a 502 on AHosting WordPress hosting in 2026?

    Typically only when a response header grows larger than the web server buffer. In the lab a 9000-byte Set-Cookie header against a 4k buffer returned 502 while 3900 bytes passed, but we did not test LiteSpeed, so treat those numbers as nginx numbers.

    November 13, 2026
  • 403 Forbidden in WordPress: You Don’t Have Permission to Access This Resource (2026)

    403 Forbidden in WordPress: You Don’t Have Permission to Access This Resource (2026)

    • What a 403 Forbidden Error Means on a WordPress Site
      • 403 Forbidden vs Other Errors That Look Similar
    • Who Printed the Error Page: Server, WordPress or a Firewall
    • How We Tested Forbidden Errors: Ten Setups on Apache 2.4.66
    • 403 Forbidden Error Log Lines and What Each One Means
      • Why the Path in a 403 Forbidden Log Line Can Mislead
    • Which Forbidden Error Cause Fits Your Log Line
    • How to Fix a Forbidden Error in WordPress, Cause by Cause
      • 403 Forbidden From Permissions: Set 755 and 644, Not 777
      • 403 Forbidden From .htaccess or a Rewrite Rule
      • 403 Errors From a Folder With No Index File
      • 403 Forbidden From Ownership, Symlinks or a Firewall
    • Forbidden Errors on Shared Hosting: What Changes on an AHosting Account
    • When a Forbidden Error Is Not a Server File Problem
    • Frequently Asked Questions: 403 Forbidden in WordPress
      • How do you fix a 403 Forbidden error in WordPress in 2026?
      • What is the difference between a 403 Forbidden and a 404 Not Found error?
      • Why does my WordPress site show a 403 Forbidden error after a migration to AHosting in 2026?
      • What should I send AHosting support when my site shows a 403 Forbidden error?
      • Is chmod 777 the right fix for a 403 Forbidden error on AHosting shared hosting?
      • Why does only wp-admin show a 403 Forbidden error while the rest of the site loads?
      • ModSecurity vs .htaccess: which one caused my 403 Forbidden error?
      • What does Server unable to read htaccess file, denying access to be safe mean in a 403 Forbidden page?
      • Can a security plugin cause a 403 Forbidden error in WordPress in 2026?
      • 403 Forbidden vs Sorry you are not allowed to access this page: are they the same error?
    TL;DR

    A 403 Forbidden error means the web server understood the request and refused it. In my Apache lab, ten different setups printed the same page and left eight different outcomes in the error log, so the page alone cannot name the cause. Read the log line for the blocked request: a permission line points to file modes, a deny line points to .htaccess, a missing index line points to the folder, and no line at all points to a rewrite rule or a firewall.

    Listen: why one 403 Forbidden page hides ten different causes, and how to find yours. By Matt Chrust, Director of Business Development, AHosting.

    What a 403 Forbidden Error Means on a WordPress Site

    A 403 Forbidden error means the web server received your request, understood it and refused to serve it. On Apache the page reads Forbidden: You don’t have permission to access this resource, and it reads the same whether the cause is a file mode, a rule in .htaccess or a folder with no index file. In a lab on Apache 2.4.66, ten different setups printed that page and left eight different outcomes in the error log. This guide reads that log line and attaches a fix to each one.

    The message is accurate and almost useless. “Permission” suggests a login, but nothing in these tests involved a login. The server had a rule, a file mode or a missing file that said no, and the page does not say which. The error log does, and most guides never ask you to open it.

    403 Forbidden vs Other Errors That Look Similar

    A 404 means the server found nothing at that address. A 403 Forbidden means it found the request and declined it, so the file can exist and be perfectly healthy. In the lab, a file at mode 000 returned 403 while its neighbor at mode 644 returned 200. A 500 means the server could not run the rules at all: a Require ip line with the host-matching module missing returned 500, not 403, in the same lab.

    Who Printed the Error Page: Server, WordPress or a Firewall

    Several layers can answer with a 403, and each one has its own fix. Work out which layer answered before you change a single file. The table lists what each layer prints and where its evidence lives.

    Layer that answeredWhat the page looks likeWhere the evidence is
    Web server (Apache)A bare Forbidden heading and the sentence You don’t have permission to access this resource (lab, Apache 2.4.66)The web server error log
    WordPressA page titled WordPress › Error with the message inside a wp-die-message blockWordPress core, wp-includes/functions.php lines 4413 and 3920 in 7.1.4
    A firewall such as ModSecurityVaries by host. The log reads Access denied with code 403 and names a rule idThe error log or the firewall audit log
    A CDN or proxy in frontVaries. The response headers name who answeredThe server response header
    The host’s own custom pageThe host’s design. Our ahosting.net returns a page titled 403 Forbidden – AHostingThe same server log as the first row
    Who printed the 403 page, and where to look. Row 1 from the 2026-11-11 Apache lab; rows 2 and 5 from WordPress 7.1.4 source and a live request on 2026-11-11.

    The WordPress row matters because the wording is close. WordPress prints Sorry, you are not allowed to access this page after it has loaded and checked your user role, and that is a different problem with a different fix, covered in our guide to that message. The core source lives on GitHub in the 7.1.4 tag, and a wp_die page defaults to a 500 response unless the caller passes 403.

    How We Tested Forbidden Errors: Ten Setups on Apache 2.4.66

    I ran the stock Apache 2.4.66 that ships with macOS on one workstation, with a WordPress-shaped folder tree: wp-admin, wp-content/uploads and an xmlrpc file. The files were static, because a 403 happens before PHP runs. I broke the tree ten ways and recorded the status, the page and the error log line for each request.

    Two limits belong up front. This is not an AHosting server, and it is not LiteSpeed or CloudLinux. Log wording can differ on other servers, so treat the codes as Apache’s and the logic as general.

    Many causes, one 403 Forbidden page Diagram from the 2026-11-11 lab on Apache 2.4.66. Five groups of causes on the left each make Apache refuse the request. Apache prints one page: Forbidden, You do not have permission to access this resource. Eight of ten setups printed the identical 239-byte page. The error log held a different line for each cause, and none for a rewrite rule. Lab: many causes, one page File mode 000 or no read bit Folder without the execute bit Deny rule in .htaccess or rewrite [F] Folder with no index file Unreadable .htaccess file Apache refuses the request, status 403 Forbidden You do not have permission to access this resource Apache 2.4.66, one workstation, static files. Not an AHosting server.

    Eight of the ten setups returned the identical page, 239 bytes with the same checksum. The two that failed because Apache could not read an .htaccess file added one sentence to the page: Server unable to read htaccess file, denying access to be safe. That sentence is the only cause the page itself ever named.

    403 Forbidden Error Log Lines and What Each One Means

    The error log is where the eight outcomes separate. Find the line for your blocked request by its time and URL, then match its code in the table. The code is the part to search for; the path in it is yours.

    Lab setupError log outcomeCause class
    File at mode 000AH00132 file permissions deny server accessPermissions
    Folder at 644 (read, no execute)AH00035 search permissions are missing on a component of the pathPermissions
    Folder at mode 000, .htaccess checking onAH00529 unable to check htaccess file, ensure it is readable and that the folder is executablePermissions
    .htaccess at mode 000AH00529, same line, and the page gains the htaccess sentencePermissions
    Folder with no index file, Options -IndexesAH01276 Cannot serve directory: No matching DirectoryIndex foundIndex
    Require all denied for .php in uploadsAH01630 client denied by server configurationRule
    Require ip allowlist on wp-adminAH01630, same lineRule
    Old Order and Deny from all syntaxAH01797 client denied by server configuration (a different module)Rule
    Symlink with -FollowSymLinksAH00037 Symbolic link not allowed or link target not accessibleLink
    RewriteRule with the F flagNo error log line at all; only the access log shows the 403Rule
    Lab results: ten setups, one 403 page, eight log outcomes (Apache 2.4.66, 2026-11-11)

    Why the Path in a 403 Forbidden Log Line Can Mislead

    The permission line names a path, and it is not always the broken one. With the folder nox at mode 644, the log named the child path nox/sub as the one it could not search, while the missing execute bit was on nox itself. The Debian Reference describes the execute permission on a directory as what lets the server reach the files inside it. Read it as “something at or above this path lacks the bit”, then check each folder on the way down.

    In Python, the same refusal is called EACCES, Permission denied. The (13) in front of the Apache line is that number, which tells you the operating system refused the server, not an Apache rule.

    Which Forbidden Error Cause Fits Your Log Line

    Pick the log line you found and what fails, and the checker returns the likely cause and the first thing to look at. It uses only the lab results above.

    Match Your 403 Forbidden Log Line to a Cause

    Jump to the fix steps

    How to Fix a Forbidden Error in WordPress, Cause by Cause

    Fix only the cause the log named. Changing five things at once hides which one mattered, and some of the popular fixes make things worse.

    403 Forbidden From Permissions: Set 755 and 644, Not 777

    For the three permission lines, set folders to 755 and files to 644, starting at the folder the log named and walking up. In the lab a folder at 755 and a file at 644 served normally, and neither the fix nor the test needed 777. On our shared WordPress servers PHP runs as the account’s own cPanel user, measured across 38 processes on 2026-09-30, so a wider mode only exposes files to other users.

    403 Forbidden From .htaccess or a Rewrite Rule

    For a deny line, open the .htaccess in the blocked folder and in each parent, and look for Require all denied, Require ip, Deny from all or a RewriteRule ending in [F]. The Apache rewrite flag table defines F as Forbidden, return 403. A rewrite block leaves no error log line, so when the log is empty for a 403, search the rules for that flag before you suspect the files.

    403 Errors From a Folder With No Index File

    A folder with no index file and listing switched off returns 403 by design, and that is usually what you want for wp-content/uploads. Do not add Options +Indexes to make the message go away: it publishes a list of every file in the folder.

    403 Forbidden From Ownership, Symlinks or a Firewall

    LiteSpeed’s own 403 troubleshooting page lists a wrong file owner and a Force Strict Ownership setting that returns 403 when a file’s owner differs from the site’s owner. That is the usual result of a migration or a manual upload. A symlink block logs the AH00037 line above. A firewall block logs a ModSecurity line with a rule id, and only the host can read or change that rule.

    Forbidden Errors on Shared Hosting: What Changes on an AHosting Account

    On shared hosting you may not be able to read the server error log yourself. cPanel’s documentation says its Errors page shows up to 300 recent web server error entries, and that a host can enable or disable the page. If yours is switched off, the exact URL, the time and your IP are what let someone else find the line.

    Two things from our own records change the order of suspects. First, on our shared WordPress servers, only two files across all 530 docroots were not owned by their account user when measured on 2026-10-01, and both were one-off hand uploads. So an ownership block is rare unless the files came from a migration or an upload made as another user. Second, on one of our own Apache servers cPanel created a subdomain folder at mode 0750, which the web server could not traverse, and every request returned 403 until the folder was set to 0755.

    That second case is the folder-execute lesson from the lab, seen on a real account. If you manage a plan with room to grow, our shared web hosting plans run each account under its own user with CageFS isolation, which keeps one account’s files out of another’s reach.

    When a Forbidden Error Is Not a Server File Problem

    If the log shows a firewall line, or there is no log line at all and no rewrite rule, the block happened elsewhere. The ModSecurity project describes ModSecurity as an open-source web application firewall module, so a rule inside it can refuse a request that a perfectly healthy WordPress would have served. Admin screens that fail with a vague message often meet this block first; the same pattern explains many invalid JSON response errors.

    A host with a firewall can tell you which rule fired. Ask for the rule id, the time and whether it is a false positive, because rules differ from host to host and only the host can change one.

    Permission fixes also tie into updates. The same ownership fault that causes a 403 shows up as a prompt for credentials during updates, described in WordPress asking for FTP credentials. If you read your own logs, a VPS hosting plan gives you root access to the Apache or LiteSpeed logs, and our LiteSpeed hosting guide explains the server in front of most of our WordPress sites.

    If you are stuck, open a ticket with our WordPress hosting team and include the exact URL that fails, the time, your IP and whether one file, one folder or the whole site is affected. With those four items the matching log line can be found instead of guessed.

    Frequently Asked Questions: 403 Forbidden in WordPress

    How do you fix a 403 Forbidden error in WordPress in 2026?

    Specifically, read the web server error log line for the blocked request, because the same 403 Forbidden page comes from at least eight different causes. A permission line means set folders to 755 and files to 644, a deny line means find the rule in .htaccess, and a missing index line means add an index file or accept the block.

    What is the difference between a 403 Forbidden and a 404 Not Found error?

    In contrast to a 404, a 403 Forbidden means the server found the request and refused it, so the file may well exist. In the lab a file with mode 000 returned 403 while its sibling at mode 644 returned 200, and no file was missing in either case.

    Why does my WordPress site show a 403 Forbidden error after a migration to AHosting in 2026?

    Typically the migrated files kept the wrong owner or the wrong mode, so the web server cannot read them. LiteSpeed documents a 403 for files owned by the wrong user, so compare the owner of the new files with the account user, then reset folders to 755 and files to 644.

    What should I send AHosting support when my site shows a 403 Forbidden error?

    Specifically, send the exact URL that fails, the time of the request in your time zone, your own IP address and a note of whether one file, one folder or the whole site is affected. With those four items the matching line in the server error log can be found instead of guessed.

    Is chmod 777 the right fix for a 403 Forbidden error on AHosting shared hosting?

    In fact, no. On our shared WordPress servers PHP runs as the account own cPanel user, so a folder at 755 and a file at 644 are enough, and in the lab neither needed a wider mode. As a result 777 adds risk and does not remove the cause.

    Why does only wp-admin show a 403 Forbidden error while the rest of the site loads?

    Typically a rule is scoped to that folder: an IP allowlist, a security plugin rule or a firewall rule. In the lab a Require ip line in the wp-admin folder returned 403 for every address outside the list, and the public pages stayed at 200.

    ModSecurity vs .htaccess: which one caused my 403 Forbidden error?

    In practice the error log separates them. An .htaccess deny logs a client denied by server configuration line, while a ModSecurity block logs an Access denied with code 403 line that names a rule id, so only the log tells the two apart.

    What does Server unable to read htaccess file, denying access to be safe mean in a 403 Forbidden page?

    In other words, Apache could not open an .htaccess file in that folder or its path, so it refused every request there. In the lab this happened with an .htaccess at mode 000 and with a folder that lacked the execute bit, and a permission reset fixed both.

    Can a security plugin cause a 403 Forbidden error in WordPress in 2026?

    In practice, yes, indirectly. Plugins that write rules into .htaccess can add the same deny and rewrite rules the lab tested, so rename the plugin folder, test the page again and read the rules the plugin wrote before you remove anything.

    403 Forbidden vs Sorry you are not allowed to access this page: are they the same error?

    By contrast they come from different layers. The web server prints a bare Forbidden heading before WordPress loads, while WordPress prints Sorry you are not allowed to access this page after it loads and checks your user role.

    November 12, 2026
  • Unable to Create Directory wp-content/uploads: What the Error Really Means (2026)

    Unable to Create Directory wp-content/uploads: What the Error Really Means (2026)

    • What Does the Unable to Create Directory Error Mean in WordPress?
    • Why Unable to Create Directory Blames Permissions When Something Else Failed
      • Three Ways wp_mkdir_p Gives Up
    • Unable to Create Directory Lab Results: Five Causes, One Message
      • Unable to Create Directory Lab Results Table
      • What the Lab Shows About the Message
    • Read the Start of the Path in an Unable to Create Directory Message
      • What Each Path Start Points To
    • Unable to Create Directory on Shared Hosting: What Changes on a cPanel Account
      • Quota and Inode Limits Can Cause Unable to Create Directory
    • How to Fix Unable to Create Directory, Cause by Cause
      • Fix Unable to Create Directory After a Migration (Stale Upload Path)
      • Fix a File Sitting Where a Folder Belongs
      • Fix a Full Quota or Inode Limit
      • Check Ownership and Permissions Last
    • Unable to Create Directory vs the Other WordPress Upload Errors
    • Frequently Asked Questions: Unable to Create Directory
      • Why is WordPress unable to create directory wp-content/uploads in 2026?
      • Unable to create directory vs the uploaded file could not be moved: which error points to what?
      • Does chmod 777 fix unable to create directory on AHosting shared hosting in 2026?
      • How do I fix unable to create directory uploads/2026/11 after moving WordPress to a new host?
      • Why does unable to create directory appear when Site Health says the uploads directory is writable?
      • Can a full disk quota cause unable to create directory on an AHosting cPanel account?
      • Settings Media upload path vs the UPLOADS constant in wp-config.php: which one set my uploads folder?
      • What mode does WordPress give a new year and month folder inside wp-content/uploads?
      • How do I find the file that blocks unable to create directory in cPanel File Manager?
      • When should I ask AHosting support about unable to create directory in 2026?
    TL;DR

    The unable to create directory error means a mkdir call for the month folder in your uploads folder was refused, and WordPress throws away the reason. In my lab, five different causes printed the identical sentence, including a full disk on a writable folder. Read how the path in the message begins: wp-content/uploads points to a blocking file, quota or ownership, and a bare uploads/ points to a stale upload path.

    Listen: why five different problems print the same unable to create directory message, and how to find yours. By Matt Chrust, Director of Business Development, AHosting.

    What Does the Unable to Create Directory Error Mean in WordPress?

    The unable to create directory error means WordPress tried to make the month folder for an upload, such as wp-content/uploads/2026/11, and the operating system refused. The full message reads “Unable to create directory wp-content/uploads/2026/11. Is its parent directory writable by the server?” and it shows up in the Media Library next to a file that “has failed to upload”. WordPress asked once, got a no, and does not know why. The question in the second half of the sentence is a guess, not a diagnosis.

    WordPress 7.1.4 builds that sentence in two places. In wp-includes/functions.php, wp_upload_dir() builds it at line 2446, and wp_upload_bits() builds it again at line 2979. Plugins call the second function when they write a file into uploads, so an importer, a backup plugin or an image tool can print the message with no upload button involved.

    This post is based on a lab, not on a forum thread. I read the core source line by line, then triggered the error eight ways on a stock WordPress 7.1.4 install and wrote down what each one printed. Five different causes printed the identical sentence, including one where the folder was perfectly writable. The sections below show how to tell them apart from the one thing the message does give you: the start of the path.

    Why Unable to Create Directory Blames Permissions When Something Else Failed

    WordPress builds the upload path from two settings, the upload_path option and the year-and-month folder switch, then calls wp_mkdir_p() to make sure the folder exists. That function starts at line 2050. Its last real step, at line 2098, is a call to PHP’s mkdir written as @mkdir( $target, $dir_perms, true ). The leading at sign is PHP’s error control operator. It suppresses the warning PHP would otherwise raise, and that warning is where “Permission denied” or “No space left on device” would have been written down.

    When mkdir returns false, wp_mkdir_p() returns false at line 2114, and wp_upload_dir() turns that into the sentence at line 2446. The operating system’s reason is gone by then. I confirmed it from the other side: with PHP’s log_errors switched on, none of my failing uploads wrote a warning or a notice to the error log. Only the web server’s access lines appeared, so there is nothing in the log to search for.

    Three Ways wp_mkdir_p Gives Up

    • The path already exists but is not a directory. Line 2076 returns the result of @is_dir() for any existing path, so a file where a folder belongs gives false.
    • The path contains ../. Line 2080 refuses any path with a parent-folder step and returns false without calling mkdir.
    • The mkdir call itself fails, because the mode forbids writing, the filesystem is read-only or full, or a quota is exhausted.

    Only the third is the operating system saying no to a valid request. The first two are WordPress or the site’s own settings contradicting the folder tree, which is why chmod cannot fix them.

    Unable to Create Directory Lab Results: Five Causes, One Message

    The lab was stock WordPress 7.1.4 on PHP 8.5.10’s built-in server, with the SQLite integration plugin standing in for MySQL. PHP and the files belonged to the same operating system user, as they do on a cPanel account. For each run I logged in as an administrator, uploaded an 8-by-8 pixel PNG through the Media Library’s upload endpoint and recorded the message.

    What it is not: an AHosting server, a LiteSpeed setup or a real disk quota. The full-disk row uses a 2 MB disk image filled to zero bytes free, which produces the same kind of refusal a quota produces, but it is a stand-in and I say so.

    Unable to Create Directory Lab Results Table

    SetupWhat WordPress printedWhy
    Control: default settings, uploads writableUpload succeededMonth folder created with the parent’s mode, 0755
    Uploads folder at mode 0555, no month folder yetUnable to create directory wp-content/uploads/2026/11.mkdir refused, no write permission on the parent
    Month folder 2026/11 exists but is 0555The uploaded file could not be moved to wp-content/uploads/2026/11.Folder check passed, file write failed: a different message
    A regular file named 2026 sitting in uploadsUnable to create directory wp-content/uploads/2026/11.Path exists but is not a directory (line 2076)
    Year folder fine, a regular file named 11 inside itUnable to create directory wp-content/uploads/2026/11.Same check, one level down
    upload_path set to an absolute path from another serverUnable to create directory uploads/2026/11.mkdir failed outside the WordPress folder, so the path loses wp-content
    upload_path set to ../outsideUnable to create directory ../outside/2026/11.Parent step refused at line 2080
    Uploads folder 0755 and writable, on a full volumeUnable to create directory wp-content/uploads/2026/11.mkdir returned ENOSPC, no space left on device
    Unable to Create Directory Lab Results: WordPress 7.1.4, PHP 8.5.10 CLI server, one workstation, 2026-11-10. Every Unable to create directory message continues with “Is its parent directory writable by the server?” Not an AHosting server.

    What the Lab Shows About the Message

    Five of the eight rows print the same sentence: the locked folder, the two blocking files, the stale path and the full volume. In the last row the sentence asks whether the parent directory is writable, and it was. PHP’s is_writable() returned true, the mode was 0755 and the owner was the PHP user, yet mkdir failed with ENOSPC, which the shell reports as “No space left on device”. The message can be wrong about its own question.

    Two details are worth keeping. The “could not be moved” row is the only one that tells you the folder exists and the final write failed, which is a narrower problem. And a new folder copies its parent’s mode: a parent at 0770 produced 0770 month folders and a parent at 0700 produced 0700, which matches line 2093. A wrong mode on uploads therefore repeats itself every month.

    Five causes, one unable to create directory message Diagram from the 2026-11-10 lab on WordPress 7.1.4. Five causes on the left each make the mkdir call fail. wp_mkdir_p returns false and wp_upload_dir prints one sentence: Unable to create directory, followed by the path, then Is its parent directory writable by the server. The full-disk cause printed it on a folder that was writable. Lab: five causes, one sentence Folder not writable (mode 0555) A file where a folder belongs Stale upload_path outside WordPress A ../ in the upload path Volume full (ENOSPC), folder writable mkdir fails, wp_mkdir_p() returns false Unable to create directory wp-content/ uploads/2026/11. Is its parent directory writable by the server? WordPress 7.1.4, PHP 8.5.10 CLI server, one workstation. Not an AHosting server.

    Read the Start of the Path in an Unable to Create Directory Message

    The message does carry one piece of evidence, and it is easy to skim past. Lines 2438 to 2441 decide how the folder is printed. If the uploads base folder sits inside the WordPress folder, WordPress prints the path relative to it, which gives wp-content/uploads/2026/11. If it sits anywhere else, WordPress prints only wp_basename() of the base folder plus the year and month, which gives uploads/2026/11.

    So a message that begins with uploads/ and has no wp-content in front is telling you the uploads folder is outside the WordPress folder. In my lab that was the stale-path row. It is also what a site shows after a migration when the upload_path setting still holds an absolute path from the old server.

    What Each Path Start Points To

    The message path beginsWhat it meansCheck first
    wp-content/uploads/2026/11The default folder inside WordPressA file in the way, the folder mode, quota, inode limit
    uploads/2026/11, no wp-contentThe uploads base folder is outside the WordPress folderSettings, Media, Store uploads in this folder, then UPLOADS in wp-config.php
    wp-content/ and a different nameA custom folder inside WordPressThe same checks, on that folder
    ../ at the startA relative upload path with a parent stepClear the setting, because line 2080 refuses it
    Where to look first, by how the Unable to create directory path begins.

    WordPress hides the field that holds this setting unless it is not the default. The options-media.php screen shows “Store uploads in this folder” only when upload_path is set to something other than wp-content/uploads, or when upload_url_path is set (lines 118 to 127). If you can see that field in Settings, Media, the setting is not the default.

    Which Cause Fits Your Unable to Create Directory Message?

    Jump to the fix steps

    Unable to Create Directory on Shared Hosting: What Changes on a cPanel Account

    Search results for this message are dominated by answers written for a self-managed server. Several of the highest-ranking ones I read on 2026-11-10 tell you to run chown -R www-data:www-data on the folder. That advice assumes the web server runs as its own user. On an AHosting shared plan PHP runs as your own cPanel account user: when we counted on 2026-09-30, each of 38 PHP processes ran as the site user it served. There is no separate web user to hand the folder to.

    Ownership is also rarely the broken part. When we checked one shared server on 2026-10-01, exactly two files out of all 530 website folders were not owned by their account user, both one-off hand uploads. No routine path, such as an installer, a cPanel restore or a transfer, had left foreign-owned files behind.

    Quota and Inode Limits Can Cause Unable to Create Directory

    A quota is the cause that every green light misses. Linux quotas can limit both disk blocks and the number of files, called inodes, per user, as the Oracle Linux and FreeBSD documentation both describe. Python’s errno list names the matching errors EDQUOT, “Quota exceeded”, and ENOSPC, “No space left on device”. WordPress receives either one as a plain false from mkdir and prints the same sentence.

    Two of WordPress’s own checks cannot warn you. The Site Health line “The uploads directory” is wp_is_writable() on the base folder only (class-wp-debug-data.php, line 1757), so it reads Writable for a full account. On the shared server we measured on 2026-10-10, PHP’s disk_free_space() returned the free space of the whole partition, about 2,385 GB, not the account’s quota headroom, which is why the check in the disk space post reads good on every account. File counts matter too: see the inode limit post. The account’s temporary folder inside CageFS counts against both disk and inode quota.

    How to Fix Unable to Create Directory, Cause by Cause

    Work in this order. Each step is cheaper than the next, and the first two cannot be fixed by chmod at all. The widget above can tell you where to start.

    Fix Unable to Create Directory After a Migration (Stale Upload Path)

    If the message begins with uploads/ rather than wp-content/uploads/, open Settings, then Media. Clear the “Store uploads in this folder” field and save. An empty value means the default, because line 2471 treats an empty setting and wp-content/uploads the same way. Then check wp-config.php for a line that defines UPLOADS: line 2493 builds the folder as the WordPress path followed by that constant, so an old value there redirects uploads even when the setting is clear. This changes where new uploads go and does not move files already uploaded, so confirm older images still load.

    Fix a File Sitting Where a Folder Belongs

    Open your WordPress folder in cPanel File Manager and browse to wp-content/uploads. Look for an entry named after the year, 2026, or the month, 11, and check whether it is a folder or a file. Lab rows four and five show that a file in either spot prints the unable to create directory message even though the folder above it is writable. Rename the file rather than deleting it, reload the Media Library and upload again. Delete it only once you know nothing needs it.

    Fix a Full Quota or Inode Limit

    Open Disk Usage in cPanel and compare the account’s space and file counts with its plan limits. Old backups, cache folders and logs are the places to look first. Free some space or some files, then upload again. If the account sits at its plan ceiling and nothing is safe to remove, that is a plan question, not a WordPress setting.

    Check Ownership and Permissions Last

    WordPress’s file permissions guide documents 755 for folders and 644 for files. Check that the uploads folder belongs to your account user and is set to 755. Do not set 777: PHP runs as the owner, so the owner’s write bit is all it needs, and the full-volume row shows a wider mode would not have helped. A new month folder copies its parent’s mode, so correct uploads itself, not only the newest month.

    If the message still appears after these four checks, open a ticket with the exact message, including the path it starts with, and we will look at it with you. If you run your own VPS, the shell shows what WordPress hides: run mkdir as the PHP user and read the error it prints. That is how I confirmed the full-volume row.

    Unable to Create Directory vs the Other WordPress Upload Errors

    Four neighbors get mistaken for this one. Each prints its own message, and the message is the clue.

    • “The uploaded file could not be moved to wp-content/uploads/2026/11” means the folder exists and passed the check, but the final write failed. It was lab row three.
    • “Missing a temporary folder” means PHP could not store the incoming file before WordPress saw it. See the temporary folder post.
    • “Installation failed: Could not create directory” comes from plugin and theme installs, which go through WordPress’s filesystem API rather than the uploads folder. See the installation failed post.
    • “The server cannot process the image” means the upload worked and the image library failed afterwards. See the image processing post.

    Frequently Asked Questions: Unable to Create Directory

    Why is WordPress unable to create directory wp-content/uploads in 2026?

    Specifically, the server refused the mkdir call for the month folder, and WordPress discards the reason. In my lab the same sentence came from a locked folder, a file in the way, a stale upload path, a path with ../ in it and a full disk, so the message alone cannot name the cause.

    Unable to create directory vs the uploaded file could not be moved: which error points to what?

    In contrast to the first message, the could not be moved error means the month folder already exists and passed the check, and only the final file write failed. Unable to create directory means the folder itself could not be made, so look for a blocking file, a stale path or a quota before you look at the folder mode.

    Does chmod 777 fix unable to create directory on AHosting shared hosting in 2026?

    In practice, no, and you should not need it. PHP runs as your own cPanel account user, so the owner write bit on a 755 folder is enough. My full-disk lab row also printed the message on a writable 0755 folder, so a wider mode would not have changed anything.

    How do I fix unable to create directory uploads/2026/11 after moving WordPress to a new host?

    Specifically, a path that starts with uploads and has no wp-content in front means the uploads folder is outside the WordPress folder. Open Settings, then Media, clear the Store uploads in this folder field and save. Then check wp-config.php for a line that defines UPLOADS, because that constant also moves the folder.

    Why does unable to create directory appear when Site Health says the uploads directory is writable?

    Notably, Site Health tests only the base uploads folder, and only the permission bits. It never tries to create the month folder, so it cannot see a file named after the year or month, a full quota or a stale upload path. Each of those fails the real mkdir call while Site Health still reads Writable.

    Can a full disk quota cause unable to create directory on an AHosting cPanel account?

    Specifically, yes. A refused mkdir for a quota or for lack of space comes back to WordPress as a plain false, which prints the same sentence. My lab used a full disk image as a stand-in rather than a real quota, so check Disk Usage in cPanel and compare it with your plan limits.

    Settings Media upload path vs the UPLOADS constant in wp-config.php: which one set my uploads folder?

    Specifically, WordPress reads the upload_path option first and then, if wp-config.php defines UPLOADS, replaces the folder with the WordPress folder followed by that constant. If the Store uploads in this folder field is visible in Settings, Media, the option is not the default. Check both places.

    What mode does WordPress give a new year and month folder inside wp-content/uploads?

    Specifically, it copies the mode of the nearest existing parent folder. In my lab a parent at 0755 produced 0755 month folders, 0770 produced 0770 and 0700 produced 0700. As a result, a wrong mode on the uploads folder repeats itself in every new month folder.

    How do I find the file that blocks unable to create directory in cPanel File Manager?

    In practice, open wp-content/uploads in File Manager and look for an entry named after the year, such as 2026, or after the month, such as 11. Check whether that entry is a folder or a file. A file in that spot makes WordPress return false for the whole path, so rename it and upload again.

    When should I ask AHosting support about unable to create directory in 2026?

    Finally, ask after you have checked the start of the path, looked for a blocking file, compared Disk Usage with your plan and confirmed the folder is owned by your account at 755. Open a ticket with the exact message, including the path it starts with, and we will look at it with you.

    November 11, 2026
  • Maximum Execution Time of 30 Seconds Exceeded in WordPress: What the Number Tells You (2026)

    Maximum Execution Time of 30 Seconds Exceeded in WordPress: What the Number Tells You (2026)

    • What Does the Maximum Execution Time Exceeded Error Mean in WordPress?
      • Is the Maximum Execution Time Error a Memory Problem or a Timeout?
      • Where Does the Maximum Execution Time Error Appear?
    • Why the Number in the Message Matters
      • How to Read the Maximum Execution Time Ladder
      • Which WordPress Actions Restart the Maximum Execution Time Clock?
    • What a Lab Run Shows About the Time Clock
      • Does Waiting Count Toward the Maximum Execution Time?
    • How to Find What Was Running When the Maximum Execution Time Ran Out
      • What the File Path in the Message Tells You
      • What the Terminated Version of the Maximum Execution Time Message Means
    • Which Layer Set Your Maximum Execution Time? A Quick Checker
    • How to Raise the Execution Time on Shared Hosting
      • Check the Current Maximum Execution Time in Site Health
      • Set a New Limit With .user.ini or the MultiPHP INI Editor
    • When Raising the Maximum Execution Time Is the Wrong Fix
      • Run Long Jobs From the Command Line
      • What a Longer Limit Costs on a Shared Plan
    • A Checklist for the Maximum Execution Time Error
    • Frequently Asked Questions About the Maximum Execution Time Error
      • How do I fix the maximum execution time of 30 seconds exceeded error in WordPress in 2026?
      • What does the maximum execution time exceeded message mean when the number is 300 instead of 30?
      • Does AHosting let me raise the maximum execution time on shared hosting without a support ticket?
      • Maximum execution time vs memory limit in WordPress: which one did my site run out of?
      • Should I set max_execution_time to 0 in WordPress to stop the error for good?
      • WP-CLI vs wp-admin: why does the same import finish from the command line without a maximum execution time error?
      • Will AHosting support look at a maximum execution time error if I send the exact log line in 2026?
      • Does a slow remote API call count toward the maximum execution time on Linux hosting?
      • What does the terminated version of the maximum execution time message mean in 2026?
      • Can AHosting shared hosting plans handle long WordPress imports without hitting the maximum execution time?
    TL;DR

    Maximum execution time errors mean PHP stopped a script at its time limit. The number in the message tells you who set that limit: 30 is usually PHP or your host, while 300 or 600 means WordPress raised it.

    Listen: the number in a maximum execution time error tells you whether PHP, your host or WordPress set the limit. By Matt Chrust, Director of Business Development, AHosting.

    What Does the Maximum Execution Time Exceeded Error Mean in WordPress?

    The maximum execution time error means PHP stopped one script because it ran longer than the limit set for it. The full message reads “Maximum execution time of 30 seconds exceeded in”, followed by a file path and a line number, and the 30 is whatever limit was in force when the clock ran out. In most cases WordPress did not choose that number, and WordPress is not broken. One request, update or background task simply used up its allowance.

    That matters because the advice on most search results is a single line: raise the limit to 300 and move on. Sometimes that works. Often the limit that fired is not the one you changed, or the script was never going to finish, and the error comes back with a bigger number in it. This guide reads the number first, then finds what was running, and only then touches a setting.

    Is the Maximum Execution Time Error a Memory Problem or a Timeout?

    It is a timeout. Memory exhaustion has its own message, “Allowed memory size exhausted”, and its own limit, which our guide to the WordPress memory limit not working on shared hosting covers. One heavy task can hit both in turn, but they are separate counters, so raising one does nothing for the other. A site that meets both errors usually has a single job doing too much work in one request.

    Where Does the Maximum Execution Time Error Appear?

    On an admin screen it can show as plain text in the middle of an update, as the WordPress critical error page, or as a blank white screen when error display is off. Our white screen of death guide explains how to read the log when nothing is printed. When error logging is on, the full message goes to the PHP log, which on most cPanel accounts is a file named error_log in the folder of the script that failed, or wp-content/debug.log when WP_DEBUG_LOG is enabled.

    Why the Number in the Message Matters

    PHP prints the limit that was active when the timer fired, not the value in php.ini. The PHP manual documents a default of 30 seconds for max_execution_time, and it lists the setting as changeable in php.ini, in per-directory files and from inside a script. A script that calls set_time_limit() replaces the limit and, according to the set_time_limit manual page, restarts the count from zero. WordPress makes that call in several places, so the number in your message often names the layer that set it.

    Six set_time_limit calls in WordPress 7.1.4 can produce this error. The table gives each with its file and line.

    Number in the messageWho set itWhere in WordPress 7.1.4What can change it
    30PHP default, or your hostNot set by WordPressphp.ini, .user.ini or the MultiPHP INI Editor
    60WordPress, once per pingback it sendswp-includes/comment.php line 3585Fewer outbound links, or pingbacks turned off
    300WordPress, at the install step of a plugin or theme updatewp-admin/includes/class-wp-upgrader.php line 564Nothing in php.ini; fix disk space or package size
    300WordPress, during a core updatewp-admin/includes/update-core.php line 1360Nothing in php.ini; retry or update by hand
    300WordPress, in the file editor and the revision comparison screenwp-admin/includes/file.php line 550 and ajax-actions.php line 3611Nothing in php.ini; trim revisions or slow plugins
    600WordPress, in the background updaterwp-admin/includes/class-wp-automatic-updater.php line 553Nothing in php.ini; check the update log
    Any other numberA plugin, theme, script or host panelSearch wp-content for set_time_limit and ini_setThe code or setting that set it
    The Maximum Execution Time Ladder: which number came from which layer. Source: WordPress 7.1.4 core, read on 2026-11-09.

    How to Read the Maximum Execution Time Ladder

    Read the table from the top. A 30 means nothing has overridden the default for that request, so the value is PHP’s or your host’s. A 300 during an update is WordPress’s own allowance, and a php.ini edit will not change it, because the call runs after php.ini has been read. Any other number means something on your site set it on purpose.

    Which WordPress Actions Restart the Maximum Execution Time Clock?

    Core updates and plugin or theme installs restart it to 300 seconds. WordPress’s own comment explains why: the upgrade gets an additional 300 seconds because downloading and unpacking in WP_Upgrader::run() may already have used up the normal allowance. The background updater gets ten minutes, and the file editor and the revision comparison screen get five.

    The pingback sender restarts the clock at 60 seconds for each link it contacts, so a post with many outbound links can run well past 60 seconds in total without any single pingback timing out. Every one of these calls is wrapped in function_exists(), and PHP reports a disabled function as missing. We confirmed that locally with set_time_limit in disable_functions. A host that disables it therefore removes all of these extensions at once, and the plain default applies.

    What a Lab Run Shows About the Time Clock

    We tested the clock on PHP 8.5.10 on one Apple silicon workstation, not on an AHosting server. Each script had a limit of 2 seconds, so a result arrives in seconds instead of minutes. Busy loops kept wall time and CPU time equal.

    The maximum execution time clock restarts when set_time_limit is called Lab timeline on PHP 8.5.10. A busy script has a limit of 2 seconds. At 1.5 seconds it calls set_time_limit(2), which restarts the clock. It keeps running to 3.0 seconds and is killed at 3.5 seconds, two seconds after the restart. Without the call it would have been killed at 2.0 seconds. Lab run: limit 2 s, set_time_limit(2) called at 1.5 s 0 s 1 s 2 s 3 s 4 s work 1.5 s work 1.5 s (alive at 3.0 s) killed set_time_limit(2) at 1.5 s without the call: killed at 2.0 s measured: killed at 3.50 s PHP 8.5.10 CLI, busy loop, so wall time equals CPU time. Not an AHosting server.

    The diagram is scenario B in the table below. The script worked for 1.5 seconds, called set_time_limit(2), and the clock restarted. It then worked another 1.5 seconds, so it had been alive for 3.0 seconds against a limit of 2. The kill came at 3.50 seconds, which is two seconds after the restart.

    ScenarioLimitWhat happenedWall time
    A: busy loop2 sFatal error, Maximum execution time of 2 seconds exceeded1.99 s
    B: 1.5 s of work, then set_time_limit(2), then 3.0 s more work2 sSurvived to 3.0 s, killed in the third burst3.50 s
    C: sleep(6) and nothing else2 sKilled during the sleep (Apple silicon timer)2.00 s
    D: an HTTP request to a server that sleeps 6 s2 sFatal error in the 2+2 seconds (terminated) formNot timed
    Lab results, PHP 8.5.10 command line, Apple silicon, 2026-11-09. Each row is one run.

    Does Waiting Count Toward the Maximum Execution Time?

    It depends on the operating system, and the lab shows the trap. On the Apple silicon workstation a script that only called sleep(6) was killed at 2.00 seconds, so waiting counted. A Linux server behaves differently. The PHP manual says time spent outside the script itself, in system calls, stream operations and database queries, is not counted, except on Windows.

    The reason is in the PHP source. In zend_execute_API.c on the PHP-8.5 branch, the timer is created with setitimer using ITIMER_PROF, which counts CPU time. A code comment notes that ITIMER_PROF is broken on Apple silicon with macOS 14 and later, so there the code uses ITIMER_REAL, a wall clock. The Linux kernel’s itimer.c maps ITIMER_PROF to a CPU clock, and the Linux manual page describes it as the user plus system CPU time of the process.

    We did not run this on Linux. Linux builds with thread safety can use a different timer, which we did not read, so confirm the behavior on your own account with a small test script. The practical point holds either way: a script stuck waiting on a slow remote service may never reach this limit, and then it ends at the web server or proxy timeout, which produces a different error page. Our guide to the server cannot process the image describes the same two clocks.

    How to Find What Was Running When the Maximum Execution Time Ran Out

    The message ends with a file path and a line number. That is the line PHP was executing when the timer fired, which is not always the code that is slow. Treat it as a pointer to the layer, then confirm by repeating the action.

    What the File Path in the Message Tells You

    A path under wp-content/plugins names a plugin whose code was running at that instant. A path under wp-includes or wp-admin names WordPress itself, and the cause is usually a plugin or a large data set feeding it. In the lab on PHP 8.5.10 the fatal error also printed a stack trace listing the calls above that line. That trace is the most useful part when it appears, but do not count on it from older PHP versions.

    Match the path against the ladder. A path inside class-wp-upgrader.php during an update means the install step, so look at disk space and package size before you suspect a plugin. If the path is unhelpful, repeat the action once with WP_DEBUG and WP_DEBUG_LOG on, read wp-content/debug.log, and turn both off again afterward.

    What the Terminated Version of the Maximum Execution Time Message Means

    A second form reads “Maximum execution time of 30+2 seconds exceeded (terminated)”, and the path in it may be Unknown on line 0. The PHP manual documents a directive called hard_timeout, default 2 seconds, that starts when the normal limit is reached. PHP first tries to tear the script down cleanly. If the script is stuck, for example waiting on a network read, the hard timeout ends the process abruptly.

    In the lab, a script blocked reading from a socket produced the 2+2 form. Because hard_timeout is a system-level setting, you cannot change it from .user.ini, and raising it would not help anyway. The useful question is what the script was blocked on.

    Which Layer Set Your Maximum Execution Time? A Quick Checker

    Pick the number from your message and what you were doing when it appeared. The checker applies the ladder above. It does not read your server, so confirm any answer in the log and in Site Health.

    Which Layer Set Your Time Limit?

    Jump to the fix steps

    How to Raise the Execution Time on Shared Hosting

    Raise the limit only when the job is finite and legitimate: an import, a backup, a one-time migration step. For those, set a value a little above the time the job needs, not zero. WordPress’s own common errors page suggests a php.ini line or a php_value line in .htaccess. We have not tested php_value on our servers, so the steps below use the two methods we can stand behind.

    Check the Current Maximum Execution Time in Site Health

    Open Tools, then Site Health, then the Info tab, and expand Server. The row labeled PHP time limit is read with ini_get(‘max_execution_time’) for that request. Write the value down before you change anything, and read it again afterward. A value that did not move means the change never reached PHP, and no amount of retrying the job will help.

    Set a New Limit With .user.ini or the MultiPHP INI Editor

    The PHP manual says .user.ini files recognize settings in the INI_ALL, INI_PERDIR and INI_USER classes, and it lists max_execution_time as INI_ALL. Add one line to the .user.ini file in your site folder, for example max_execution_time = 120, or set the same directive in the MultiPHP INI Editor in cPanel. Choose the number from the job, not from habit.

    We have confirmed that a site-level .user.ini works for memory_limit on our servers. We have not separately confirmed max_execution_time, so the Site Health check above is the proof. PHP re-reads .user.ini files on a timer, user_ini.cache_ttl, which defaults to 300 seconds, so a change can take up to five minutes to appear. Remove the line when the job is finished.

    When Raising the Maximum Execution Time Is the Wrong Fix

    A higher limit hides a slow script; it does not speed it up. Three signs say stop: the error appears on ordinary page views, the number is one WordPress set itself (300 or 600) so your change cannot reach it, or the failure repeats at a larger number. In each case the work needs to shrink or move, not wait longer.

    Run Long Jobs From the Command Line

    A comment in WordPress core says max_execution_time defaults to 0 when PHP runs from the command line, and the code treats 0 as no limit. A job started with WP-CLI therefore has no PHP time limit unless a custom php.ini sets one. Check yours with php -r "echo ini_get('max_execution_time');". If your plan gives you command-line access, run the import or the cron event there. Our measured look at WP-Cron covers events that run long.

    What a Longer Limit Costs on a Shared Plan

    Every request that runs long holds an entry process for the whole time. The AHosting Silver shared plan lists 40 entry processes, so if 40 visitors each started a 300-second job, no slot would be free for anyone else. That is arithmetic, not a measurement. The practical rule is to raise the limit for a job you start yourself at a quiet hour, and to leave the default alone for the public site. Our guide to WordPress concurrent users on shared hosting shows how execution time divides into capacity.

    A Checklist for the Maximum Execution Time Error

    1. Copy the full message from the log, including the number, the file path and the line.
    2. Match the number to the ladder table, and use the checker if the source is unclear.
    3. Open Site Health and note the PHP time limit before changing anything.
    4. If WordPress set the number (300 or 600), check disk space, package size and slow plugins instead of php.ini.
    5. With a 30 and a finite job, set max_execution_time in .user.ini and confirm it in Site Health.
    6. For an open-ended job, split it into batches or run it from the command line.
    7. Remove the temporary setting when the job is done.

    If the same line keeps coming back after those steps, send us a ticket with the exact message, the number and the plugin path. That is enough for us to look at it with you. The plan pages list the entry processes you work within: WordPress hosting plans, shared web hosting, and VPS hosting for work that needs a server of its own.

    Frequently Asked Questions About the Maximum Execution Time Error

    How do I fix the maximum execution time of 30 seconds exceeded error in WordPress in 2026?

    Specifically, read the number, find what was running, and only then change a setting. A 30 means the PHP default or your host value applied, so for a finite job such as an import you can set max_execution_time in .user.ini or the MultiPHP INI Editor and confirm the new value under Tools, Site Health, Info, Server. If the job is open-ended, batch it or run it from the command line instead of raising the limit.

    What does the maximum execution time exceeded message mean when the number is 300 instead of 30?

    In practice, a 300 usually means WordPress raised the limit itself. In WordPress 7.1.4 the core updater, the plugin and theme install step, the file editor and the revision comparison screen each call set_time_limit with 300 seconds, and the background updater uses 600. A php.ini edit cannot change a value set that way, so look at disk space, package size and slow plugins instead.

    Does AHosting let me raise the maximum execution time on shared hosting without a support ticket?

    Typically yes, with one caveat we have not tested. We have confirmed that a site-level .user.ini file works for memory_limit on our servers, and the PHP manual lists max_execution_time in the same changeable class, so try that file or the MultiPHP INI Editor first. Then read PHP time limit in Site Health. If the value does not change, send a ticket with the number you tried.

    Maximum execution time vs memory limit in WordPress: which one did my site run out of?

    Specifically, read the first words of the error. Maximum execution time of N seconds exceeded is the clock, and Allowed memory size of N bytes exhausted is memory. They are separate counters, so raising one does nothing for the other, although one heavy task such as a large import can hit both in turn.

    Should I set max_execution_time to 0 in WordPress to stop the error for good?

    In other words, zero removes the limit, and that is rarely wise on a public site. A script that loops forever or waits forever then holds an entry process until the server or a proxy ends it. Use a finite number for a job you start yourself, and remove it when the job is done.

    WP-CLI vs wp-admin: why does the same import finish from the command line without a maximum execution time error?

    Notably, PHP run from the command line has no time limit by default. A comment in WordPress core states that max_execution_time defaults to 0 under the CLI, while a browser request uses the web limit. Check your command-line value with php -r followed by echo ini_get of max_execution_time, because a custom php.ini can still set one.

    Will AHosting support look at a maximum execution time error if I send the exact log line in 2026?

    Indeed, send a ticket with the full message, the number, the file path and what you were doing when it appeared. That is enough for us to look at it with you. A screenshot of the visual error alone is not enough, because the path and line number identify the code that was running.

    Does a slow remote API call count toward the maximum execution time on Linux hosting?

    Typically not. The PHP manual says time spent in system calls, stream operations and database queries is not counted outside Windows, and the PHP source uses a CPU time timer on most Linux builds. We did not measure this on Linux, and our Apple silicon lab did count waiting. A stuck API call then ends at the web server or proxy timeout instead.

    What does the terminated version of the maximum execution time message mean in 2026?

    Specifically, the 30+2 form means the normal limit was reached and PHP then waited a further hard_timeout, 2 seconds by default, for the script to stop cleanly before ending the process. It usually points to a script blocked on something such as a network read. The hard timeout is a system-level setting, so you cannot change it from .user.ini.

    Can AHosting shared hosting plans handle long WordPress imports without hitting the maximum execution time?

    That said, a long import is safer in batches than in one request. The Silver plan lists 40 entry processes, and every request that runs for minutes occupies one of them. Set a finite limit for the import, run it at a quiet hour, and use the command line if your plan gives you access. If it still fails, send us the log line.

    November 10, 2026
  • Your PHP Installation Appears to Be Missing the MySQL Extension: What It Means and How to Fix It (2026)

    Your PHP Installation Appears to Be Missing the MySQL Extension: What It Means and How to Fix It (2026)

    • Your PHP Installation Appears to Be Missing the MySQL Extension: What the Message Says
    • What WordPress Checks Before It Prints the Missing the MySQL Extension Message
      • Missing the MySQL Extension vs Error Establishing a Database Connection
      • Where the Check Sits in the WordPress Start-Up Order
    • Why Hosting Accounts Show the Missing the MySQL Extension Message
      • The nd_ and Non-nd Extension Sets Cannot Be Mixed
      • A disable_functions Line Produces the Same Message
      • Other Applications Name Different Modules
    • Missing the MySQL Extension or Something Else: Check Your Message
    • How to Fix the Missing the MySQL Extension Message in cPanel
      • Step 1: Prove What PHP Loads for This Site
      • Step 2: Match the Extension List to One Driver Set
      • Step 3: Switch Versions and Compare if Step 2 Does Not Help
    • What Does Not Fix the Missing the MySQL Extension Message
    • After the Fix: What Our Team Can Look at With You
    • Frequently Asked Questions: Missing the MySQL Extension
      • Which PHP extensions does WordPress require to run in 2026?
      • Does the missing the MySQL extension message mean my database or posts were deleted?
      • Can a PHP version change in cPanel at AHosting cause the missing the MySQL extension message in 2026?
      • Missing the MySQL extension vs Error establishing a database connection: which one is it?
      • mysqli vs nd_mysqli: which extension set should an account use for WordPress in 2026?
      • Will reinstalling WordPress fix the missing the MySQL extension error on my site?
      • How can I check whether mysqli is loaded without SSH on AHosting shared hosting?
      • Does the missing the MySQL extension error also appear on wp-login.php and wp-admin?
      • Why would a site show the missing the MySQL extension message after moving to AHosting from another host?
      • Can the missing the MySQL extension message appear on PHP 7.4 as well as PHP 8.4?
    TL;DR

    The missing the MySQL extension message means PHP cannot find the function mysqli_connect, so WordPress stopped before it touched your database. Check the PHP version and the extension list for the account, choose one MySQL driver set, and reload. Plugins, themes and wp-config.php are not the cause.

    Listen: the page that says an extension is missing appears before WordPress touches the database or any plugin. By Matt Chrust, Director of Business Development, AHosting.

    Your PHP Installation Appears to Be Missing the MySQL Extension: What the Message Says

    When a WordPress site answers every address with “Your PHP installation appears to be missing the MySQL extension which is required by WordPress,” the page title reads Requirements Not Met and the HTTP status is 500. Visitors, the login page and wp-admin all get the same page. The missing the MySQL extension check has failed: PHP could not find a function called mysqli_connect, so WordPress stopped before it tried to reach the database.

    Two things follow from that. First, your data is not involved, because the check runs before WordPress opens a database connection, so a post, an order or a user row cannot cause it. Second, no plugin or theme is involved either, because none of them has loaded yet. Deactivating plugins, renaming the theme folder or restoring a backup will not change the page.

    The cause is almost always on the PHP side of the account. The PHP version was changed, an extension was unticked, or the site landed on a PHP build that does not carry the MySQL driver. This guide covers what the check does, why it happens on cPanel and CloudLinux accounts, how to prove which case you have in about five minutes, and what does not help. If your page is blank or says “critical error” instead, that is a different fault, covered in our white screen of death guide.

    What WordPress Checks Before It Prints the Missing the MySQL Extension Message

    The message comes from one function, wp_check_php_mysql_versions() in wp-includes/load.php. In WordPress 7.1.4 it is called on line 40 of wp-settings.php, which makes it one of the first things WordPress does after wp-config.php loads. It runs three tests in order: the PHP version against the minimum of 7.4, the extensions listed in $required_php_extensions, which holds only json and hash, and then the MySQL driver.

    The driver test is short. WordPress prints the message when mysqli_connect does not exist as a function and no file named wp-content/db.php is present. A database drop-in can replace the MySQL layer entirely, so core does not insist on the driver when one is installed. The page itself is produced by wp_die() with the error code mysql_not_found and the title Requirements Not Met.

    The test asks whether a function exists, not whether an extension file sits on disk. Anything that removes that function therefore triggers the page, including a PHP setting that has nothing to do with extensions. A later section shows one such case, which we reproduced in a lab.

    Missing the MySQL Extension vs Error Establishing a Database Connection

    These two pages are confused constantly, and they need different fixes. We produced both on stock WordPress 7.1.4 running on PHP 8.5.10, on one workstation rather than a hosting server, and recorded what each returned.

    Missing the MySQL extensionError establishing a database connection
    Page titleRequirements Not MetDatabase Error
    MessageYour PHP installation appears to be missing the MySQL extension which is required by WordPress.Error establishing a database connection
    HTTP status in the lab500500
    Same on the home page, wp-login.php and wp-adminYes, one identical 2,843-byte pageYes, same message on all three
    Raised atwp-settings.php line 40require_wp_db(), called on line 136
    Line written to the PHP error log in the labNoneNone
    Question it asksDoes the function mysqli_connect exist?Can WordPress log in with the wp-config.php values?
    Where the fix livesPHP version or extension list for the accountwp-config.php values or the database server
    Missing the MySQL extension vs error establishing a database connection: lab comparison

    If your page says Database Error, stop here. That is a credentials or database-server problem, and the steps below will not help.

    Where the Check Sits in the WordPress Start-Up Order

    The diagram below shows the order for 7.1.4 with the line numbers we read. The Requirements Not Met page can only appear at step 2, which is why nothing you change in plugins, themes or the database moves it.

    Where the missing MySQL extension check sits in the WordPress start-up order Five steps run top to bottom: wp-config.php loads, wp-settings.php line 40 runs the PHP and MySQL driver check, line 136 connects to the database, lines 506 and 582 load plugins, and the theme renders. Four outcome boxes on the right show the HTTP 500 pages each failing step produces. The Requirements Not Met page comes from step 2. 1. wp-config.php loads then wp-settings.php starts 2. wp-settings.php line 40 wp_check_php_mysql_versions() PHP version, json and hash, then mysqli_connect() 3. line 136: require_wp_db() logs in with the wp-config.php values 4. lines 506 and 582 must-use plugins, then plugins load 5. theme loads, page renders PHP below 7.4 version message, HTTP 500 json or hash missing names the extension, HTTP 500 mysqli_connect missing, no db.php Requirements Not Met, HTTP 500 this is the page this guide fixes connection fails Error establishing a database connection

    Why Hosting Accounts Show the Missing the MySQL Extension Message

    On shared hosting the PHP build is chosen per account, so the usual triggers are changes someone made in the control panel rather than damage to the site. The common ones are a PHP version switch, an edited extension list, and a restore or migration that lands a site on a different PHP setup than it had before.

    On AHosting shared servers the PHP versions come from the cPanel MultiPHP Manager, where ea-php56, ea-php70 to ea-php74 and ea-php80 to ea-php85 are available, and the CloudLinux builds are reached through Select PHP Version. The two routes do not offer the same extensions: Imagick, for example, exists only in the CloudLinux builds. A switch between them can therefore change what a site can load.

    We have not reproduced this message on an AHosting server, and this guide does not claim it is common there. The check behaves the same everywhere, which is why the same causes show up in vendor documentation. What follows relies on that documentation and on the lab.

    The nd_ and Non-nd Extension Sets Cannot Be Mixed

    CloudLinux documents this exact message in its PHP Selector knowledge base, in an article called “Missing MySQL extension or MySQL_ND vs MySQL”. It says the symptom can appear while the customer has the MySQL PHP modules enabled. The reason is that two driver sets exist and they are mutually exclusive: mysqlnd with nd_mysqli and nd_pdo_mysql, or mysqli with pdo_mysql. Selecting both, or mixing them, breaks the connection from PHP to MySQL.

    The article’s suggested fix is to switch from one set to the other, and it names /etc/cl.selector/php.extensions.conflicts as the file that lists incompatible extensions. It showed an update date about eight months before we read it on 2026-11-07. The PHP manual adds that from PHP 8.2.0 mysqlnd is the only client library for mysqli. Read together, the practical rule is to choose one set and to expect the nd_ set to be the one that matches a recent PHP version. Whether your Select PHP Version list shows both sets is something only that screen can tell you.

    A disable_functions Line Produces the Same Message

    A second route needs no missing extension at all. The WordPress test calls function_exists, and the PHP directive disable_functions makes a listed function behave as if it did not exist. In the lab we started PHP with disable_functions=mysqli_connect while the mysqli extension was fully loaded. WordPress printed the Requirements Not Met page on the home page, wp-login.php and wp-admin, each a 2,843-byte HTTP 500.

    The PHP manual lists disable_functions as INI_SYSTEM only, so it is set in server-level configuration and not in a .user.ini or .htaccess file that a site owner edits. We do not know that any hosting account carries such a line. We show it because it explains why the extension list can look correct while the page still appears, and why that case is one to raise with your host rather than hunt for in site files.

    Other Applications Name Different Modules

    The same missing driver reads differently in other software, which matters when one account hosts more than one application. Joomla’s technical requirements list mysqlnd or pdo_mysql or pdo_pgsql and do not name mysqli. Nextcloud’s Preparing PHP page lists pdo_mysql for MySQL and MariaDB. Each application tests for the module it uses, so one can fail while another on the same account keeps working.

    Missing the MySQL Extension or Something Else: Check Your Message

    Four different start-up pages look alike at a glance. Pick the one on your screen and what changed just before it appeared. The checker below repeats what the source says for each page and gives the next step.

    Missing the MySQL Extension Message Checker

    Jump to the fix steps

    How to Fix the Missing the MySQL Extension Message in cPanel

    Work in this order, because each step produces evidence for the next. Nothing here edits WordPress files, and every step can be undone.

    Step 1: Prove What PHP Loads for This Site

    Create a file named mysqli-check.php in the site’s folder with the lines below, open it in a browser, then delete it. It asks PHP the same question WordPress asks, so a no on the second line is the diagnosis.

    <?php
    header('Content-Type: text/plain');
    echo 'PHP version: ', PHP_VERSION, "\n";
    echo 'mysqli_connect exists: ', function_exists('mysqli_connect') ? 'yes' : 'no', "\n";
    echo 'mysqlnd loaded: ', extension_loaded('mysqlnd') ? 'yes' : 'no', "\n";

    If the second line says yes and the site still shows Requirements Not Met, the file you opened and the files WordPress runs may be on different PHP settings. Check the domain and the folder, because add-on domains and subfolders can run their own PHP version in MultiPHP Manager. The Site Health notice about recommended modules is a separate, softer test and does not print this page.

    Step 2: Match the Extension List to One Driver Set

    Open Select PHP Version, then the extensions list for the PHP version in use. Tick one driver set and leave the other unticked, as in the table. Save, reload the check file, then reload the site.

    SetExtensionsRule
    mysqlnd setmysqlnd, nd_mysqli, nd_pdo_mysqlCloudLinux pairs it with PHP 5.3 to 7.1 and later; the PHP manual calls it the only option from PHP 8.2.0
    Classic setmysqli, pdo_mysqlCloudLinux pairs it with PHP 4.4 to 5.3; the PHP manual says it is not supported from PHP 8.2.0
    Both tickedAny mix of the twoMutually exclusive, per CloudLinux: pick one set only
    Which MySQL extension set to tick, as documented by CloudLinux and the PHP manual

    If the list offers no MySQL driver at all, stop there, because that is a question about how the server build was made. CloudLinux notes that after a change an administrator may need to refresh the account’s environment on the server; that is done by the host with root access, not from cPanel.

    Step 3: Switch Versions and Compare if Step 2 Does Not Help

    In MultiPHP Manager, set the domain to a PHP version that you know worked before the problem began, then reload the site and the check file. If the site recovers, the newer version’s extension list is the cause, and that comparison is the evidence to give your host. Keep the older version until the list is fixed.

    Do not go below PHP 7.4. WordPress 7.1.4 declares 7.4 as its minimum and prints a different message under it, which our guide to the PHP version error explains. For choosing a version in the first place, see the best PHP version for WordPress on cPanel.

    What Does Not Fix the Missing the MySQL Extension Message

    Most search results for this message list fixes that work on a machine you fully control and do nothing on a hosting account. These are the ones to skip.

    • Reinstalling WordPress core or deleting plugins. The check is on line 40 of wp-settings.php, and plugins do not load until line 582.
    • Editing the database name, user, password or host in wp-config.php. Those values are not used until line 136, and a wrong value gives the other page.
    • Repairing or optimizing the database. The check fails before any connection is attempted.
    • Adding extension=mysqli to a php.ini in the site folder. On our shared servers PHP does not read a php.ini placed in a site folder, though it does read .user.ini, so extensions are chosen in the selector instead.

    One more trap is that the page leaves no trace in the PHP error log. In the lab, with logging switched on, neither this page nor the database page wrote an error-log entry, and only the web server’s access line recorded the 500. A clean error_log therefore does not mean the problem is somewhere else.

    After the Fix: What Our Team Can Look at With You

    If the check file still says no after step 3, or the extensions list offers no MySQL driver, open a ticket with the exact text on the page and the PHP version shown in MultiPHP Manager, and we will look at it with you.

    Plans differ in how much of the PHP setup you control. Compare AHosting WordPress hosting plans, web hosting plans and VPS hosting plans to see what each one includes before you decide where a site should run.

    Frequently Asked Questions: Missing the MySQL Extension

    Which PHP extensions does WordPress require to run in 2026?

    Specifically, WordPress 7.1.4 lists two required extensions, json and hash, and it needs PHP 7.4 or newer. Separately, it needs a working MySQL driver: it stops with the Requirements Not Met page when the function mysqli_connect does not exist and no wp-content/db.php drop-in is present. Everything else, such as gd, curl and mbstring, is recommended or needed by plugins rather than by the start-up check.

    Does the missing the MySQL extension message mean my database or posts were deleted?

    Fortunately, no. The check runs before WordPress opens any database connection, so it cannot read, change or damage your content. The message only reports that PHP cannot find the MySQL driver function, and the database stays exactly as it was until the driver is available again.

    Can a PHP version change in cPanel at AHosting cause the missing the MySQL extension message in 2026?

    That said, a different PHP build can carry a different extension list, so a version change is a possible trigger. We have not reproduced the message on an AHosting server and we do not claim it is common here. If it appears right after a change, switch the domain back in MultiPHP Manager, confirm the site recovers, and open a ticket with the exact text and the version shown.

    Missing the MySQL extension vs Error establishing a database connection: which one is it?

    In contrast, the two pages come from different checks. Requirements Not Met means PHP has no mysqli_connect function, and the fix is in the PHP version or the extension list. Database Error with the text Error establishing a database connection means the driver exists but the login or the database server failed, and the fix is in wp-config.php or the database.

    mysqli vs nd_mysqli: which extension set should an account use for WordPress in 2026?

    Notably, the two sets are mutually exclusive in the CloudLinux PHP Selector, so the answer is one set, never both. The PHP manual says mysqlnd is the only client library for mysqli from PHP 8.2.0, so on a recent version the nd_ set, which is mysqlnd with nd_mysqli and nd_pdo_mysql, is the one that matches. Check which names your own Select PHP Version list offers before changing anything.

    Will reinstalling WordPress fix the missing the MySQL extension error on my site?

    In fact, no. The check runs on line 40 of wp-settings.php, before plugins, themes or the database are touched, so reinstalling core files, deactivating plugins or restoring a backup leaves the PHP function missing and the same page returns. The fix is in the PHP version or the extension list for the account.

    How can I check whether mysqli is loaded without SSH on AHosting shared hosting?

    Specifically, upload a short PHP file that prints the result of function_exists with mysqli_connect, open it in a browser, then delete it. That is the same question WordPress asks, so a no is the diagnosis. The extensions list in Select PHP Version shows related information without a file, for the PHP version you have chosen.

    Does the missing the MySQL extension error also appear on wp-login.php and wp-admin?

    Indeed, in our lab the same 2,843-byte page came back with HTTP 500 from the home page, wp-login.php and wp-admin. Because the check runs before any cookie or user code, being logged in as an administrator changes nothing. A site that shows the home page but fails only in wp-admin has a different problem.

    Why would a site show the missing the MySQL extension message after moving to AHosting from another host?

    In practice, files move but PHP settings do not, so a site that worked on the old host can meet a different PHP build or extension list on the new account. Compare the PHP version and the extension list on both, and use the check file from step 1 to see what the new account actually loads.

    Can the missing the MySQL extension message appear on PHP 7.4 as well as PHP 8.4?

    Indeed, the test is not tied to a PHP version: the same function_exists check runs on every PHP version WordPress 7.1.4 supports, from 7.4 upward. What changes between versions is which extensions a given build or account carries, not the check itself.

    November 9, 2026
  • The Active Theme Is Broken. Reverting to the Default Theme: What It Means (2026)

    The Active Theme Is Broken. Reverting to the Default Theme: What It Means (2026)

    • What it means when the active theme is broken
      • The check WordPress runs before it says the active theme is broken
      • What the reversion changes in your database
    • What visitors see while the active theme is broken
      • Why an administrator sees an error and visitors see nothing
    • Why the active theme is broken notice waits for the Themes screen
    • Five ways a theme folder breaks on shared hosting
      • A folder deleted, renamed or moved in File Manager
      • A zip extracted one folder too deep
      • A parent theme removed while the child stays
      • A half-finished upload leaves a file missing
      • A second theme directory after a move or restore
    • How to fix the active theme is broken without reinstalling WordPress
      • If you already opened the Themes screen
      • Child themes need the parent installed first
    • Match your message: the active theme is broken diagnosis tool
    • How we tested the active theme is broken behavior
    • Keeping the active theme is broken notice from coming back
      • Where AHosting fits when the active theme is broken
    • Frequently Asked Questions: the active theme is broken
      • How do I restore my WordPress theme to default when the active theme is broken?
      • Why does WordPress say the active theme is broken in 2026 after I rename a theme folder?
      • Will my customizer settings survive when the active theme is broken and WordPress reverts?
      • Why is my site blank for visitors while the active theme is broken and wp-admin still works?
      • Stylesheet is missing vs Template is missing: which broken theme message do I have?
      • Why does WordPress say the active theme is broken after I deleted the parent of my child theme?
      • Does it mean my AHosting server is at fault when WordPress says the active theme is broken?
      • Can I fix it on AHosting shared hosting without SSH when the active theme is broken?
      • Where does AHosting File Manager keep a deleted theme folder in 2026?
      • File Manager vs FTP in 2026: which is safer for replacing a theme folder when the active theme is broken?
    TL;DR

    The active theme is broken means WordPress already switched your site to a default theme. Restore the missing folder or file first, then reactivate your theme.

    Listen: WordPress has already switched the theme before the notice appears, and a visitor sees only a blank page. By Matt Chrust, Director of Business Development, AHosting.

    What it means when the active theme is broken

    When the active theme is broken, WordPress is not warning you about a problem it might fix later. The message reads “The active theme is broken. Reverting to the default theme.” and the word reverting is literal: by the time you read it, the site has already been switched to another theme. We read the WordPress 7.1.4 source and rebuilt each failure in a test install, so every claim below comes from a line of code or a measured result.

    Most people meet the message after changing files by hand. A theme folder was deleted in File Manager, a zip was extracted into the wrong place, or a parent theme was removed during a cleanup. The result looks like a plugin or hosting fault, but it is a plain file check, and it behaves the same on any host. This guide shows what that check does, what visitors see meanwhile, and how to restore your theme.

    The check WordPress runs before it says the active theme is broken

    The check is one function, validate_current_theme(), in wp-includes/theme.php. It runs three tests on the theme named in the database. First, does the theme have index.php or templates/index.html? Second, does it have a style.css? Third, if it is a child theme, does the child folder have its own style.css? Fail any one and WordPress calls switch_theme().

    The replacement is the constant WP_DEFAULT_THEME, which is twentytwentyfive in 7.1.4. If that theme is not installed, WordPress picks the newest core default theme that is. If none is installed, nothing can be switched and the check returns without changing anything.

    What the reversion changes in your database

    The switch rewrites two options, template and stylesheet, which hold folder names. It also saves a snapshot of your widget placement before it moves on. It does not delete your old theme’s settings. In our lab we stored a custom logo setting for a test theme, forced the reversion, and the setting was still in the database afterward. Your theme’s settings wait under its own name until you activate it again.

    What visitors see while the active theme is broken

    A broken theme does not look the same to everyone. We made six kinds of breakage in a WordPress 7.1.4 test install and requested the home page twice: once without cookies, as a visitor, and once logged in as an administrator. The table records the results.

    What brokeVisitor, home pageAdministrator, home pageAppearance, then Themes
    Active theme folder deleted, renamed or movedHTTP 200, 0-byte pageHTTP 500: The theme directory does not existReverting notice only
    style.css missing from the active themePage renders normallyPage renders normallyReverting notice, then Broken Themes: Stylesheet is missing.
    index.php missing from a classic themeHTTP 200, 0-byte pageHTTP 500: Template is missing.Reverting notice, then Broken Themes: Template is missing.
    Child theme active, parent folder deletedHTTP 200, 0-byte pageHTTP 500: The parent theme is missing.Reverting notice, then Broken Themes: The parent theme is missing.
    Child theme style.css missingPage renders normallyPage renders normallyReverting notice, then Broken Themes: Stylesheet is missing.
    Inactive theme missing style.cssNo changeNo changeBroken Themes list only, no notice
    AHosting Broken-Theme Decoder: measured results on WordPress 7.1.4, PHP 8.5.10 test install (not an AHosting server).

    Two rows deserve attention. A missing style.css breaks nothing on the front end, so the site keeps working until somebody opens the Themes screen. A deleted folder or missing index file is the opposite: visitors get an empty page and no clue why.

    Why an administrator sees an error and visitors see nothing

    The template loader prints the theme error only when the current user has the switch_themes capability. For anyone else it returns quietly with no template, and PHP sends an empty page with a success status. That is why the owner sees a clear message and the customer sees a blank screen. If your page is empty and no error appears even when logged in, the cause is probably a different one, and our white screen of death guide covers it.

    If a cache sits in front of the site, visitors may keep getting the last good page for a while. We did not test caching in the lab, so treat that as an expectation, not a measurement.

    Why the active theme is broken notice waits for the Themes screen

    The reversion does not happen when the folder disappears. It happens when someone opens Appearance, then Themes. In the 7.1.4 source, the only call to validate_current_theme() inside wp-admin and wp-includes is on line 264 of wp-admin/themes.php. Our lab agreed. With the active theme deleted, we loaded the dashboard, the Plugins screen, General Settings, the login page and the theme installer. The stored theme name stayed the same after every one. The first visit to the Themes screen changed it.

    Two practical results follow. A site can run on a broken theme for days with the real cause hidden behind an empty page. And the person who triggers the switch is rarely the person who broke the folder, so the notice often arrives with no history attached. A plugin or a custom script could call the function elsewhere, which the core source cannot rule out.

    Five ways a theme folder breaks on shared hosting

    Every case behind the active theme is broken ends in one of the four messages in the table, but the routes there differ. These are the five routes we found, with what we measured for each.

    A folder deleted, renamed or moved in File Manager

    Renaming labtheme to labtheme-1 in the lab produced the same result as deleting it: the database still named the old folder, the folder did not exist, and the next Themes visit reverted the site. If you deleted instead of renamed, the cPanel documentation says File Manager moves deleted items to a Trash folder and that View Trash then Restore puts them back, so the original folder may still be recoverable.

    A zip extracted one folder too deep

    Extracting a theme zip inside wp-content/themes can leave the theme one folder lower than it should be. We moved the test theme from themes/labtheme to themes/labnest/labtheme and WordPress did not hide it. It listed the theme under the name labnest/labtheme, while the database still asked for labtheme, so the site reverted. The WordPress source explains it: when a folder has no style.css, WordPress scans exactly one level of sub-folders for themes.

    Theme marketplaces add to the confusion. One marketplace support article says the download includes a full package and a separate installable file and only the installable file should be uploaded. Extracting that full package into the themes folder, instead of uploading the installable file, puts the wrong layout where WordPress looks for a theme.

    A parent theme removed while the child stays

    Cleanup habits cause this one. A site owner deletes the unused themes, the parent of the active child theme goes with them, and the child survives with nothing to inherit from. WordPress records the state as theme_no_parent and prints a message that names the missing folder: The parent theme is missing. Please install the folder-name parent theme. The WordPress developer handbook is explicit that the Template value must match the parent folder name exactly, so a renamed parent breaks the child the same way a deleted one does.

    A half-finished upload leaves a file missing

    An interrupted upload can leave a theme folder with some files and not others. Missing style.css gives Stylesheet is missing., and a missing index.php gives Template is missing. The theme header lives in style.css and the handbook lists Theme Name as the one required header, so a stylesheet with no header is also unusable. We simulated this by deleting the files, not by interrupting a real transfer.

    A second theme directory after a move or restore

    This cause is rare and applies only to sites that register a second theme directory. In that case WordPress stores two extra options, template_root and stylesheet_root, next to the theme names. A deployment that moves the theme without updating them produces the same notice. One forum thread on a Bedrock deployment ended with the poster setting that option by command line after each deploy. A normal shared account has a single theme directory, so you can ignore this unless you changed it.

    What WordPress checks when the active theme is broken Three boxes joined by arrows. Box one: you open Appearance then Themes. Box two: three tests on the active theme, which are an index file, a style.css file and, for a child theme, its own style.css. Box three: if any test fails, the site switches to twentytwentyfive. A separate lower band says a visitor request does not run the tests. 1. You open Appearance, then Themes 2. Three tests index.php or index.html style.css in the theme child theme own style.css 3. Any test fails Site switches to twentytwentyfive A visitor loading your home page never runs these tests Visitors get an empty page. Only the Themes screen switches the theme.

    How to fix the active theme is broken without reinstalling WordPress

    The order matters, because opening the Themes screen is the step that performs the switch. Restore the files first when you can. The steps below use only wp-admin and the cPanel File Manager.

    1. Read the line. Log in as an administrator and load the home page. The error text names the missing folder, file or parent theme. A visitor never sees it.
    2. Open File Manager and go to wp-content/themes for the affected site. Look for the theme folder, a renamed copy, or a folder one level deeper.
    3. Missing folder: open View Trash and restore it, or rename the copy back to the original name. Folder one level deeper: move it up so style.css is directly inside the theme folder.
    4. Missing file: upload the theme again from its installable zip. A marketplace zip named after the theme is usually the right one, not the full package.
    5. Missing parent: install the parent under the exact folder name the child expects, then check the child’s Template line.
    6. Now open Appearance, then Themes, and activate your theme. If the site was already switched, this step puts it back.
    7. Clear any page cache or CDN cache, then load the site as a visitor to confirm the real page is back.

    Do not use the Delete button on a row in the Broken Themes list unless you mean to remove that folder. The button is attached to every broken entry, including a theme you only need to repair.

    If you already opened the Themes screen

    Nothing is lost, but the site is now running a default theme. Restore the missing files, reload the Themes screen and activate your own theme. Check menus and widgets afterward. We confirmed the stored theme settings survive, but we did not test that every menu location and widget returns after reactivation.

    Child themes need the parent installed first

    A child theme whose parent is missing is listed under Broken Themes until the parent returns. Its row includes an Install Parent Theme button only when the parent exists in the WordPress.org directory. A commercial or custom parent will not get the button, so upload it yourself. Compare your zip names with the package could not be installed guide if the upload is refused.

    Match your message: the active theme is broken diagnosis tool

    Pick the line you see on the site or on the Themes screen. The tool names the likely cause and the first fix, using the same four messages WordPress prints.

    Which broken-theme message do you see?

    Pick the line WordPress shows. The tool names the file it checked and the first fix.

    No message chosen yet.Choose the line you see and the result appears here.
    Page still blank? Read the white screen guide

    How we tested the active theme is broken behavior

    We downloaded WordPress 7.1.4 from wordpress.org, ran it on PHP 8.5.10 with the SQLite database plugin and the built-in PHP server, and installed a small classic theme and a child theme. We then broke them nine ways and recorded the HTTP status, the page body and the stored theme name for each request, with and without a logged-in administrator. The lab ran on one workstation. It was not an AHosting server.

    Not tested: multisite, a real interrupted FTP or File Manager transfer, page caching, a block theme with its own template folders, and a case-only rename on a case-sensitive file system. Those statements in this guide come from the source code, not from the lab, and are worded that way.

    Keeping the active theme is broken notice from coming back

    Four habits prevent most repeats. Rename a folder instead of deleting it until the site has been checked. Remove a parent theme only after confirming no child theme names it. Upload themes through Appearance, then Themes, using the installable zip, because that path runs WordPress's own package checks. After any manual change in wp-content/themes, load the front page while logged in as an administrator, since that is where the real error text appears without triggering a switch.

    Where AHosting fits when the active theme is broken

    If you want theme work done on a plan built for it, compare our WordPress hosting plans with the general web hosting plans. If a site needs root access for deployments with a second theme directory, our VPS hosting is the step up. The fix in this guide needs only cPanel File Manager, so none of that is required to recover. Related errors you may meet while repairing the theme are covered in our guides to plugins that could not be activated and a destination folder that already exists.

    Frequently Asked Questions: the active theme is broken

    How do I restore my WordPress theme to default when the active theme is broken?

    In practice, WordPress has already done it for you: the notice means the options named template and stylesheet were switched to twentytwentyfive, or to the newest default theme installed. Your own theme is not gone. Restore its folder in wp-content/themes, then activate it again on the Themes screen.

    Why does WordPress say the active theme is broken in 2026 after I rename a theme folder?

    Specifically, the database stores the folder name, not the theme name. Rename labtheme to labtheme-1 and the stored name no longer points at a folder, so the next visit to Appearance then Themes triggers the switch. Rename the folder back before anyone opens that screen.

    Will my customizer settings survive when the active theme is broken and WordPress reverts?

    Fortunately, mostly yes. In our WordPress 7.1.4 lab a saved custom logo setting was still in the database after the reversion, because theme settings are stored per theme name. We did not test every menu and widget placement, so check those after you reactivate.

    Why is my site blank for visitors while the active theme is broken and wp-admin still works?

    Typically that is how the failure splits. WordPress prints the real error only for users who can switch themes, so a visitor gets an empty page with no message while the admin screens keep loading. Load the front page while logged in as an administrator to read the message.

    Stylesheet is missing vs Template is missing: which broken theme message do I have?

    In other words, they name different files. Stylesheet is missing means the theme folder has no style.css, so WordPress cannot read a theme header. Template is missing means style.css is fine but a standalone theme has no index.php or templates/index.html. Check the folder for the named file.

    Why does WordPress say the active theme is broken after I deleted the parent of my child theme?

    Indeed, a child theme cannot load without its parent. The Template line in the child style.css must match the parent folder name exactly, and when that folder is gone WordPress reports that the parent theme is missing. Reinstall the parent under the same folder name and the child works again.

    Does it mean my AHosting server is at fault when WordPress says the active theme is broken?

    Overall, no. The check is WordPress code that looks at your theme folder and runs the same on any host. Our lab was a workstation, not an AHosting server. A missing or misplaced theme file is almost always the cause, and the fix takes place in your own wp-content/themes folder.

    Can I fix it on AHosting shared hosting without SSH when the active theme is broken?

    Fortunately, yes. Every fix in this guide uses wp-admin and the cPanel File Manager: restore from Trash, extract a zip, rename a folder, then activate the theme. Our hosting accounts run cPanel, so File Manager is there. Only a second theme directory, covered above, needs a configuration change.

    Where does AHosting File Manager keep a deleted theme folder in 2026?

    Specifically, in the Trash. The cPanel documentation says File Manager moves deleted items to a Trash folder instead of erasing them, and View Trash then Restore puts the folder back. Empty Trash permanently deletes it, so restore before you empty anything.

    File Manager vs FTP in 2026: which is safer for replacing a theme folder when the active theme is broken?

    Specifically, File Manager is the safer default, because the cPanel documentation says it moves deleted items to Trash where they can be restored. We did not test an FTP client, so confirm that yours keeps no recycle copy before you delete anything, and rename a folder instead of deleting it.

    November 6, 2026
  • Request Header or Cookie Too Large: What the 400 Error Means (2026)

    Request Header or Cookie Too Large: What the 400 Error Means (2026)

    • Request Header or Cookie Too Large: What the 400 Error Means
      • Why one oversized cookie breaks every page
    • Request Header or Cookie Too Large Limits We Measured
      • Request header or cookie too large on nginx
      • The same error on Apache and behind Cloudflare
      • How we ran the request header or cookie too large test
    • Why WordPress Cannot Fix a Request Header or Cookie Too Large Error
      • Where the extra bytes come from
    • Check Your Request Header or Cookie Too Large Risk
    • Fix Request Header or Cookie Too Large as a Visitor
    • Fix Request Header or Cookie Too Large as a Site Owner
      • Raise the limit on nginx or Apache
      • Who can change the limit on your plan
    • Why Request Header or Cookie Too Large Hits Some Pages Only
      • Read the error page to find the layer
    • Stop Request Header or Cookie Too Large From Coming Back
    • What to Send Support When Request Header or Cookie Too Large Persists
    • Frequently Asked Questions: Request Header or Cookie Too Large
      • How do I fix 400 Bad Request: Request Header or Cookie Too Large in 2026?
      • What size triggers request header or cookie too large on nginx and Apache by default?
      • Is request header or cookie too large a browser problem or a server problem in 2026?
      • Why does request header or cookie too large hit WordPress admin but not cached pages?
      • 400 vs 431 vs 414: which status code means request header or cookie too large?
      • Cloudflare vs origin server: which one returns request header or cookie too large on my site?
      • Does AHosting shared hosting let me change the request header or cookie too large limit?
      • Can I raise the header limit myself on an AHosting VPS in 2026?
      • What should I send AHosting support when request header or cookie too large keeps coming back?
      • Does clearing cookies for one site log me out of my other websites?
    TL;DR

    Request header or cookie too large means one header line, usually Cookie, passed the server limit of about 8 KB. Test in a private window, clear that site cookies, then raise the limit only if you run the server.

    Listen: the server refuses one oversized cookie line before WordPress runs, and the byte limit is close to 8 KB. By Matt Chrust, Director of Business Development, AHosting.

    Request Header or Cookie Too Large: What the 400 Error Means

    The 400 Bad Request page that says request header or cookie too large means the web server refused to read your request. It never reached WordPress, PHP or your theme. One header line, almost always the Cookie line, was longer than the server allows, so the server stopped at the door.

    Search results for this error are mostly generic fix lists. We run the servers, so we measured it instead. This guide gives you the exact byte limits we found, shows why WordPress itself is rarely the cause, and tells you who can actually change the limit on your plan. The numbers come from a lab we built for this post and from probing our own site on November 5, 2026.

    Why one oversized cookie breaks every page

    Your browser attaches every cookie that matches the site to every request, including requests for images and scripts. When the combined Cookie line grows past the limit, each request fails the same way, so the whole site seems down for you while it works for everyone else.

    That is why a coworker on another computer sees nothing wrong. The problem lives in one browser profile, not in the site. It also explains why the error can appear overnight: a cookie that grew a little with each visit finally crossed the line.

    A related loop is the redirect error, where a bad cookie or setting sends the browser round in circles. We cover that separately in ERR_TOO_MANY_REDIRECTS in WordPress. The error here is different, because the server says no before any redirect logic runs.

    Request Header or Cookie Too Large Limits We Measured

    Every web server caps the size of a single header line. The caps are close to each other, and they are the reason the same cookie breaks on one site and not on another. Here is what our tests returned.

    Where we testedRefused withPassedRefused
    nginx 1.31.6 default, oversized cookie400 Request Header Or Cookie Too Large8,180-byte cookie value8,181-byte cookie value
    nginx 1.31.6 default, oversized URL4148,170-byte query string8,180-byte query string
    nginx with large_client_header_buffers 4 16k40016,300-byte cookie value20,000-byte cookie value
    ahosting.net origin, uncached URL, through Cloudflare431 Request Header Fields Too Large8,180-byte cookie value8,181-byte cookie value
    ahosting.net, cached page, through CloudflareNothing refused64,000-byte cookie value, the largest we triedNot reached
    Request header limits we measured, November 2026. One cookie named x, one test machine, our own site.

    Request header or cookie too large on nginx

    The nginx documentation sets large_client_header_buffers to 4 buffers of 8k by default, and says a request header field cannot exceed the size of one buffer or the server returns 400. We confirmed it. A Cookie line of exactly 8,192 bytes including its line ending passed, and one more byte failed.

    The count of cookies did not matter. Three hundred small cookies totaling 8,098 bytes passed, and four hundred totaling 10,798 failed. A header other than Cookie hit the same wall, so the message names cookies even when another header is at fault.

    The same error on Apache and behind Cloudflare

    The Apache documentation lists LimitRequestFieldSize with a default of 8190 bytes. Our own origin refused a Cookie line of 8,191 bytes and accepted 8,190, which matches that default. Cloudflare hides the origin server name, so we say consistent with, not configured as.

    Apache documents that some authentication headers can reach 12,392 bytes. If you use that kind of login, the default can be too low even with few cookies.

    One detail is worth knowing. For a Cookie line, nginx and Apache land on the same cutoff: 8,190 characters before the line ending, or 8,192 bytes with it. That is why a cookie that fits one server usually fits the other, and why a site moved between them rarely changes behavior.

    How we ran the request header or cookie too large test

    We installed stock WordPress 7.1.4 with a SQLite database on a workstation, put nginx 1.31.6 in front of it, and sent requests with curl while we changed one thing at a time. We padded a single cookie named x until the answer changed, then narrowed the cutoff to the exact byte. The workstation is not an AHosting server, so the nginx numbers describe nginx defaults, not our shared plans.

    The live probe was simpler. We sent the same padded cookie to our own blog on November 5, 2026, once to a cached page and once to an uncached login URL, and recorded the status codes. We repeated the cutoff search until the first failing size was stable.

    Why WordPress Cannot Fix a Request Header or Cookie Too Large Error

    Plugins are the usual suggestion, and they cannot help here. In our lab, a logged-in administrator on WordPress 7.1.4 sent only 389 bytes of core cookies on a /wp-admin/ request. The limit is about 21 times that, so WordPress alone is nowhere near it.

    WordPress core cookies versus the default header limit Three horizontal bars. WordPress core cookies on a wp-admin request measured 389 bytes in our lab. The nginx default limit for one header line is 8,192 bytes. The Apache default limit for one header field is 8,190 bytes. The limit is about 21 times the size of the core cookies, so the oversized cookie almost always comes from something else. One header line: what WordPress sends vs what the server accepts WordPress core cookies on a /wp-admin/ request (our lab) 389 B nginx default: largest header line (8k buffer) 8,192 B Apache default: LimitRequestFieldSize 8,190 B Source: AHosting lab, nginx 1.31.6 and WordPress 7.1.4, and Apache 2.4 documentation. November 2026.

    We then added a stray cookie until the header line reached 8,407 bytes. The admin screen, the home page and a static image all failed with 400 at the same moment, because nginx refused each request before it routed anything. A cache plugin, a security plugin or a PHP setting runs after that point, so none of them can change the result.

    Where the extra bytes come from

    WordPress core sets its login cookies on separate paths. In the 7.1.4 files, default-constants.php lines 303 to 325 define the cookie paths, and option.php lines 1740 and 1741 set the two wp-settings cookies for a year. These are short strings.

    The growth comes from everything else stored for the same host: analytics, consent banners, A/B tests, checkout sessions and cookies left by other apps on the same domain. We did not measure those on a customer site, so check your own with the tool below.

    Check Your Request Header or Cookie Too Large Risk

    Use this checker before you change any server setting. It adds up the Cookie line the way the server counts it, so you can see how close you are and which cookies are largest.

    Check Your Cookie Header Against the Limit

    Open the affected site in a working browser, open the developer console, run document.cookie and paste the result here. The check runs in your browser and sends nothing anywhere.

    Set the limit yourself on a VPS

    The console cannot see HttpOnly cookies, which include the WordPress login cookies. Add that allowance in the second box. A result close to the limit means the next cookie that grows will trigger the error.

    Fix Request Header or Cookie Too Large as a Visitor

    Start with the quick test that tells you whether the cause is on your side. These steps take about two minutes and do not need any access to the server.

    1. Open the exact URL in a private or incognito window. If it loads, the cause is your stored cookies.
    2. Delete the cookies for that one site only, not your whole history. In Safari on a Mac, Apple describes Manage Website Data under Privacy settings. On an iPhone, the Safari clearing steps are in Apple support.
    3. In Microsoft Edge, Microsoft explains how to delete cookies from a specific site. Chrome and Firefox have the same idea in their site data screens.
    4. Reload the page and sign in again. Save any draft first, because deleting a site cookies signs you out.

    If the private window fails too, the problem is not your stored cookies. Another browser extension, a very long URL or a proxy that adds headers can be adding bytes. Try a different network and a different browser to narrow it down.

    Fix Request Header or Cookie Too Large as a Site Owner

    Remove the cookie that grew before you raise any limit. A higher limit hides the cause and also lets larger abusive requests reach your server. Find the biggest cookies with the checker above, then ask which plugin or service sets each one.

    Raise the limit on nginx or Apache

    On nginx, set large_client_header_buffers to 4 16k in the http or server block and reload. In our lab a 16,300-byte cookie then passed, while a 20,000-byte cookie still failed, so you cannot raise it without bound. On Apache, set LimitRequestFieldSize in server or virtual host configuration, then reload.

    Retest with the same oversized request after each change. Both numbers are per header line, so one fat cookie still needs headroom on its own.

    Who can change the limit on your plan

    Where your site runsWho controls the limitWhat you can do
    Shared hostingThe host. The Apache directive is valid in server config and virtual host only, not .htaccessRemove cookies, then open a ticket with the URL and time
    VPS or dedicated serverYouRaise the directive, reload, retest, then trim the cookie
    Behind CloudflareCloudflare for the edge, your server for the originTest an uncached URL, because cached pages skip the origin
    Visitor on any planNeitherPrivate window test, then delete that site cookies
    Who can change a header limit, by hosting type.

    On shared hosting the web server belongs to the host, so the cleanup is yours and the limit is not. Our shared servers run LiteSpeed, and we did not measure its header limit for this guide. If you manage your own server, our VPS plans give you that control, and the checker above links them.

    Why Request Header or Cookie Too Large Hits Some Pages Only

    The error often appears in WordPress admin first, and visitors see nothing. Logged-in sessions carry extra cookies, and they bypass page caches. Our probe showed the effect on a live site. A cached blog page answered 200 with a 64,000-byte cookie, because Cloudflare served it without asking the origin.

    The login page on the same site refused a cookie of 8,181 bytes with a 431. So an owner can test the homepage, see it load, and conclude the server is fine. Always test an uncached URL, such as the login screen or a search result, when you reproduce this.

    Related limits show up in similar ways. A large upload fails differently, with a 413, and we explain that in WordPress 413 Request Entity Too Large. A missing login header is a separate problem covered in The Authorization Header Is Missing. If caching confuses your tests, read LiteSpeed Cache and Cloudflare.

    Read the error page to find the layer

    The wording of the page points at the server. Our nginx lab printed 400 Bad Request, then Request Header Or Cookie Too Large, then the nginx version. Our own origin printed 431 Request Header Fields Too Large and said the server refused the request because the header fields were too large. The 431 code is defined in RFC 6585 for exactly this case, and it may be used when the total or a single field is at fault.

    A branded error page from Cloudflare or a security plugin tells a different story, because then the edge or the application answered. Note which page you see before you test further, since the fix differs for each layer.

    Stop Request Header or Cookie Too Large From Coming Back

    Treat the cookie budget like disk space: check it before it is full. Run the checker on a logged-in session and on a visitor session once a quarter, and write down the largest cookie each time. A cookie that doubles between checks is the one to investigate.

    Set sensible lifetimes for anything you control, and avoid storing lists, carts or preferences in cookies when a server session or local storage would do. Keep the number of tracking and consent scripts small. Each one adds its own cookies to every request, including requests for images.

    Finally, keep a note of the limit your server really enforces. When a plugin update adds a cookie, you can compare the new header size to that number instead of waiting for visitors to report the error.

    What to Send Support When Request Header or Cookie Too Large Persists

    If cleaning cookies does not help, give your host the facts that locate the layer. Send the full URL, the exact error wording, the time with your time zone, and whether a private window loads the page. Never paste cookie values, since they can include login tokens.

    Managed plans move the server side of this off your list. If you would rather not tune a web server, our WordPress hosting plans keep that configuration with the host, and web hosting covers general sites. For this error, the fix you control is always the same: fewer and smaller cookies.

    Frequently Asked Questions: Request Header or Cookie Too Large

    How do I fix 400 Bad Request: Request Header or Cookie Too Large in 2026?

    Specifically, test in a private window first. If the page loads there, the cause is the cookies your browser stores for that site, so delete the cookies for that one site and reload. If it still fails in a private window, the cause is not your stored cookies, and the site owner must raise the server limit or shrink the request.

    What size triggers request header or cookie too large on nginx and Apache by default?

    In practice, nginx reads one header line in an 8,192-byte buffer and Apache allows 8,190 bytes for one header field. In our lab a cookie value of 8,180 bytes passed nginx and 8,181 bytes failed. Both limits count one header line, not the number of cookies.

    Is request header or cookie too large a browser problem or a server problem in 2026?

    Typically, it is both. The browser sends an oversized Cookie line, and the server refuses to read it. Clearing the site cookies fixes it for one visitor, but a server that cannot hold a normal login plus tracking cookies still needs a higher limit or fewer cookies.

    Why does request header or cookie too large hit WordPress admin but not cached pages?

    In fact, a cached page can be answered by the edge without touching your origin, while an uncached page must be read by the origin web server. On our own site a 64,000-byte cookie still loaded a cached page, and an 8,181-byte cookie got a 431 from an uncached one.

    400 vs 431 vs 414: which status code means request header or cookie too large?

    However, the code depends on the server and on what was too big. nginx returned 400 for an oversized header field and 414 for an oversized URL, and our own origin returned 431 for an oversized cookie. All three mean the request was refused before WordPress ran.

    Cloudflare vs origin server: which one returns request header or cookie too large on my site?

    In other words, check which server wrote the error page. In our test Cloudflare accepted a 64,000-byte cookie on a cached page, while the origin refused 8,181 bytes on an uncached one, so the origin held the lower limit. Your own results may differ, so test an uncached URL.

    Does AHosting shared hosting let me change the request header or cookie too large limit?

    Typically, no. On shared hosting the web server is configured by the host, and the Apache directive LimitRequestFieldSize is valid only in server or virtual host configuration, not in .htaccess. We did not measure the LiteSpeed limit on our shared servers, so open a ticket with the URL and the time.

    Can I raise the header limit myself on an AHosting VPS in 2026?

    Indeed, yes. On a VPS you control the web server, so you can raise large_client_header_buffers on nginx or LimitRequestFieldSize on Apache. Treat a higher limit as a stopgap and still remove the cookie that grew, because a larger limit also lets larger abusive requests through.

    What should I send AHosting support when request header or cookie too large keeps coming back?

    Specifically, send the full URL, the exact wording of the error, the time in your time zone, and whether a private window loads the page. Do not paste cookie values into the ticket, because they can include login tokens.

    Does clearing cookies for one site log me out of my other websites?

    Typically, it signs you out of that one site only. Cookies are stored per site, so other websites keep their sessions. The real risk is unsaved work in an open editor tab, so save your draft before you clear the cookies.

    November 5, 2026
  • The Package Could Not Be Installed: Find the Real Cause (2026)

    The Package Could Not Be Installed: Find the Real Cause (2026)

    • The Package Could Not Be Installed: What WordPress Is Rejecting
    • Read the Line Under the Package Could Not Be Installed Message
    • Why the Package Could Not Be Installed: The One-Folder Rule
    • AHosting Zip Layout Test Matrix: What Installed and What Did Not
      • Plugin zips: layout
      • Plugin zips: header, version and archive
      • Theme zips
    • Where Zips Come From: GitHub, Vendor Bundles and macOS
      • GitHub archives
      • Vendor and marketplace bundles
      • Zips made on a Mac
    • When the Package Could Not Be Installed Because of the Server
    • Decode Your Own Message: The Package Could Not Be Installed Checker
    • Fix It: Re-zip So the Plugin Sits in One Folder
    • After the Zip Installs: Try Unknown Packages on a Copy First
    • Frequently Asked Questions: The Package Could Not Be Installed
      • What does the package could not be installed mean when I upload a WordPress plugin in 2026?
      • Why is the package could not be installed followed by no valid plugins were found?
      • How do I fix the package could not be installed when the theme is missing the style.css stylesheet?
      • Does a __MACOSX folder cause the package could not be installed on a zip made on a Mac?
      • Is the package could not be installed a PHP version problem or a zip layout problem?
      • Does AHosting shared hosting cause the package could not be installed when I upload a plugin?
      • Can I install a plugin from cPanel File Manager on AHosting web hosting in 2026?
      • GitHub zip vs vendor zip: which is more likely to cause the package could not be installed?
      • Is it safe to retry an upload after the package could not be installed on a live AHosting site?
      • Theme zip vs plugin zip: how can I tell which one I downloaded before uploading in 2026?
    TL;DR

    The package could not be installed is only a headline. The line under it names the check that failed. In our WordPress 7.1.4 lab, a plugin zip installed only when its main file sat inside one folder and nothing else sat beside that folder. Open the zip, fix its top level, and upload again. A failed upload changes nothing on the live site.

    Listen: WordPress prints one generic headline for every refused zip, and the line under it names the real check. By Matt Chrust, Director of Business Development, AHosting.

    The Package Could Not Be Installed: What WordPress Is Rejecting

    When WordPress says the package could not be installed, it has already received your zip and unpacked it. The upload worked. What failed is the inspection that follows, and the verdict sits in a second line that most people skim past. That second line is the whole diagnosis.

    This guide decodes it for plugin and theme uploads. It shows which zip layouts WordPress accepted and refused in a lab test, lists the few cases where the server rather than the zip is at fault, and ends with a decoder you can use on your own message. Everything was measured on stock WordPress 7.1.4 on one workstation. It was not measured on an AHosting server, and the guide says so wherever that matters.

    In the source, the sentence is one string, declared at class-wp-upgrader.php line 205. Every refusal reuses it as a headline and attaches its own reason, which is why many different mistakes all print the same top line.

    Read the Line Under the Package Could Not Be Installed Message

    Match the second line to the first column below. Each row names the check inside WordPress that produced it, so you know what to fix before you touch the zip.

    Second lineCheck that firedUsual cause
    No valid plugins were found.Plugin check: no PHP file with a Plugin Name header at the top of the folder it inspectsZip layout, a theme uploaded as a plugin, or a zip inside the zip
    The theme is missing the style.css stylesheet.Theme check: no style.css at the top of the folder it inspectsA plugin uploaded as a theme, or a wrapper folder
    The style.css stylesheet does not contain a valid theme header.Theme check: style.css has no Theme NameA stylesheet copied from another package
    Template is missing.Theme check: no index.php, no templates/index.html, no Template headerA partial theme copy
    The PHP version on your server is ...Requires PHP header is higher than the server versionA newer plugin on an older PHP version
    Your WordPress version is ...Requires at least header is higher than the site versionA newer plugin on an older WordPress
    Incompatible Archive. on its own screenZip validation, before the installer runsA truncated download or a file that is not a zip
    Second lines printed under the package error, matched to the check that produced each (WordPress 7.1.4 source and lab).

    The first row has the least obvious cause, so this guide spends most of its time there.

    Why the Package Could Not Be Installed: The One-Folder Rule

    After unpacking, install_package() looks at what is directly inside the unpacked folder. If there is exactly one item and it is a folder, WordPress steps inside it and treats its contents as the package. Anything else, and WordPress uses the unpacked folder as it stands. That is the one folder rule, and it sits at lines 606 to 614 of the same file.

    The plugin check then runs check_package() on whatever folder was chosen. It globs for *.php directly in that folder, reads the header of each file it finds, and stops at the first one that has a Plugin Name. It never looks into a subfolder. If no file qualifies, it returns No valid plugins were found., at class-plugin-upgrader.php line 490.

    Two consequences follow. A readme.txt or a second folder next to the plugin folder is enough to fail, because WordPress no longer steps inside. And a plugin wrapped in an extra folder fails, because WordPress steps in once and finds only another folder. The header reader also takes only the first 8 KB of each file, so a Plugin Name comment buried under a long license block can be missed. The official header requirements page lists Plugin Name as the one required field. WordPress plugin header requirements explains where the comment belongs.

    Four plugin zip layouts and the result of each upload Two layouts installed: a single plugin folder, and plugin files directly at the zip root. Two failed with No valid plugins were found: a folder with a readme beside it, and a plugin folder wrapped inside another folder. What the top of your zip has to look like INSTALLED my-plugin/ my-plugin.php includes/ One folder, main file directly inside it. INSTALLED my-plugin.php includes/ No folder at all: files at the zip root. REFUSED my-plugin/ my-plugin.php readme.txt Two items at the top, so no folder is entered. REFUSED wrapper/ my-plugin/ my-plugin.php Main file is one level too deep. AHosting lab, WordPress 7.1.4, PHP 8.5.10. Refused layouts returned: No valid plugins were found.

    The graphic above shows the four layouts we tested first. The tables that follow cover the rest.

    AHosting Zip Layout Test Matrix: What Installed and What Did Not

    We built 22 test zips with a script, added one real GitHub archive, and uploaded each one through the normal Plugins and Themes screens on a fresh WordPress 7.1.4 install. The tables record exactly what the screen printed. The zips were made with Python, not with macOS Compress or a GitHub download, so the tables test layouts, not tools.

    Plugin zips: layout

    Zip layoutResult
    my-plugin/my-plugin.phpInstalled
    my-plugin.php directly at the zip rootInstalled
    Plugin folder plus a __MACOSX folderInstalled
    Plugin folder plus readme.txt beside itNo valid plugins were found.
    Plugin folder plus a second folder of docsNo valid plugins were found.
    wrapper/my-plugin/my-plugin.phpNo valid plugins were found.
    my-plugin/includes/my-plugin.phpNo valid plugins were found.
    A zip inside the zip, plus a license fileNo valid plugins were found.
    A theme zip uploaded as a pluginNo valid plugins were found.
    Real GitHub archive of the Classic Editor plugin, trunkInstalled, into the folder classic-editor-trunk
    Only an empty folderNo valid plugins were found.
    AHosting Zip Layout Test Matrix, part 1: plugin uploads by folder layout. WordPress 7.1.4 lab, one workstation.

    Plugin zips: header, version and archive

    Zip contentResult
    PHP file with no Plugin Name headerNo valid plugins were found.
    Plugin Name header after the first 9,000 bytesNo valid plugins were found.
    Header says Requires PHP 99.0The PHP version on your server is 8.5.10, however the uploaded plugin requires 99.0.
    Zip cut to half its sizeOwn screen: Incompatible Archive. No headline.
    A text file renamed to .zipOwn screen: Incompatible Archive. No headline.
    AHosting Zip Layout Test Matrix, part 2: header, version and archive failures. WordPress 7.1.4 lab.

    The last two rows matter for diagnosis. A broken archive is caught earlier, by a validity check that runs before the installer, so it never prints the package error at all. If you see the headline, the file was a readable zip.

    Theme zips

    Zip layoutResult
    my-theme/style.css plus index.phpInstalled
    style.css and index.php at the zip rootInstalled
    A plugin zip uploaded as a themeThe theme is missing the style.css stylesheet.
    pkg/my-theme/style.cssThe theme is missing the style.css stylesheet.
    Theme folder plus notes.txt beside itThe theme is missing the style.css stylesheet.
    style.css with no Theme NameThe style.css stylesheet does not contain a valid theme header.
    style.css but no index.phpTemplate is missing.
    AHosting Zip Layout Test Matrix, part 3: theme uploads. WordPress 7.1.4 lab.

    Themes follow the same one folder rule, and the stylesheet rules are documented on the main stylesheet page for theme developers. In the lab, all three kinds of mistake printed the same headline with a different second line.

    Where Zips Come From: GitHub, Vendor Bundles and macOS

    GitHub archives

    GitHub generates its archives with git archive, and says the repository name is part of the folder structure inside the file. GitHub documents this plainly. In the lab, the trunk archive of the WordPress Classic Editor plugin had one top-level folder and installed cleanly, but into a folder named classic-editor-trunk, not classic-editor. That shape works only when the plugin sits at the root of the repository. When the plugin lives in a subfolder, the wrapper layout from the matrix applies and you get the package error. Zip the subfolder yourself instead.

    Vendor and marketplace bundles

    Some vendors ship a download that holds the installable zip next to documentation, a license file or sample content. Upload that bundle as it comes and WordPress sees a zip inside a zip. The lab result is the same as for any other extra item at the top: No valid plugins were found. Unzip the bundle on your computer and upload the inner zip.

    Zips made on a Mac

    A popular explanation blames the __MACOSX folder that macOS adds to some archives. In WordPress 7.1.4 that is wrong: the unzip code skips __MACOSX/ entries at file.php line 1709, and our test zip carrying one installed normally. The real Mac risk is selecting several items before choosing Compress. Apple documents that several items at once become a file called Archive.zip, so open it and check what is at the top before you upload.

    When the Package Could Not Be Installed Because of the Server

    Most cases are zip layout. A smaller group is the archive itself. The plain Incompatible Archive screen appears when WordPress cannot open the file as a zip. It opens the file in a strict consistency mode, and the PHP manual for ZipArchive::open lists the error codes, including one for a file that is not a zip archive.

    The usual reason is a download cut short. Zip files keep their index, the end of central directory record, at the end of the file, so a truncated copy has no index. The PKWARE format specification requires that record in every valid zip. Download the file again and compare its size with the source before you retry.

    If the PHP zip extension is missing, WordPress falls back to its bundled PclZip library, so a missing extension alone does not cause this error. We forced that fallback in the lab with a filter and the results on three test zips matched the normal path exactly. We did not test a server where the extension is truly absent.

    Size and permission problems print different messages. A file over the upload limit gets the link you followed has expired screen or a 413 error. A folder WordPress cannot write to gets could not create directory, and a repeat install of the same plugin gets destination folder already exists. If you see one of those, this guide is the wrong one.

    Decode Your Own Message: The Package Could Not Be Installed Checker

    Use the decoder to turn the second line into a cause and a fix. It runs in your browser and changes nothing on your site.

    Package Error Decoder

    Pick the line printed under the headline, then where the zip came from. Nothing is sent anywhere.

    If activation fails next, read this

    Fix It: Re-zip So the Plugin Sits in One Folder

    The repair is the same for almost every layout failure. Work on your own computer, not in WordPress.

    1. Unzip the download into an empty folder and look at the top level.
    2. Find the folder that holds the main plugin file, the PHP file that begins with a Plugin Name comment.
    3. Move anything else out of the way, so that folder is the only item you are about to zip.
    4. Zip that folder itself. On a Mac or Linux terminal, zip -r my-plugin.zip my-plugin run one level above the folder does it.
    5. Open the new zip and confirm the main file is directly inside the single top-level folder.
    6. Upload it again on the Plugins, Add New screen.

    A failed upload is harmless to a live site. In our lab nothing was added to the plugins folder, and the unpacked files waited in wp-content/upgrade until the next install or update cleared that folder, at class-wp-upgrader.php lines 384 to 394. If the plugin installs but then will not turn on, that is a different problem and the plugin could not be activated guide covers it.

    You can also skip the upload screen. Upload the zip with cPanel File Manager and use its Extract action. cPanel notes that Extract works for zip files only when the zip extension exists on the server. Extracting by hand skips the installer check, so a bad package simply fails to appear in the Plugins list. Treat that as a workaround, not a fix.

    After the Zip Installs: Try Unknown Packages on a Copy First

    Re-zipping solves the error. If you install third-party zips on a site that earns money, the habit worth keeping is trying them on a copy first. The WordPress hosting plans list a staging site for exactly that, so a plugin that installs but breaks something never touches the live pages.

    For the manual route above, the web hosting plans list File Manager and SSH access. And if you handle many client sites with their own PHP settings, a VPS with root access and snapshots lets you roll a whole server back after a bad package.

    Frequently Asked Questions: The Package Could Not Be Installed

    What does the package could not be installed mean when I upload a WordPress plugin in 2026?

    Specifically, it is the headline WordPress prints whenever it unpacks your zip and then refuses what is inside. The upload itself worked. The line directly under the headline names the check that failed, such as no valid plugins were found or a missing style.css.

    Why is the package could not be installed followed by no valid plugins were found?

    In practice, it means WordPress looked at the top of the unpacked folder and found no PHP file with a Plugin Name comment. The usual causes are a second item beside the plugin folder, a plugin nested one level too deep, a zip inside the zip, or a theme uploaded as a plugin.

    How do I fix the package could not be installed when the theme is missing the style.css stylesheet?

    Typically the zip holds a plugin, or the theme sits inside a wrapper folder, or a stray file sits beside the theme folder. Open the zip, make sure style.css is directly inside the single top-level folder, and upload the re-zipped file again.

    Does a __MACOSX folder cause the package could not be installed on a zip made on a Mac?

    In practice, no. In our WordPress 7.1.4 lab a plugin zip that carried a __MACOSX entry beside the plugin folder installed normally, because the unzip code skips that folder. Look for a second visible item or a nested folder instead.

    Is the package could not be installed a PHP version problem or a zip layout problem?

    However, it can be either, and the second line tells you which. A line that starts with The PHP version on your server is a version problem. No valid plugins were found, or a missing style.css, is a zip layout problem.

    Does AHosting shared hosting cause the package could not be installed when I upload a plugin?

    In fact, the checks read the contents of your zip, so the host rarely matters. The host matters only when the server cannot open the archive at all. We measured on a workstation lab, not on an AHosting server, so treat that last point as untested.

    Can I install a plugin from cPanel File Manager on AHosting web hosting in 2026?

    Indeed, yes, with a caveat. The web hosting plans list File Manager, and cPanel documents an Extract action for zip files. Extracting by hand skips the upload screen, so the installer check never runs and an invalid package simply will not appear in the Plugins list.

    GitHub zip vs vendor zip: which is more likely to cause the package could not be installed?

    For example, a GitHub archive keeps the repository name in its folder structure, so it fails when the plugin lives in a subfolder of the repository. A vendor download fails when it bundles the real zip beside documentation. Both end at the same second line.

    Is it safe to retry an upload after the package could not be installed on a live AHosting site?

    Indeed, it is safe. In our lab a failed install added nothing to the plugins folder. The unpacked files stayed in wp-content/upgrade until the next install or update cleared that folder, so nothing active changed.

    Theme zip vs plugin zip: how can I tell which one I downloaded before uploading in 2026?

    Finally, open the zip without installing it. A theme has a style.css file with a Theme Name comment. A plugin has a PHP file that begins with a Plugin Name comment. Uploading either one on the wrong screen produces the package error.

    November 4, 2026
  • Plugin Could Not Be Activated Because It Triggered a Fatal Error: Find the Real Cause (2026)

    Plugin Could Not Be Activated Because It Triggered a Fatal Error: Find the Real Cause (2026)

    • Plugin Could Not Be Activated Because It Triggered a Fatal Error: What WordPress Just Did
    • Why the Plugin Could Not Be Activated Notice Never Shows the Real PHP Error
      • How to read the hidden error with one address change
    • Decode the Error: What Each Plugin Could Not Be Activated Message Means
    • When a Plugin Could Not Be Activated and You Are Locked Out: Fix It from cPanel
    • Why a Plugin Could Not Be Activated on Shared Hosting: PHP Version, Extensions, Memory
      • PHP version: old plugins meet a new PHP
      • Extensions: the Imagick case
      • Memory: the load itself can run out
    • When a Plugin Could Not Be Activated Because Two Plugins Collide
    • Four Screens That Look Like a Plugin Could Not Be Activated Error
    • Before the Next Plugin Could Not Be Activated Message: A Safer Install Routine
    • Frequently Asked Questions: Plugin Could Not Be Activated
      • Why does WordPress say the plugin could not be activated because it triggered a fatal error in 2026?
      • How do I see the real error when the plugin could not be activated and the screen shows no details?
      • Why would a plugin could not be activated message appear on AHosting shared hosting but not on my old host?
      • Does a PHP 8.4 upgrade explain why a plugin could not be activated in 2026?
      • Activation fatal error vs critical error: what is the difference between the two WordPress screens?
      • Plugin could not be activated vs plugin does not have a valid header: which message do I actually have?
      • How do I deactivate a plugin from AHosting cPanel File Manager when a plugin could not be activated and wp-admin is locked?
      • Why does a parse error line number point one line after my real mistake in a plugin file?
      • Does AHosting include Imagick for plugins that need it, or will the plugin could not be activated message return?
      • What should I check before installing a plugin in 2026 so the plugin could not be activated message never appears?
    TL;DR

    When a plugin could not be activated because it triggered a fatal error, WordPress 7.1.4 hides the real PHP message. Load the failed address with action=error_scrape to read it, then match the line to a cause.

    Listen: WordPress runs a plugin once as a test, and the failure notice carries no detail. By Matt Chrust, Director of Business Development, AHosting.

    Plugin Could Not Be Activated Because It Triggered a Fatal Error: What WordPress Just Did

    When a plugin could not be activated because it triggered a fatal error, the plugin did not break your site. WordPress ran it once as a test, PHP stopped partway through, and WordPress refused to switch it on. The message tells you that something failed. It does not tell you what, and that is the part this guide fixes.

    Activation is a trial run, not a toggle. In WordPress 7.1.4, activate_plugin() checks the plugin header and its PHP requirements, sends the browser a redirect to an error address, and only then loads the plugin file inside an output buffer. If the file finishes, the plugin is saved as active. If PHP dies, nothing is saved and the browser follows the redirect that was already sent.

    We read those steps in wp-admin/includes/plugin.php lines 647 to 679 and checked them in a lab. The lab was a stock WordPress 7.1.4 install on PHP 8.5.10 with one workstation as the server, so treat the screens below as what WordPress does, not as AHosting server output. A set of small plugins, each broken on purpose, produced every message in this post.

    What happens when you click Activate on a plugin in WordPress 7.1.4 Five steps: validate_plugin and requirements checks, redirect to the error URL is sent first, the plugin file is loaded once inside an output buffer, success saves the active plugins list, a fatal error leaves the browser on the notice page with no PHP message because wp_kses_post removes the iframe. 1. Click Activate plugins.php 2. Validate header, Requires PHP (these fail without a notice) 3. Redirect is sent error=true + nonce, before any plugin code 4. Load the file once inside an output buffer plugin_sandbox_scrape() 5a. No fatal error active_plugins is saved the redirect lands on the success page 5b. PHP fatal error nothing is saved, plugin stays off the browser follows the redirect already sent notice says “fatal error” and shows no detail (the iframe that held it is removed)

    Two details in that flow explain most of the confusion. The redirect goes out before the plugin loads, so the error page appears even though no plugin code has finished. The test also loads only the plugin’s main file, which is why a plugin can activate cleanly and still crash later on a normal page request. Look-alike screens, including that second case, are covered further down.

    Why the Plugin Could Not Be Activated Notice Never Shows the Real PHP Error

    Older WordPress versions printed the PHP message in a small frame under the notice. WordPress 6.3.5 still does. From 6.4 the same notice goes through wp_admin_notice(), and in 7.1.4 that function ends with wp_kses_post() (wp-includes/functions.php line 9318). That sanitizer does not allow an iframe, so the frame that carried the PHP message is removed before the page is sent.

    We measured it rather than inferring it. The notice HTML held the sentence and nothing else, the nonce check passed, and a direct call to wp_kses_post() with an iframe in the input returned only the paragraph. In plain terms, on a stock 7.1.4 site the screen that says a plugin could not be activated has no way to show you why.

    How to read the hidden error with one address change

    The error is still produced. WordPress keeps the code that prints it (plugins.php lines 176 to 195) and the address of that code is sitting in your browser. After the failed activation, the address bar reads like this:

    /wp-admin/plugins.php?error=true&plugin=folder%2Ffile.php&_error_nonce=1a2b3c4d5e

    1. Change error=true to action=error_scrape.
    2. Rename _error_nonce to _wpnonce and keep its value.
    3. Load the new address while you are still logged in as an administrator.

    WordPress loads the plugin again with error display switched on and prints the raw PHP message, for example Fatal error: Uncaught Error: Class "Imagick" not found with a file name and line. The nonce is tied to your login and the plugin, so the address does not work for anyone else. If it returns a permission page, use the log route described for lockouts below.

    Decode the Error: What Each Plugin Could Not Be Activated Message Means

    The scraped line starts with a PHP error class, and each class points at a different cause. This table is what the lab printed for six plugins we broke on purpose, with the first fix for each. Use it, or use the decoder underneath, which carries the same rows plus the two screens that are not fatal errors.

    Line the scraped error starts withWhat caused it in the labFirst fix
    Class "Imagick" not foundThe plugin used an extension that is not loadedCheck the module list for that PHP version, or pick a plugin that falls back to GD
    Call to undefined function create_function()Code written for PHP 7 and earlier meets PHP 8Update or replace the plugin
    Cannot redeclare function lab_shared_helper()A second plugin defined the same function nameDeactivate the other copy first
    Failed opening required after a require_once warningAn includes file the plugin loads was not thereUpload a complete copy of the plugin
    Allowed memory size of 16777216 bytes exhaustedThe load tried to allocate 64 MB under a 16 MB limitRaise memory_limit, then look at what loads at start-up
    Parse error: syntax error, unexpected tokenA missing parenthesis on line 6, reported on line 7Read the line above the one reported
    Table 1: Activation fatal error decoder. Each row is a message printed by WordPress 7.1.4 in the AHosting lab, with the file path trimmed.

    Plugin Activation Error Decoder

    Pick the line your scraped error starts with and read the cause, the fix and the guide that goes deeper.

    Read the matching guide

    One row deserves a second look. The parse error pointed one line past the real mistake, because PHP reports where it noticed the problem. When the line you are shown looks fine, the fault is almost always the line above it.

    When a Plugin Could Not Be Activated and You Are Locked Out: Fix It from cPanel

    If the plugin never activated, you are not locked out: the plugin is simply off. The lockout case is the other one, where a plugin that is already active fails and takes wp-admin with it. Both are fixed the same way, from outside WordPress.

    1. Open File Manager in cPanel and go to wp-content/plugins.
    2. Rename the plugin folder, for example my-plugin to my-plugin-off.
    3. Reload wp-admin. WordPress sees the plugin as missing and drops it from the active list.
    4. Read the error in the account error log or in wp-content/debug.log, which the WordPress debugging guide explains how to switch on.
    5. Fix or replace the code, rename the folder back, and activate again.

    The same steps work over SSH or SFTP, and every AHosting web hosting plan includes a File Manager and SSH access, so you never need a support ticket just to rename a folder. Keep a copy of the folder before you edit anything inside it.

    Why a Plugin Could Not Be Activated on Shared Hosting: PHP Version, Extensions, Memory

    Most activation failures on a shared server come down to three things the plugin assumed and the server did not provide. Check them in this order, because each is a one-minute test.

    PHP version: old plugins meet a new PHP

    A plugin that calls create_function() worked until PHP 8.0 and fails on every later version, because the manual lists the function as removed. On the shared server we checked, the default PHP moved from 8.2 to 8.4 on 2026-10-22, although each domain keeps whatever version it is set to in MultiPHP Manager. Our guide to the best PHP version for WordPress on cPanel explains how to check and change it.

    Extensions: the Imagick case

    A missing extension prints as a missing class. On our servers, Imagick is not part of the standard PHP builds, while GD is bundled on every version. Imagick exists only in the CloudLinux selector builds, which you reach by switching to alt-php in Select PHP Version. List what your version really loads with php -m, as the recommended modules warning guide shows.

    Composer is the other common source. A plugin that ships without its vendor folder stops on require_once vendor/autoload.php because Composer generates that file at install time. A partial upload leaves the include path pointing at nothing, which the failed to open stream guide walks through.

    Memory: the load itself can run out

    Loading a plugin counts against memory_limit like any other request. Raise it in MultiPHP INI Editor, as the WordPress memory limit guide describes. If a plugin needs more than a few hundred megabytes just to load, raising the limit hides the problem. A VPS with root access is the right place for software that needs its own PHP extensions or a custom build, not a larger limit on shared hosting.

    When a Plugin Could Not Be Activated Because Two Plugins Collide

    In the lab we activated plugin A, which defines lab_shared_helper(), and then plugin B, which defines the same name. Plugin A stayed active and plugin B printed Cannot redeclare function lab_shared_helper() with the file and line of the first definition. The active list held only plugin A afterward.

    Real collisions are usually the same plugin installed twice, such as a free copy and a pro copy, or an old folder left behind after a manual update. Look at the file named in parentheses: it tells you which plugin got there first. Authors avoid the problem with prefixes or the PHP namespaces feature, so a collision between two well-maintained plugins is rare and worth reporting to both authors.

    Four Screens That Look Like a Plugin Could Not Be Activated Error

    Four different outcomes read like the same problem. We triggered each one on purpose and recorded what the browser received.

    ScreenWhat the browser receivedWhat it meansState afterward
    Plugin could not be activated because it triggered a fatal errorA redirect, then the notice pagePHP failed while loading the plugin filePlugin stays inactive
    Current PHP version does not meet minimum requirementsHTTP 500 error pageThe header declared a PHP version higher than yoursNo plugin code ran
    The plugin does not have a valid headerHTTP 500 error pageNo usable plugin header in that folderNo plugin code ran
    There has been a critical error on this websiteHTTP 500 on the front end, wp-login.php and wp-adminCode that was already active failed on a requestWhole site affected
    Table 2: Four screens, measured in the AHosting lab on WordPress 7.1.4. The last row followed one line of bad code added to an active plugin.

    The last row is the one that costs money. WordPress added fatal error protection in 5.2, and the core team write-up on recovery mode explains how a fatal error now reaches the administrator. The WP Tavern report on that release reports that WordPress emails the administrator, who can then deactivate the failing plugin. Our lab had no mail server, so we checked the screen but not the email.

    A related message uses the word resumed instead of activated. The same file prints it when a paused plugin cannot start again. We did not trigger that case in the lab.

    Before the Next Plugin Could Not Be Activated Message: A Safer Install Routine

    You can turn most of these failures into a note on a staging copy. Keep the routine short enough that you actually follow it.

    • Read the plugin page for Requires PHP and any named extensions, and compare them with your site.
    • Take a backup of the site and the database first.
    • Activate on a staging copy before the live site.
    • If the notice appears, use the address change described earlier before you reinstall anything.
    • Delete a failed plugin folder rather than leaving it in wp-content/plugins.

    That solves the problem without any new hosting. If you want the staging step built in, the AHosting WordPress hosting plans include a staging site, and our staging site guide shows what to test there. The routine works on any host, and the plugin could not be activated message becomes something you read on a copy, not on your live pages.

    Frequently Asked Questions: Plugin Could Not Be Activated

    Why does WordPress say the plugin could not be activated because it triggered a fatal error in 2026?

    Specifically, WordPress loaded the plugin main file once as a test and PHP stopped with a fatal error before activation finished. The plugin stays inactive, and the message gives no detail, so the cause is whatever PHP printed on the line after the failure. The decoder table in this guide maps each error line to its fix.

    How do I see the real error when the plugin could not be activated and the screen shows no details?

    In practice, copy the address from the failed activation page, change error=true to action=error_scrape and rename the _error_nonce parameter to _wpnonce, then load that address while logged in. WordPress runs the plugin again with errors displayed and prints the raw PHP message. If that is blocked, read debug.log or the account error log instead.

    Why would a plugin could not be activated message appear on AHosting shared hosting but not on my old host?

    In particular, the two servers usually differ in PHP version or loaded extensions, not in WordPress. For example, a plugin that needs the Imagick extension runs where Imagick is installed and fails where it is not. Compare the PHP version in MultiPHP Manager and the module list from php -m in cPanel Terminal on both.

    Does a PHP 8.4 upgrade explain why a plugin could not be activated in 2026?

    In practice, yes, when the plugin is old. Code that calls a function PHP removed, such as create_function in PHP 8.0, stops with Call to undefined function the moment the file loads. Update or replace that plugin rather than moving the whole site back to an older PHP version.

    Activation fatal error vs critical error: what is the difference between the two WordPress screens?

    Specifically, the activation message appears while you are trying to turn a plugin on, and the plugin stays off. The critical error screen appears when code that is already active fails on a normal request, so the front end and wp-admin return HTTP 500. In our lab the first was a redirect to a notice and the second took the whole site down.

    Plugin could not be activated vs plugin does not have a valid header: which message do I actually have?

    In contrast to the fatal error notice, the valid header message means WordPress never ran any plugin code. It found no usable plugin header in the folder you gave it, often because a zip was unpacked one folder too deep. The fatal error notice means the header was fine and the code failed.

    How do I deactivate a plugin from AHosting cPanel File Manager when a plugin could not be activated and wp-admin is locked?

    In particular, open File Manager, go to wp-content/plugins and rename the plugin folder, for example by adding -off to its name. WordPress then treats the plugin as missing and clears it from the active list on the next admin load. Rename it back only after you have fixed or replaced the code.

    Why does a parse error line number point one line after my real mistake in a plugin file?

    Notably, PHP reports the place where it noticed the problem, not where you made it. In our lab a missing closing parenthesis on line 6 was reported on line 7 at the next token. Read the reported line, then look at the line above it for an unclosed bracket, quote or semicolon.

    Does AHosting include Imagick for plugins that need it, or will the plugin could not be activated message return?

    Specifically, Imagick is not part of the standard PHP builds on our shared servers, while GD is bundled on every version. Imagick exists only in the CloudLinux selector builds, reached by switching to alt-php in Select PHP Version. A plugin that needs Imagick and does not check for it first will fail at activation until you do that or the plugin falls back to GD.

    What should I check before installing a plugin in 2026 so the plugin could not be activated message never appears?

    Finally, read the plugin page for its Requires PHP version and required extensions, compare them with your site, and activate it on a staging copy first. Keep a current backup. That order turns a surprise on the live site into an error you read on a copy.

    November 3, 2026
  • WordPress Mixed Content: Find and Fix Every http:// URL After SSL

    WordPress Mixed Content: Find and Fix Every http:// URL After SSL

    • WordPress Mixed Content: What Your Browser Is Actually Reporting
      • Upgraded, Blocked, or Only Warned: How Chrome Sorts Mixed Content
      • The srcset Row of This Mixed Content Table Catches Most People
    • How to Find Every Mixed Content Reference in Five Minutes
      • Read the Mixed Content Lines in the Console First
      • Search the Page Source for the Same URLs
      • Decode a Mixed Content Console Line
    • Where WordPress Mixed Content Is Stored After an HTTPS Switch
      • What WordPress Core Rewrites for You
      • What WordPress Never Rewrites
    • How to Fix WordPress Mixed Content Without SSH
      • First Step: Make Both WordPress URLs HTTPS
      • Second Step: Replace the Stored URLs in Post Content
      • Third Step: Use a Serialized-Aware Tool for Options, Widgets and Meta
      • Fourth Step: Fix What Is Not in the Database
      • Fifth Step: Purge Every Cache Layer
    • Why Redirects and Insecure-Content Plugins Do Not Cure Mixed Content
      • A Redirect Moves Pages, Not the URLs Inside Them
      • Runtime Rewriting and upgrade-insecure-requests Only Mask the Problem
    • How to Verify Mixed Content Is Gone for Good
    • Frequently Asked Questions About WordPress Mixed Content
      • How do I allow mixed content in Chrome in 2026, and should I do that on a WordPress site?
      • Does WordPress fix mixed content by itself in 2026 once I switch the site URL to HTTPS?
      • Why does my AHosting WordPress site show mixed content in 2026 after I installed an SSL certificate?
      • Mixed content blocked vs mixed content upgraded: which WordPress resources does Chrome treat each way?
      • Is a phpMyAdmin SQL REPLACE vs a search-replace plugin safer for fixing WordPress mixed content?
      • What should I check when mixed content remains after search-replace on a site behind Cloudflare and W3 Total Cache?
      • Does AHosting charge extra for an SSL certificate that removes the not secure warning on my site?
      • How can I tell if a WordPress mixed content warning comes from a plugin option or a theme file?
      • Will AHosting support help me trace a WordPress mixed content URL that I cannot find myself?
      • How do I force my WordPress website to use HTTPS in 2026 without creating mixed content?
    TL;DR

    WordPress mixed content means an HTTPS page is asking for something over http://. In our Chrome 156 test, images, audio and CSS backgrounds were upgraded to HTTPS, while scripts, stylesheets, iframes, fetch calls and srcset images were blocked. WordPress rewrites only your own old home URL, and only after a flagged http-to-https switch, so everything else has to be fixed where it is stored. Read the console, change each URL at its source, purge every cache, then check again in a private window.

    Listen: a new certificate cannot fix mixed content, because the http:// address is stored in your content, widgets or files. By Matt Chrust, Director of Business Development, AHosting.

    WordPress Mixed Content: What Your Browser Is Actually Reporting

    WordPress mixed content is what you get when a page loads over HTTPS but asks for one or more of its parts over plain http://. The certificate is usually fine. The padlock changes, or a script quietly stops working, because a single stored URL still starts with the old scheme. Reissuing the certificate therefore does nothing, since the certificate was never the problem.

    This guide covers how Chrome treats each kind of insecure request, how to find every one of them, where WordPress keeps them, and the order in which to fix them without SSH access. Everything about browser behavior below comes from a throwaway WordPress 7.1.4 site that we switched from http:// to https:// and loaded in Chrome 156 with the console captured, so the messages are quoted instead of paraphrased.

    Upgraded, Blocked, or Only Warned: How Chrome Sorts Mixed Content

    Browsers split insecure subresources into two groups. The W3C Mixed Content specification calls them upgradable and blockable: an upgradable request is rewritten to https:// automatically, and everything else is blocked. MDN describes the same split and names images, video and audio as the upgradable types. Chrome announced the move to auto-upgrading images in a Chromium blog post in 2019, and the other types are blocked.

    Our test matched that split, with one result the references do not spell out. Each row below is one console line from the same page.

    Resource on the HTTPS pageChrome 156 console wordingWhat happened
    Image src (same host, other host or www variant)insecure element … automatically upgraded to HTTPSRequest sent to https://, loaded because the host answered there
    Audio srcinsecure element … automatically upgraded to HTTPSUpgraded
    CSS background url() in a style attributeinsecure element … automatically upgraded to HTTPSUpgraded
    Image srcset candidateinsecure image … This request has been blockedBlocked, even though the src of the same image was upgraded
    Scriptinsecure script … This request has been blockedNever ran
    Stylesheet linkinsecure stylesheet … This request has been blockedStyles not applied
    Iframeinsecure frame … This request has been blockedFrame stayed empty
    fetch() call from an inline scriptinsecure resource … This request has been blockedRequest never sent
    Form actioncontains a form that targets an insecure endpointWarning only, page not blocked
    Link (a href)No messageNot mixed content, because nothing loads until the visitor clicks
    How Chrome 156.0.8078.74 handled each http:// reference on an HTTPS WordPress 7.1.4 page. AHosting lab, 2 November 2026.

    The srcset Row of This Mixed Content Table Catches Most People

    The srcset row is the one that catches people. A search that only looks for src= attributes will miss it, and the page still looks fine on most screens because the upgraded src loads. The srcset attribute only holds http:// URLs when something prints its own, such as hand-written HTML, imported content or a plugin or theme that builds the attribute itself, so look for it by name when the console reports an insecure image.

    How Chrome 156 handled insecure resources on an HTTPS WordPress page Three columns. Upgraded to HTTPS: image src, audio src, CSS background url. Blocked: script, stylesheet, iframe, fetch call, srcset image candidate. Warning only: form action. What Chrome 156 did with each http:// reference UPGRADED to https:// BLOCKED WARNING ONLY Image src Audio src CSS background url() Script Stylesheet link Iframe fetch() call in a script Image srcset candidate Form action Loads if the host answers on HTTPS. Otherwise the image breaks. The form still loads. The console warns about the insecure endpoint. AHosting lab: WordPress 7.1.4 over HTTPS, Chrome 156.0.8078.74, console messages captured.

    How to Find Every Mixed Content Reference in Five Minutes

    Finding mixed content takes two views of the same page: what the browser refused, and which template printed it. The console answers the first question and the page source answers the second.

    Read the Mixed Content Lines in the Console First

    Open the affected page in Chrome, press F12 (or Cmd+Option+I on a Mac), choose the Console tab and reload. Type Mixed Content in the filter box. Every line names the page, the kind of resource (script, stylesheet, frame, image, element, resource) and the exact http:// URL. Blocked lines end with the sentence that the request has been blocked. Upgraded lines say they were automatically upgraded. Copy the URLs into a text file, because you will search for each one.

    A page only reports what it requested while you watched. A lightbox script, a cookie banner or a chat widget may request its own insecure URL after a click or a delay, so scroll the page, open the menu and trigger the popups before you decide the list is complete.

    Search the Page Source for the Same URLs

    Next, open view-source: for the same page and search for http://. The console tells you what was refused, and the source tells you where in the HTML it appeared: inside the main content, in the footer, in a script tag near the closing body tag, or inside an inline script that builds a request. In our lab, a script printed from a plugin option and a script hard-coded in a theme tag both appeared in the footer, and both were blocked, while the same-host script in the post body had already been fixed by WordPress.

    Expect some hits that are not mixed content. A plain link with an http:// address is harmless until someone clicks it. The same goes for the http://www.w3.org namespace inside an inline SVG, which is an identifier and not a request.

    Decode a Mixed Content Console Line

    The decoder below turns a pasted console line into a verdict and a first place to look. It uses the results from our test, so treat the wording as Chrome 156 specific.

    Mixed Content Console Decoder

    Paste one line from the Chrome console, or pick the resource type yourself. The decoder tells you what Chrome did and where to look in WordPress first.

    Waiting for a console line or a type.

    See the SSL certificate options

    Where WordPress Mixed Content Is Stored After an HTTPS Switch

    An http:// URL has to be stored somewhere to appear on the page. Knowing the storage location tells you which fix reaches it, which is why this section comes before the fix.

    What WordPress Core Rewrites for You

    Since WordPress 5.7, core can replace your own old http:// home URL on the fly. The function is wp_replace_insecure_home_url(). In the 7.1.4 source it sits in wp-includes/https-migration.php, and it does a plain string replacement of the http form of your home URL, and its JSON-escaped form, with the https form. It is attached to four filters in default-filters.php: the_content, the_excerpt, widget_text_content and wp_get_custom_css, so post content, excerpts, classic Text widgets and Additional CSS are covered.

    Three conditions have to hold before the replacement runs. The site must be using HTTPS, the home and siteurl options must share a host, and the https_migration_required option must be true. That option is set by a hook on the home option, which fires when home changes from http to https, and it is set to false when the site is flagged as fresh. In our lab, changing the home option from http to https set the option to true, and an img tag and a script tag in a Custom HTML block of a post were both rewritten with no console message.

    A direct database edit does not fire that hook. Neither does a WP_HOME or WP_SITEURL constant in wp-config.php, since the constant leaves the option alone. On those sites the option never becomes true, and the rewrite never happens. The WordPress HTTPS handbook page covers the settings and the proxy headers that WordPress needs to recognize HTTPS in the first place.

    What WordPress Never Rewrites

    The same grep that finds those four filters finds nothing else, so everything outside them keeps its stored http:// URL. The table lists the usual places, and the last column says what reaches each one.

    Where the http:// URL is storedRewritten by core?What reaches it
    Post and page content, excerptsYes, but only your own http home URL, and only when the migration option is trueSQL REPLACE on post_content
    Additional CSSYes, same conditionsEdit it in the Customizer
    Classic Text widgetYes, same conditionsEdit the widget
    Custom HTML widget and block widgetsNo, core adds no rewrite to these filtersEdit the widget in Appearance, Widgets
    Nav menus, post meta, theme mods, plugin optionsNoSerialized-aware search-replace, or the plugin settings page
    Another host, a www variant, a CDN hostnameNo, measured with a www variant and a second hostnameReplace each host at its source
    Hard-coded in a theme or plugin fileNo, measured with a hard-coded script tagEdit the file, or update or replace the theme or plugin
    WordPress mixed content rewrite coverage in core 7.1.4: what is rewritten on output and what is left as stored. AHosting lab.

    Two of those rows cause most of the trouble that survives a migration. The first is the www variant: a site that was reached as http://www.example.com and is now at https://example.com has stored URLs that do not match the home URL, so the string replacement skips them. The second is the plugin option, where a stored absolute URL is printed into the page by the plugin on every request.

    How to Fix WordPress Mixed Content Without SSH

    Work in this order, because each step makes the next one smaller. Take a database backup from your control panel before you start, since two of these steps write to the database.

    First Step: Make Both WordPress URLs HTTPS

    In Settings, General, set the WordPress Address and the Site Address to https://. If either field is grayed out, the address is set by a WP_HOME or WP_SITEURL constant in wp-config.php, and the change goes there instead. This step also decides whether the core rewrite is active, so make it first and not last.

    Second Step: Replace the Stored URLs in Post Content

    Open phpMyAdmin from your control panel, select the WordPress database and run one statement in the SQL tab. Replace example.com with your domain, and change the wp_ prefix if your tables use another one.

    UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://example.com', 'https://example.com') WHERE post_content LIKE '%http://example.com%';

    This is safe for post content because the column holds plain text, and revisions in the same table are fixed too. Run it once for each host that appears in your console list, including the www variant. Do not use the same statement on the options, usermeta or postmeta tables, which brings up the next step.

    Third Step: Use a Serialized-Aware Tool for Options, Widgets and Meta

    WordPress stores arrays as PHP serialized strings, and each string carries its own length. We serialized a small array holding a 33-character URL, got s:33 in the output, replaced http:// with https:// blindly, and the string became 34 characters while the label still said 33. PHP then refused to read it: unserialize() returned false. In a real site that shows up as a plugin or widget that quietly resets its settings.

    For those tables, use a search-replace plugin that states it handles serialized data, run its dry run first, and apply it to the options, postmeta and widget data. A fix there also clears plugin options that print absolute URLs, such as a script address stored in a settings page.

    Fourth Step: Fix What Is Not in the Database

    If the console URL is still there after steps two and three, it is hard-coded in a file. Download the theme or plugin folder and search it locally for http:// in a code editor. The File Manager search in cPanel matches file names only, so it will not find text inside a file. Fix it in a child theme or ask the theme or plugin vendor for an update, because an edit to a parent theme is lost at the next update.

    Fifth Step: Purge Every Cache Layer

    A page cache keeps the old HTML, and the old HTML still carries the old URLs. Purge the cache plugin first and the edge cache second. If your site sits behind Cloudflare, use Purge Everything there. Our LiteSpeed Cache and Cloudflare guide covers what happens when two cache layers disagree, and it explains why a fix can look missing for an hour.

    Once the page is clean, the certificate behind it matters again. The AHosting SSL page lists a free DV certificate and paid OV and EV options, and our free SSL and domain management guide explains how certificate issuance fits into hosting. If you are choosing where to run the site next, you can compare our WordPress hosting and web hosting plans, and the migration guide shows how to move without breaking the URLs you just fixed.

    Why Redirects and Insecure-Content Plugins Do Not Cure Mixed Content

    Several quick fixes exist, and each one hides the symptom while leaving the stored URL in place. Knowing why helps you decide when a stopgap is acceptable.

    A Redirect Moves Pages, Not the URLs Inside Them

    A 301 redirect from http to https changes where a visitor lands. It does not change the URLs written inside the page they land on, and Chrome decides what to do with those URLs before any redirect could help. The result is a site with a perfect redirect and the same blocked script. Forcing HTTPS can also create a loop behind a proxy that does not pass the scheme through, which our guide to ERR_TOO_MANY_REDIRECTS in WordPress walks through.

    Runtime Rewriting and upgrade-insecure-requests Only Mask the Problem

    The upgrade-insecure-requests directive tells a browser to treat every insecure URL on the page as if it began with https://. The specification defines it, and the Mixed Content specification notes that the directive stays useful because it can upgrade blockable content, which browsers otherwise block. It works only when the resource exists at the https:// address. A plugin that rewrites URLs in the output on every request has the same limit, and it adds work to every page view.

    Use either as a stopgap while you work through the five steps, then remove it. The stored URLs are still wrong, and the next export, migration or theme change will bring the warnings back.

    How to Verify Mixed Content Is Gone for Good

    Reload the page in a private window so that extensions and cached files cannot change the result, open the console and filter for Mixed Content. A clean page shows no such lines. Then repeat the check on the pages that use different templates: the home page, a single post, an archive, a contact form page, a login page and the 404 page. A footer script or a form action often appears on only one of them.

    Trigger the features that load late, such as a popup, a map or a chat widget, and watch the console as you do. Check the console again after each plugin or theme update, because a vendor can reintroduce an absolute http:// address in a release. Finally, test the new content you add: a pasted embed code or an imported image block can bring an old URL back in one step.

    Frequently Asked Questions About WordPress Mixed Content

    How do I allow mixed content in Chrome in 2026, and should I do that on a WordPress site?

    Specifically, Chrome has a per-site setting that allows blocked insecure content, but it only changes your own browser, so every other visitor still gets the broken page. Fix the stored http:// URLs instead, using the five-step order in the fix section above.

    Does WordPress fix mixed content by itself in 2026 once I switch the site URL to HTTPS?

    Typically only in part. WordPress 5.7 and later rewrites your own old http:// home URL in post content, excerpts, classic text widgets and Additional CSS, but only after the home option was changed from http to https and only for that one host, so other hosts, widgets, options and theme files are left alone.

    Why does my AHosting WordPress site show mixed content in 2026 after I installed an SSL certificate?

    Typically the certificate is fine and the page itself loads over HTTPS. The warning comes from one or more http:// URLs stored in your content, widgets, plugin settings or theme files, so the fix is to find each URL in the browser console and change it where it is stored.

    Mixed content blocked vs mixed content upgraded: which WordPress resources does Chrome treat each way?

    Specifically, in our Chrome 156 test images, audio and CSS background URLs were upgraded to HTTPS, while scripts, stylesheets, iframes, fetch calls and srcset image candidates were blocked, and a form action only produced a console warning.

    Is a phpMyAdmin SQL REPLACE vs a search-replace plugin safer for fixing WordPress mixed content?

    However, the answer depends on the table. A SQL REPLACE on the post_content column is safe because post content is plain text, but options, widgets and post meta can hold serialized data, where changing http to https alters a string length and breaks the value, so use a serialized-aware tool there.

    What should I check when mixed content remains after search-replace on a site behind Cloudflare and W3 Total Cache?

    Typically the old HTML is still cached. Purge the page cache in W3 Total Cache, then use Purge Everything in Cloudflare, and reload the page in a private window before you read the console again.

    Does AHosting charge extra for an SSL certificate that removes the not secure warning on my site?

    In other words, the AHosting SSL page lists a free DV certificate alongside paid OV and EV options, and none of them changes mixed content, because a certificate secures the connection and cannot rewrite URLs stored inside your pages.

    How can I tell if a WordPress mixed content warning comes from a plugin option or a theme file?

    Specifically, search the plugin settings pages and the Customizer for the exact URL the console names. If it is not stored in the database, it is hard-coded in a theme or plugin file, so download the theme and search the files locally in a code editor.

    Will AHosting support help me trace a WordPress mixed content URL that I cannot find myself?

    Indeed, you can open a ticket, and including the exact console line and the page address gives support what it needs to start. The AHosting site lists support as available 24/7 through tickets.

    How do I force my WordPress website to use HTTPS in 2026 without creating mixed content?

    Typically you set both the WordPress Address and the Site Address to https in Settings, General, add one 301 redirect from http to https, and then replace the stored http:// URLs. The redirect moves visitors to the secure page but does not change the URLs inside it, so a redirect alone leaves mixed content in place.

    November 2, 2026
←Previous Page
1 2 3 4 … 16
Next Page→
Ahosting Logo

Hosting

  • WordPress Hosting
  • Web Hosting
  • FFmpeg Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • VPS Hosting
  • Dedicated Server

Domain

  • Register a Domain
  • Domain Transfer
  • Premium SSL Certificate

Support

  • Knowledge Base
  • Abuse Report
  • Submit A Ticket

Company

  • Compare Hosts
  • About Us
  • Datacenter
  • Contact Us
  • Blog
  • Sitemap

Legal

  • Privacy Policy
  • Terms of Service
  • Acceptable Use Policy
  • Service Level Agreement
  • Resource Abuse Policy
  • Hosting
    • WordPress Hosting
    • Web Hosting
    • FFMpeg Hosting
    • WooCommerce Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Server
  • Domain
    • Register a Domain
    • Domain Transfer
    • Premium SSL Certificate
  • Support
    • Knowledge Base
    • Abuse Report
    • Submit A Ticket
  • Company
    • About Us
    • Datacenter
    • Contact Us
    • Blog
    • Sitemap
  • Legal
    • Privacy Policy
    • Terms of Service
    • Acceptable Use Policy
    • Service Level Agreement
    • Resource Abuse Policy

Copyright © 2026 All Rights Reserved

Ahosting, Inc. BBB Accredited Business, A+ rating
Facebook X/Twitter Instagram LinkedIn YouTube