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
2 votes
1 answer
295 views

Better way to rewrite method without deprecated JRequest

I believe JRequest is deprecated in the latest version of Joomla 3, have rewritten this function: public function display($tpl = null) { $app = JFactory::getApplication(); $user = JFactory::...
Ruchika's user avatar
  • 415
1 vote
1 answer
2k views

"Deprecated: Joomla\Input\Input ..." after upgrading PHP8.0 to PHP8.1 in Joomla 3.10.11

I have updated the PHP version from 8.0 to 8.1.0 and my Joomla version is 3.10.11. Now I am getting deprecated warning such as: Deprecated: Joomla\Input\Input implements the Serializable interface, ...
Adam-KER's user avatar
0 votes
0 answers
150 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 {' . '...
Jonathan Schmidt's user avatar
5 votes
2 answers
2k 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 ...
user3533235's user avatar
3 votes
1 answer
159 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 ...
jost21's user avatar
  • 239
3 votes
1 answer
306 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 ...
Malaiselvan's user avatar
  • 2,721
1 vote
1 answer
1k 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 ...
Dom's user avatar
  • 512
3 votes
1 answer
2k views

Replacing JRequest (deprecated) with JInput

I believe JRequest is deprecated and should be replaced with Jinput, however when I change the following code: $limit = JRequest::getInt('limit', $app->get('list_limit')); $this->setState('list....
Ruchika's user avatar
  • 415
10 votes
2 answers
11k 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 ...
Adam M.'s user avatar
  • 447
3 votes
2 answers
518 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!
user101289's user avatar
  • 1,119