All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Embeds that have EE tags in them not showing outputting content

Status Resolved
Add-on / Version Custom System Messages 2.6.1
Severity
EE Version 2.11.2

derek allard

Nov 28, 2016

Description:  My custom system messages template is not outputting any EE entries data.


Detailed steps to reproduce the issue:
1. Go to http://asset.tunnel7.com/contact
2. Hit send message to trigger CSM template
3. Blog posts in sidebar, content in footer (that uses EE entries tags) comes up empty

Template code from CSM template:

{embed="inc/.top"   
	body_id="interior" 
	body_class="message"
	title="{heading}"
	meta_desc="Error message: {heading}"
	refresh="{meta_refresh}"
}

	<div class="wrap" id="titleblock">
		 
			<div class="left"></div>
			
			<div class="right"> 
				 
				<div class="breadcrumb">
					<a href="/">Home</a> > Error Message 
				</div> 
								
				<h1>{heading}</h1>
<p>				<br /></p>
</div>
<p>		<br /></p>
</div>

<p> </p>
</div><!-- .fullwidth .imagewrap -->

<div class="fullwidth" id="mainbody">
<p>	<br /></p><div class="wrap">
<p>		<br /></p><section class="main">
<p>			  <br /></p><article id="content">
<p>				  					<br />
				{content}<br />
					 <br /></p><p>{link}</p>
<p>					  <br /></p>
</article><p><!-- article #content --><br />
			 <br />
			{embed="inc/.sidebar"}<br />
			<br /></p>
</section><p><!-- section .main -->	 <br />
	<br /></p>
</div><!-- #wrap -->

</div><!-- .fullwidth -->

<p>{embed="inc/.advantage"}</p>

<p>{embed="inc/.footer"}

Anything within an embed (or even if I rip it out of the embed and place the code directly in the template) will not parse the entry tags.  I suspect I’m missing something obvious here but this has worked well on previous projects.  Any direction much appreciated.  This is a dev location but it is under version control.  IF you make any changes let me know what they are so I can check them in.

#1

BoldMinded (Brian)

Hi, Derek. I went to that page and clicked submit on the form, but I didn’t see any un-parsed tags and saw the 3 error messages from the form. Is there something I’m missing?

#2

derek allard

Hi Brian. Correct, it does throw the error messages but the template for the errors isn’t parsing the EE tags like everywhere else on the website. If you look at the sidebar and comparison chart blocks they are empty and the navigation isn’t correct either (you can compare it to http://asset.tunnel7.com/services to get a sense of the differences. The code that is being used on the custom error template is using the same includes as these but for some reason isn’t rendering correctly. Does this help? Let me know if you need anything further.

#3

BoldMinded (Brian)

Can you go into the ext.system_messages.php file around line 231 and make these changes?

Uncomment:

//if(isset(ee()->TMPL) && is_object(ee()->TMPL)) {
        //    $TMPL = ee()->TMPL;
        //} else {
        //    require_once APPPATH.'libraries/Template.php';
        //    $TMPL = new EE_Template();
        //}

and comment out

ee()->load->library('template', NULL, 'TMPL');

This basically reverts it to a previous version. Just want to see if this works for you.

#4

derek allard

Hi Brian … I commented out the first part … where is the ee()->load … am not seeing it in the ext.system_messages.php.

#5

derek allard

With the first part commented out I get an error:

The asset.tunnel7.com page isn’t working

asset.tunnel7.com is currently unable to handle this request.

#6

BoldMinded (Brian)

Comment has been marked private.

#7

derek allard

Can’t see your last comment above (even though I’m logged in as me).

#8

derek allard

Hi Brian … received the download. Just uploaded this to the server and it is working as expected now! Thank you.

Quick question … with the fix for this be included in future CSM builds or is this a one off for this specific case (my concern being if it’s a one off this could break again when I update down the road).

#9

BoldMinded (Brian)

I sent you the latest build, which I thought I had publicly released, but apparently have not. I’ll get it posted soon though.

#10

derek allard

Perfect. All makes sense. Thank you, Brian!

Login to reply