The class JRequest was deprecated before Joomla 3 and finally removed in Joomla 4.
Which Joomla 3 third party or in-house component does the function call come from? Is there a chance to get the developer of the component to update the code for Joomla 4 because many other details in the code may need fixing, too.
In any case, try the following:Ref. Potential backward compatibility issues in Joomla 3 and Joomla Platform 12.2
Which Joomla 3 third party or in-house component does the function call come from? Is there a chance to get the developer of the component to update the code for Joomla 4 because many other details in the code may need fixing, too.
In any case, try the following:
Code:
use Joomla\CMS\Factory;$app = Factory::getApplication();$input = $app->getInput();$Itemid= $input->getCmd('Itemid', '');
Statistics: Posted by toivo — Tue Jul 30, 2024 6:14 am