com_api icon indicating copy to clipboard operation
com_api copied to clipboard

Cannot hide or remove API User

Open cappuccinonet opened this issue 2 years ago • 1 comments

In Joomla 4.3.2 with com_api 3.0.2 I do get the following error

Compile Error: Declaration of ApiControllerKeys::getModel($name = 'key', $prefix = 'ApiModel') must be compatible with Joomla\CMS\MVC\Controller\BaseController::getModel($name = '', $prefix = '', $config = [])
in [/home/www/studentsforfuture-hamburg.de/administrator/components/com_api/controllers/keys.php ](https://studentsforfuture-hamburg.de/administrator/index.php?option=com_api&view=keys)(line 33)
 public function getModel($name = 'key', $prefix = 'ApiModel') { ...

cappuccinonet avatar Jun 18 '23 18:06 cappuccinonet

Edit the function add the additional param required public function getModel($name = 'key', $prefix = 'ApiModel', $config = [])

file administrator/components/com_api/controllers/keys.php line 33

nunomsh avatar Oct 03 '24 12:10 nunomsh