Joomla 3 Error: Call to Undefined Method LanguageHelper::isValidTag()

Your Joomla 3 site is a blank page with one line of text on it, on the front end and in the administrator, and you have not updated anything:
Error: Call to undefined method Joomla\CMS\Language\LanguageHelper::isValidTag(): Call to undefined method Joomla\CMS\Language\LanguageHelper::isValidTag()
The cause is one rewritten line in a Joomla core file, libraries/src/Language/Language.php. A security fix from Joomla 6.2.1 and 5.4.11 has been copied into your Joomla 3 site, and the new line calls a method that Joomla 3 does not have. The fix is to put the original Joomla 3.10.12 file back. The change was made by a patching tool your web host runs on its servers, so nothing you did caused it.
The short version
Line 186 of Language.php now calls LanguageHelper::isValidTag(), which does not exist in Joomla 3.10.12. Restore the original file over FTP and the site returns. Then tell your host, because its tool runs on a schedule and will make the same change again. Reverting removes the host’s security fix from that file, so accept that Joomla 3 is end of life and plan your move to Joomla 6.
What the isValidTag() Error Means in Joomla 3
PHP has been asked to run a method that is not there. The page is otherwise blank, the response is an HTTP 500, and one site owner described it to us as “A blank page with “Error” message on it”. Every page fails, front end and administrator alike, because Joomla constructs its Language object on every request.
In Joomla 3.10.12, line 186 of libraries/src/Language/Language.php is a plain null check. On an affected site it has been rewritten:
- if ($lang == null)
+ if ($lang == null || !LanguageHelper::isValidTag($lang))
LanguageHelper::isValidTag() does not exist in Joomla 3.10.12. It does not exist in Joomla 4.4.14 either. PHP reaches the call, finds no such method on the class and stops with “Call to undefined method”.
Where the Line Came From: Joomla 5.4.11 and 6.2.1
The line is real Joomla code, written for a different major version. The Joomla 6.2.1 security release and Joomla 5.4.11 changed exactly that line in Language.php, and in the same release added the method it calls to LanguageHelper.php:
public static function isValidTag($lang): bool
{
return \is_string($lang) && preg_match('/^[a-z]{2,3}-[A-Z]{2}$/D', $lang) === 1;
}
Its docblock says what it is for: “Checks if a string is a well-formed language tag (two or three lowercase letters, a dash and two uppercase letters, e.g. en-GB or ast-ES). This must be used before a language tag is used to build a file system path.” The same release also makes LanguageHelper::exists() return false for a tag that fails the check.
Together those changes fix Joomla advisory 20261112, “Local file inclusion through language parameter”, CVE-2026-126045, which the CVE record scores 9.2 Critical. The language request parameter was not validated before Joomla built the paths of the language files it includes. The advisory affects Joomla 1.6.0 and later, which includes every Joomla 3 site.
Upstream released the call and the method together, so a Joomla 3 site that gets only the call breaks.
Joomla 6.2.1 and 5.4.11 Fix 58 Security Issues, Four CriticalRead the full postYour Host Patched Joomla 3 for You
The file was changed by a server-side patching tool run by the host. The site owner did not do it, and since customers have asked us: mySites.guru did not do it either, because our connector never calls isValidTag() and never touches Language.php.
Every case we have seen was on Aruba (aruba.it) shared hosting. You can identify an Aruba-hosted site from its response headers:
server: aruba-proxy
x-aruba-waf: Enabled
The FTP greeting says the same thing: “Aruba.it, The Web Hosting Company”. Aruba’s Joomla hosting page promises “continuous system patching”, though it does not say that includes editing Joomla’s own files.
Language.php is one file of a whole backport. On one site the tool changed more than 50 core Joomla 3 files over three days, plus a second copy of Joomla in a subfolder of the same account. Each change is written in Joomla 3 syntax (JFactory, JText) with comments such as “Backport of the Joomla 6.2.1 / 5.4.11 target category check (CategoryChangeTrait)” and “@since 5.4.11”.
| Changed file | What the backport adds |
|---|---|
| Four admin controllers | Banners, contacts, articles, newsfeeds: saving needs core.create in the target category |
| Login controller | Ending another user's sessions needs core.manage on com_users |
com_menus/menus.php | The site cannot list the administrator "main" menu |
Language/Language.php | A call to isValidTag(), a method LanguageHelper lacks |
Language.php was the one that broke the site. Once it was restored, the site worked with every other changed file left in place, and each of those still passes a PHP syntax check.
This is the same risk as any unofficial backport of a patch written for a different codebase: the patch assumes code that the older release may not have. The contrast is a Joomla 3 fix tested on a real 3.10.12 site before anyone relies on it. Hosts backporting fixes on their customers’ behalf is something we have written about before.
It Comes Back
The tool runs on a schedule. On one site the files changed on one afternoon and again at around 07:00 on each of the next two mornings. For another customer, the Language.php change returned the same evening after it had been reverted.
An .htaccess file cannot stop it. .htaccess only governs web requests that come through Apache, and the tool writes to the files directly on the server.
How Do I Fix the isValidTag() Error in Joomla 3?
Restore the original Language.php from Joomla 3.10.12 over FTP or your host’s file manager. The Joomla administrator is down with the rest of the site, so nothing can be fixed from inside Joomla.
Restore Language.php. Replace
libraries/src/Language/Language.phpwith the original Joomla 3.10.12 file from CoreFiles.On the site we fixed, this one file was enough to bring every page back.
Tell the host. Ask which tool modified Joomla core files on its servers, and ask for it to stop touching Joomla core files.
Give them the file, the line and the error. Otherwise the tool re-applies the change.
Turn Debug off. In Global Configuration set Debug to No and Error Reporting to None, then clear the Joomla cache.
Only needed if someone raised those settings while trying to see the error.
Audit the site. Run a mySites.guru audit to see every other core file the host changed.
CoreFiles is our free copy of every file in every Joomla and WordPress release, so you do not need to download and unpack a full Joomla 3.10.12 package to get one file.
A host backup works too, as long as it predates the change. Aruba keeps its own backups in folders next to the site in the FTP root. On the account we fixed there was a daily folder ending _Backup_Giornaliero and a weekly one ending _Backup_Settimanale. The daily backup already contained the broken line. The weekly one had the original, identical to the Joomla 3.10.12 file. Check line 186 of whichever copy you use before you upload it.
On the site we fixed, someone had turned on Debug and set Error Reporting to Maximum in configuration.php while trying to see the error. On Joomla 3 running PHP 8, that printed hundreds of PHP “Deprecated” notices onto the public pages once the site was back. Setting both back was not enough on its own, because cached pages still held the notices, and the pages were only clean after the Joomla cache was cleared.
If your error names a different class, it is a different problem: Class JPlugin not found is the other “not found” fatal we see take a whole Joomla site down.
How mySites.guru Shows What Else Changed in Joomla 3
Restoring one file gets the site back, and leaves you not knowing what else was rewritten. In mySites.guru, the Audit tab’s core file integrity check lists every core file modified since release. Click a file for a side-by-side diff against the original.
The row menu of the modified core files list has “Compare with the core file” and “Revert to the core file”. Revert needs the connector to reach the site, and on the site we fixed the connector’s snapshot request got the same HTTP 500 as every other request. That is why the first restore had to be done over FTP. Once the site answers again, an audit lists every other file the host changed.
Our walkthrough of fixing a hacked Joomla or WordPress site with mySites.guru shows the same revert in use.
CoreFiles: Every Joomla and WordPress Core File, Free to CheckRead the full postWhat Does Reverting Cost a Joomla 3 Site?
Reverting Language.php removes the host’s fix for advisory 20261112 from that file, so the site is exposed to that local file inclusion again. You are choosing between a site that is down and a site that is up with a known Critical flaw in it.
After more than 15 years of running client Joomla sites, our read is that a host backporting security fixes into Joomla 3 tells you how exposed Joomla 3 now is. The backports are well meant and mostly careful. One missing method still took sites down, and no one but the site owner is responsible for the site.
Plan the Move Off Joomla 3
Joomla 3 reached end of life in August 2023. Joomla 3.10.12 was the last release from the Joomla project, and there is no official Joomla 3 fix for this advisory. Every fix a Joomla 3 site gets from here is somebody’s backport, applied by a host, a third party or you.
So revert the line, accept that Joomla 3 is end of life, and plan your move to Joomla 6 as soon as possible. The options for a Joomla 3 site are set out on our Joomla 3 security hub, and if you look after Joomla 3 sites for clients, what end of life does to an agency retainer is worth reading before the next conversation with them.
To find out which of your sites are still on it, mySites.guru has a Joomla 3 end of life check.
Joomla 3 Is End Of Life
mySites.guru checks every connected site for this automatically and flags it the moment it appears.
How This Shows Up in Real Life
Every report came from a customer on Aruba shared hosting. The sites went down two days after the upstream release:
Joomla 6.2.1 and 5.4.11 released
Both include the Language.php change and the new isValidTag() method.
Aruba-hosted Joomla 3 sites go down
An afternoon run of core file changes includes Language.php. One customer loses eleven Joomla 3 sites at the same moment.
The first reports, and the change returns
Two Aruba customers write in. Another run changes more core files at around 07:00, and on the first customer's sites Language.php is rewritten again in the evening after being reverted.
Another morning run
A run at around 07:00 changes more core files, including several in libraries/, on the site we later fixed.
A third customer, and a fix
A third Aruba customer, down since 26 November, asks in live chat and then sends a paid fix request. We restore Language.php over FTP and the site returns.
Further Reading
- Joomla advisory 20261112 - the Joomla project’s record of the local file inclusion through the language parameter.
- Joomla 6.2.1 release announcement - the security release the backported line was written for.
- Joomla 5.4.11 on GitHub - the release that changed Language.php and added isValidTag() to LanguageHelper.
- Core vulnerabilities that affect Joomla 3 - from our Joomla 3 security hub.
- The Joomla 3 timeline - also on the Joomla 3 security hub.




