[Notice] Undefined variable: article

GET /articles/articles/nieuws?start=1590

Line 282 in /home/tff/domains/thefactoryfiles.com/public_html/whitelabel/mysite/code/ArticlesList.php

Source

273 				$pageinfo = array(
274 					'title'			=> '',
275 					'subtitle'		=> $Slug . ' ('. count($article) . ')',
276 					'notfound'		=> 'Uw zoekopdracht op <strong>' . $Slug . '</strong> heeft geen resultaat opgeleverd'
277 				); 
278 			
279 			break;			
280 			
281 		}
282 		$article = new PaginatedList($article, $this->request);
283 		$article->setPageLength(ITEMS_PER_PAGE);
284 		
285 		return $this->customise(array('article' => $article, 'pageinfo' => $pageinfo))->renderWith(array('articleslist'));		
286 		
287 	}
288 	

Trace

GET /articles/articles/nieuws?start=1590

[Recoverable Error] Argument 1 passed to PaginatedList::__construct() must implement interface SS_List, null given, called in /home/tff/domains/thefactoryfiles.com/public_html/whitelabel/mysite/code/ArticlesList.php on line 282 and defined

GET /articles/articles/nieuws?start=1590

Line 26 in /home/tff/domains/thefactoryfiles.com/public_html/whitelabel/framework/core/PaginatedList.php

Source

17 
18 	/**
19 	 * Constructs a new paginated list instance around a list.
20 	 *
21 	 * @param SS_List $list The list to paginate. The getRange method will
22 	 *        be used to get the subset of objects to show.
23 	 * @param array|ArrayAccess Either a map of request parameters or
24 	 *        request object that the pagination offset is read from.
25 	 */
26 	public function __construct(SS_List $list, $request = array()) {
27 		if (!is_array($request) && !$request instanceof ArrayAccess) {
28 			throw new Exception('The request must be readable as an array.');
29 		}
30 
31 		$this->setRequest($request);
32 		parent::__construct($list);

Trace