Fatal Error when using Tags with <? in Templates

7 views
Skip to first unread message

Dmitry A.

unread,
Nov 7, 2012, 1:46:06 PM11/7/12
to in-port...@googlegroups.com
Hi guys,


Looks like we have quite an interesting bug when we get Fatal Error from Parse when trying to using put custom tags that start  <?.

Here is an example:

<?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>

Error, that I get is:

Parse error: syntax error, unexpected T_STRING in [path to template.php] on line 12 


DA

Alexander Obuhovich

unread,
Nov 8, 2012, 8:58:50 AM11/8/12
to Bugs In-Portal
Unable to replicate on In-Portal 5.2.0-B1.

I've placed following template (attached) in "advanced" theme and I was able to open it without any issues, by visiting /test.html page.




DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/Gjrjn6u5Hb4J.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.



--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
test.tpl

Alexander Obuhovich

unread,
Nov 8, 2012, 12:44:12 PM11/8/12
to Bugs In-Portal
After talking with Dmitry we found out, that when "Compress Compiled PHP Templates" system setting is enabled, then it converts <?xslt into <? xslt (space added after ?) transforming it into nested opening php tag.

Dmitry A.

unread,
Nov 8, 2012, 1:07:47 PM11/8/12
to in-port...@googlegroups.com
I guess, we should remove that whole code and setting at some point.

DA

Alexander Obuhovich

unread,
Nov 9, 2012, 3:26:31 AM11/9/12
to Bugs In-Portal
Completely agree, since it doesn't bring any noticeable benefit and doesn't properly process HTML inside PHP files.


To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/PCusQpJgRzwJ.

To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry A.

unread,
Nov 12, 2012, 1:12:43 AM11/12/12
to in-port...@googlegroups.com
Separate discussion (and task inside of it) has been created that will address this issue


DA
Reply all
Reply to author
Forward
0 new messages