[TYPO3-ttnews] tx_news - no entry for show latest

jaco graaff jaco at spacexplorer.co.za
Wed Jul 10 03:03:37 CEST 2013


version 2.2  does not work either if I revert back to DETAIL view without a 
hardcoded (backend selected) news item in the dropdown

----------------------------------------

I do not get

"$this->request->getArgument('news');"

anywhere in the source code of NEWS

----------------------------------------
news version 2.2 from TER: (I will go to git now and see if there is an even 
newer version)

in the
Tx_News_Controller_NewsController class
(\typo3conf\ext\news\Classes\Controller\NewsController.php)

at function:
public function detailAction(Tx_News_Domain_Model_News $news = NULL, 
$currentPage = 1)


there is
if (is_null($news)) {

-------------------------------

the $previewNewsId returns 0

if no news selected in detail view

------------------------------------

the page dies here:

if (is_null($news) && isset($this->settings['detail']['errorHandling'])) {
        $this->handleNoNewsFoundError($this->settings['detail']['errorHandling']);

    }

------------------------------------
Should I try and inject code to find the latest???
------------------------------------



"Georg Ringer"  wrote in message 
news:mailman.1.1373347836.19310.typo3-project-tt-news at lists.typo3.org...

Hi,

I have now found the problem of the issue.
The error is always thrown on a detail page without a news in the request.

this has been solved in the 2.2.0 release and in the git master for a while.

so do an upgrade or edit the Tx_News_Controller_NewsController and
search for "$this->request->getArgument('news');"

this needs to be encapsulated in an additional check at
$this->request->hasArgument('news')

Georg 



More information about the TYPO3-project-tt-news mailing list