SOLVED v100.0.10 : Small typo in /var/cpanel/templates/apache2_4/ea4_main.default ?

Markif

Well-Known Member
Nov 9, 2016
55
7
133
Toulouse
cPanel Access Level
Root Administrator
Hello,
maybe a small typo in v100.0.10
/var/cpanel/templates/apache2_4/ea4_main.default
line 958 :
"[%- END %]" should be "[%- END %-]" ?
Thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! I think that's actually normal as there are different outline tags in the template toolkit structure:


Just a few lines above that in the file, we see this:

Code:
<VirtualHost [% FOREACH vh IN vh_block -%][% parsed_ip(vh) _ ":${configured.main_port_ssl}" %] [% END -%][% IF !sharedips.size %]*:[% configured.main_port_ssl %][% END %]>
which has the "END" tag written two different ways.

Are you seeing this causing some type of issues on the machine?
 

Markif

Well-Known Member
Nov 9, 2016
55
7
133
Toulouse
cPanel Access Level
Root Administrator
Hello,
First, I have done myself a type in # :cool:
I wanted to write "[%- END %]" should be "[%- END -%]" ... and not "[%- END %-]"
Second, "if I see some type of issues on the machine" :
as I have modified it in
/var/cpanel/templates/apache2_4/ea4_main.default
and
/var/cpanel/templates/apache2_4/ea4_main.local
to [%- END -%]
I can not say if it gives issues or not, but looking at http://www.template-toolkit.org/docs/manual/Syntax.html#section_Outline_Tags
I see they use different combinations indeed, so it will not give problems probably :
They use
"[% END -%]" or "[%- END %]" or "[% END %]"
but never mine "[%- END -%]"
So my fault ;)
So even if with [%- END -%] it does not give difficulties in my
/var/cpanel/templates/apache2_4/ea4_main.local
But will restore the original
/var/cpanel/templates/apache2_4/ea4_main.default
and replace the in my "[%- END -%]" with the original " [%- END %] "
/var/cpanel/templates/apache2_4/ea4_main.local
Thanks and sorry for the "false alarm" !
 
  • Like
Reactions: cPRex