APP-ISADMIN-001

$app->isAdmin()

isAdmin() / isSite()

Joomla 4 can have more application clients than site/admin. isAdmin and isSite were removed. isClient() is the replacement.

$app->isAdmin()$app->isClient('administrator') / isClient('site')

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Mechanical renameJoomla API

What you will see

  • Call to undefined method ...::isAdmin()
  • Call to undefined method ...::isSite()

Symptoms people search

admin-only code runs on the site · undefined method isAdmin

Replace this code

Swap $app->isAdmin() for $app->isClient('administrator') / isClient('site').

Joomla 3

Remove or stop calling this

if ($app->isAdmin()) { ... }
if ($app->isSite()) { ... }

Joomla 4 / 6

Use this instead

if ($app->isClient('administrator')) { ... }
if ($app->isClient('site')) { ... }

How to fix it

  1. 1Replace isAdmin() with isClient('administrator').
  2. 2Replace isSite() with isClient('site').

Also known as

isAdmin · isSite · isClient

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.