RSS Feed/News Infinite loop in TemplatePartialCompile

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
34,167
Points
823

Reputation:

I had a report from a client that merging templates in the middle of XF doing a partial compile can cause a job to get stuck in an infinite loop.

The problem is if the template vanishes it tries to skip the that templateId but it does this without removing the template id from $this->data['templateIds'];
Code:

Code:
foreach ($this->data['templateIds'] AS $k => $templateId)
{
/** @var Template $template */
    $template = $this->app->find(Template::class, $templateId);
if (!$template)...

Read more

Continue reading...
 
Status
Not open for further replies.
Top