RSS Feed/News getThreadFromUrl fails when executed from CLI

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,712
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top