Questions tagged [deprecated]

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

addStyleDeclaration is not working in my 4.0 module

I'm trying to insert inline css in a module and it's not working. In one of my modules php files i have the following: $document = Factory::getDocument(); // Add styles $style = 'body {' . '...
user avatar
2 votes
1 answer
357 views

Non deprecated method in Joomla! 4 to load user by userid

I'm looking for an extension for Joomla! 4.0 to replace a deprecated method which was used to load an user by userid. The method used actually is: $user = Factory::getUser($userid); The issue is that ...
user avatar
3 votes
1 answer
96 views

How to replace deprecated Joomla classes with VS Code?

Is there a way to conveniently replace deprecated Joomla classes with VS Code. I do have the PHP CodeSniffer (with Joomla Coding standards) and Intelephense extensions, although I am not sure if ...
user avatar
  • 219
3 votes
1 answer
150 views

Easy way to identify Joomla deprecated Functions

We started Joomla extensions development from Version 2.5. During those days, we went through many training materials and able to complete the extension. Later as many releases evolved, and whenever ...
user avatar
  • 2,651
1 vote
1 answer
802 views

What is the status of deprecated JError and what is the suggested replacement

JError is shown as deprecated (as of 12.3), but is still widely used in the core. The API docs say that its status is deprecated - 4.0 Will be removed without replacement, but its still alive and well ...
user avatar
  • 492
10 votes
2 answers
10k views

How to redirect user with system message in Joomla 3

I know that you can achieve this by doing: JFactory::getApplication->redirect(url, message, type) but the documentation at JFactory::getApplication says it is deprecated and suggest to use ...
user avatar
  • 437
3 votes
2 answers
488 views

JApplication::getCfg deprecated

What is the newer syntax to replace the deprecated JApplication::getCfg()? The docs don't specify the replacement in the deprecation notice. Thanks!
user avatar
  • 1,089