JFORMRULE-STAR-001

JFormRuleEmail / JFormRuleUrl / JFormRuleEquals / …

JFormRule* validators

Form validation rule class names followed JFormRuleX. Native Joomla 6 uses namespaced Rule classes. Custom rules that extend the J3 name fail when the alias plugin is off.

JFormRuleEmail / JFormRuleUrl / JFormRuleEquals / …Joomla\CMS\Form\Rule\*Rule

Dies at Joomla 5 → 6J3: Works nativelyJ4: Alias (old name still resolves)J6: Removed — fatalBC plugin: covers the class namePatch possible — review itJoomla API

What you will see

  • Class "JFormRuleEmail" not found
  • Class "JFormRuleUrl" not found
  • Class "JFormRuleEquals" not found

Symptoms people search

form validation class not found · JFormRule

Replace this code

Swap JFormRuleEmail / JFormRuleUrl / JFormRuleEquals / … for Joomla\CMS\Form\Rule\*Rule.

Joomla 3

Remove or stop calling this

class JFormRuleLmsSku extends JFormRule {}

Joomla 4 / 6

Use this instead

use Joomla\CMS\Form\FormRule;
class LmsSkuRule extends FormRule {
    public function test(\SimpleXMLElement $element, $value, $group = null, ?\Joomla\Registry\Registry $input = null, ?\Joomla\CMS\Form\Form $form = null): bool { return true; }
}

How to fix it

  1. 1Extend FormRule or the specific *Rule.
  2. 2Point the XML validate="lmssku" at the namespaced class.

Also known as

JFormRuleBoolean · JFormRuleCalendar · JFormRuleColor · JFormRuleEmail · JFormRuleEquals · JFormRuleNotequals · JFormRuleNumber · JFormRuleOptions · JFormRuleRules · JFormRuleTel · JFormRuleUrl · JFormRuleUsername · EmailRule · UrlRule · EqualsRule

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.