[RSS Feed/News] getThreadFromUrl fails when executed from CLI

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
The failure of \XF\Repository\Thread::getThreadFromUrl function when executed from the CLI is due to the \XF\Request not being in the expected state.

getThreadFromUrl eventually calls \XF\Request::getHost which returns false, which results in the routeToController method not getting the data it expects and thus failing to match
PHP:

Code:
	public function getThreadFromUrl($url, $type = null, &$error = null)
	{
		$routePath =...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom