Search

I'm using a new computer at work and I seem to be getting the craziest error. Symphony is freaking out over nothing it seems.

My setup is:

  • Symphony 2.2.1
  • Mac OSX 10.6.6
  • (built in) Apache 2
  • (built in) PHP 5.3.4
  • MySQL 5.5.12

I have simply setup a couple of sections and a DS an was attempting to put together a homepage before I got the following error:

Error message

My code looks like:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:import href="../utilities/page-title.xsl"/>
<xsl:import href="../utilities/navigation.xsl"/>
<xsl:import href="../utilities/copyright.xsl"/>

<xsl:output method="html" omit-xml-declaration="yes" indent="no" />

<xsl:template match="/">
    <xsl:text disable-output-escaping="yes"><![CDATA[<!doctype html>]]></xsl:text>

    <xsl:comment><![CDATA[[if lt IE 7 ]><html lang="en" class="no-js ie6 ]]><xsl:value-of select="concat('page-',$current-page)"/><![CDATA["><![endif]]]></xsl:comment>
    <xsl:comment><![CDATA[[if IE 7 ]><html lang="en" class="no-js ie7 ]]><xsl:value-of select="concat('page-',$current-page)"/><![CDATA["><![endif]]]></xsl:comment>
    <xsl:comment><![CDATA[[if IE 8 ]><html lang="en" class="no-js ie8 ]]><xsl:value-of select="concat('page-',$current-page)"/><![CDATA["><![endif]]]></xsl:comment>
    <xsl:comment><![CDATA[[if gt IE 8]><!]]></xsl:comment><html lang="en" class="no-js page-{$current-page}"><xsl:comment><![CDATA[<![endif]]]></xsl:comment>

    <head>
        <title><xsl:call-template name="page-title"/></title>   
        <link rel="stylesheet" media="screen" href="{$workspace}/css/screen.css" /> 
        <meta name="Author" content="Mindshapes Ltd" />
        <meta name="Generator" content="Symphony CMS" />
        <meta name="revisit-after" content="30 days" />
        <meta name="robots" content="index, follow"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        &lt;script src="{$workspace}/js/libraries/modernizr-1.7.min.js">&lt;/script>
        &lt;script src="{$workspace}/js/libraries/ender.min.js">&lt;/script>
        <link rel="canonical" href="{$current-url}"/>           
        <link type="text/plain" rel="author" href="{$root}/humans.txt" />
        <xsl:comment><![CDATA[[if lt IE 9]><link type="text/css" rel="stylesheet" href="]]><xsl:value-of select="$workspace"/><![CDATA[/css/ie.css" /><![endif]]]></xsl:comment>
        <link rel="shortcut icon" type="image/x-icon" href="{$workspace}/images/favicon.ico" />
        <xsl:call-template name="css-contextual"/>
    </head>
    <body class="page-{$root-page}">
        <div id="container">
            <header>
                <div class="inner">
                    <div id="logo">
                        <a href="{$root}">
                            <img src="{$workspace}/images/logo.png" title="Mindshapes"/>
                        </a>
                    </div>
                    <nav>
                        <xsl:apply-templates select="navigation/page"/>
                    </nav>
                </div>
            </header>
            <div id="main" role="main">

                <xsl:apply-templates select="/"/>

            </div>
            <footer>
                <div class="press">
                    <div class="inner">
                        <div class="heading">
                            <h4 class="futura">In the press</h4>                
                            <a class="view-all" href="../press/">View All</a>
                        </div>

                        <ul>
                            <li><a href="../press/"><img class="feature" src="../images/press/giggleapps.png"/></a></li>
                            <li class="last"><a href="../press/"><img class="feature" src="../images/press/owtk.png"/></a></li>
                        </ul>
                    </div>
                </div>


                <div id="sn">
                    <div class="inner">
                        <ul>

                        </ul>
                    </div>
                </div>

                <div class="footer">
                    <div class="inner">
                        <div class="copyright">
                            <xsl:call-template name="copyright">
                                <xsl:with-param name="start" select="2011" />
                            </xsl:call-template>
                        </div>

                        <div class="links">
                            <ul>

                                <li><a href="../privacy-policy">privacy policy</a></li>
                            </ul>
                        </div>


                        <div class="logo">
                            <img src="{$workspace}/images/logo-small.png" alt="Mindshapes" />
                        </div>
                    </div>
                </div>
            </footer>
        </div> 
        <xsl:call-template name="js-contextual"/>
        &lt;script>
            var _gaq=[["_setAccount","UA-123456-1"],["_trackPageview"]];
            (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
            g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
            s.parentNode.insertBefore(g,s)}(document,"script"));
        &lt;/script>
    </body>
</html>

If anyone can help me figure out whats going on that would be fantastic. Thanks.

All I can suggest is you start demolishing the XSLT line by line. Start by removing the includes (page title, navigation, copyright) and the templates that use them. When the error disappears, you've point the breakpoint...

Argh...it was one line... panic averted people.

I hade <xsl:apply-templates select="/"/> instead of <xsl:apply-templates/>

maybe this thread is worthy of a delete?

No, it remains here as incriminating evidence against you FOR EVERS!!!

I like this idea. I can come here every morning, so my day will be good! :-)

No, it remains here as incriminating evidence against you FOR EVERS!!!

LOL, FOR EVERSSSS

My life is ruined.

Ah, Fazal, all you need is a new name, a new town and new friends!

I might move back to Nürnberg, but then I suppose the legend of my demise would have spread. There is no escape. Infinite recursion indeed.

Fazal, here's your problem...

<xsl:template name="life">
  <xsl:with-param name="status" select="'ruined'" />
  <xsl:call-template name="life" />
</xsl:template>

Thankfully you only have to ensure 3000 iterations before you ultimately suffer a fatal error.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details