JVERSION-RELEASE-001

JVersion::RELEASE

JVersion::RELEASE / DEV_LEVEL / BUILD

The old version constants were removed. JVERSION string still exists but RELEASE/DEV_LEVEL/BUILD do not.

JVersion::RELEASEMAJOR_VERSION, MINOR_VERSION, PATCH_VERSION

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Patch possible — review itJoomla API

What you will see

  • Undefined class constant RELEASE
  • Undefined class constant DEV_LEVEL

Symptoms people search

version check always wrong · JVersion::RELEASE

Replace this code

Swap JVersion::RELEASE for MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION.

Joomla 3

Remove or stop calling this

if (JVERSION == '3.10') {}
echo JVersion::RELEASE . '.' . JVersion::DEV_LEVEL;

Joomla 4 / 6

Use this instead

use Joomla\CMS\Version;
if (Version::MAJOR_VERSION === 4) {}
echo Version::MAJOR_VERSION . '.' . Version::MINOR_VERSION;

How to fix it

  1. 1Use Version::MAJOR_VERSION / MINOR_VERSION / PATCH_VERSION.
  2. 2Do not parse JVERSION as a Joomla 3 string.

Also known as

JVersion::RELEASE · DEV_LEVEL · JVERSION

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.