Bug getThreadFromUrl fails when executed from CLI

There is a bug in this version
X

Xon

Guest
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

Continue reading...