APP-REDIRECT-MSG-001

$app->redirect($url, $msg, 'error')

redirect($url, $msg, $type) old signature

Joomla 4 redirect no longer takes message + type. Passing them fatals or ignores.

$app->redirect($url, $msg, 'error')enqueueMessage then redirect($url)

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

  • Too many arguments to function ...::redirect

Symptoms people search

redirect 500 after save

Replace this code

Swap $app->redirect($url, $msg, 'error') for enqueueMessage then redirect($url).

Joomla 3

Remove or stop calling this

$app->redirect('index.php?option=com_lms', 'Saved', 'message');

Joomla 4 / 6

Use this instead

$app->enqueueMessage('Saved');
$app->redirect('index.php?option=com_lms');

How to fix it

  1. 1enqueueMessage first.
  2. 2redirect with URL (and optional HTTP code) only.

Also known as

redirect message type

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.