JHTML-FORM-TOKEN-001

JHtml::_('form.token')

JHtml::_('form.token') (keep this)

Tokens are not deprecated. Only the JHtml class name is. Do not delete CSRF tokens while “cleaning J3 APIs”.

JHtml::_('form.token')HTMLHelper::_('form.token') — still required

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

Symptoms people search

form token · invalid token after upgrade

Replace this code

Swap JHtml::_('form.token') for HTMLHelper::_('form.token') — still required.

Joomla 3

Remove or stop calling this

echo JHtml::_('form.token');

Joomla 4 / 6

Use this instead

echo HTMLHelper::_('form.token');

How to fix it

  1. 1Keep the token.
  2. 2Switch JHtml to HTMLHelper.

Also known as

form.token · CSRF

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.