📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
X

RSS getThreadFromUrl fails when executed from CLI

X

Xon

Guest
Guest or Bot
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...
 
Similar content Most view View more
Back
Top