ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot update template

February 20, 2009 9:05am

Subscribe [2]
  • #1 / Feb 20, 2009 9:05am

    webprouk

    69 posts

    Hi

    I am having problems updating a template I have created a few weeks ago. It was working before, but now, when I make changes and click on Update. It going into an endless “Loading”.

    I have php code and call a plugin. Can anyone point me in the right direction to debug?

    Thank you :D

  • #2 / Feb 20, 2009 10:34am

    Ingmar

    29245 posts

    Is that a custom template you are developing? Also, what version and build of EE are you on?

  • #3 / Feb 20, 2009 10:37am

    webprouk

    69 posts

    Yes, it is a custom template for a menu.

    The version I am on is 1.6.6 Build:  20081114

  • #4 / Feb 20, 2009 10:38am

    Ingmar

    29245 posts

    Sorry, I misspoke, I meant to say “custom plugin”. Also, upgrading to 1.6.7 would help us rule out file corruption, if that’s an option.

  • #5 / Feb 20, 2009 10:52am

    webprouk

    69 posts

    I rather no upgrade right now,the last time I did, I encountered more problems.

    Yes, it is a custom plugin and I broke up the template into bits. The problem starts when I add a query:

    {exp:query sql="SELECT cat_name, cat_id, cat_url_title FROM exp_categories WHERE parent_id = '{embed:Cat_id}' ORDER BY cat_order"}
    
                <li><a href="http://{path=" class="">{cat_name}</a></li>
             
            {/exp:query}

    Is this of any help?
    Thanks

  • #6 / Feb 20, 2009 11:34am

    Ingmar

    29245 posts

    I am afraid this is all somewhat vague. If it’s a plugin you are developing, may I suggest the “Plugins” sub forums? It’s where the specialists hang out. In your query, you can try hardcoding some values instead of using embeds (for testing purposes); and I still suggest you upgrade to EE 1.6.7, it’s a recommended security update.

  • #7 / Feb 20, 2009 11:53am

    webprouk

    69 posts

    Well, I cannot test the query at all because as soon as I enter the code and click on Update I go nowhere, the browser window can stay loading for ages :( and I removed the plugin code here. So I have no idea why the queries don’t work now

  • #8 / Feb 20, 2009 11:57am

    Ingmar

    29245 posts

    You should do some reduction testing: start with a minimal template, then add to it until it breaks. Another quick thing:

    <li><a href="http://{path=" class="">{cat_name}</a></li>

    Is that your exact code? The path= variable appears to be empty, and unclosed.

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

ExpressionEngine News!

#eecms, #events, #releases