This question already has an answer here:
I have tried every input to get it working, but nothing works for me.
This is the deprecated code
$post = JRequest::get('post', JREQUEST_ALLOWRAW); list($title, $alias) = $this->_generateNewTitle($post['catid'], $post['alias'], $post['name']); $_POST['name'] = $title; $_POST['alias'] = $alias; $_POST['catid'] = 0; $this->_save();
$post = JFactory::getApplication()->input->get('post', '','raw');
But sadly it doesn't work.