Bug #23219 See Comments

Nested plugins are not parsed before outer modules.

Version: 3.5.11 Reporter: shilpam05

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

The cause of this issue is line 1543 in system/ee/legacy/libraries/Template.php

// Nested Plugins...
       if (in_array($this->tag_data[$i]['class'] , $this->plugins) && strpos($this->tag_data[$i]['block'], LD.'exp:') !== FALSE)

The first part of the if condition is not satisfied because $this->tag_data[$i]['class'] is a module and not a plugin, so it is not in the $this->plugins array.

One possible fix is to change that line to

if ((in_array($this->tag_data[$i]['class'] , $this->plugins) || (in_array($this->tag_data[$i]['class'] , $this->plugins)) && strpos($this->tag_data[$i]['block'], LD.'exp:') !== FALSE)

A workaround is to add a pi.[mod_name].php to the module, so that it is also counted as a plugin.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases