PHP-JPATH-PLATFORM-001

JPATH_PLATFORM

JPATH_PLATFORM

JPATH_PLATFORM pointed at the old libraries tree. That layout is gone.

JPATH_PLATFORMDo not use — autoload instead

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4You rewrite thisPHP

What you will see

  • Undefined constant JPATH_PLATFORM

Symptoms people search

library path fatal

Replace this code

Swap JPATH_PLATFORM for Do not use — autoload instead.

Joomla 3

Remove or stop calling this

require JPATH_PLATFORM . '/joomla/foo.php';

Joomla 4 / 6

Use this instead

use the namespaced class. Do not require files out of libraries/src.

How to fix it

  1. 1Remove requires that use JPATH_PLATFORM.
  2. 2Use a use statement for the CMS class.

Also known as

JPATH_PLATFORM

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.