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
36 views

How to replace deprecated get() Function on CMSObject?

In PHP Storm I am always tells me that the CMSObject->get() function is deprecated and that I should implement my own getter. I would, if I could... This message comes with standard things like: ......
Marco's user avatar
  • 663
1 vote
1 answer
151 views

Joomla 4 and 5 support for legacy classes and methods

I am transferring custom code to joomla 4. Are the legacy classes such as JFactory supported and if so for how long? Where can I find documentation on this?
user1104799's user avatar
2 votes
1 answer
348 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
3k 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
177 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
168 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
357 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,731
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
12k 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
526 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