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.

No Closing Tags Issue in Template Manager EE 2.4.0 using Chrome

March 30, 2012 1:02pm

Subscribe [1]
  • #1 / Mar 30, 2012 1:02pm

    Blake Wallace

    8 posts

    I am using EE 2.4.0 and Google Chrome.

    When editing a template in the Template Manager I am seeing display issues when templates have tags with no closing tag. 

    When you click “update” or “update and finish” it shows an error about no closing tag found.  This is normal and expected.  Just a note this is an error on a tag that doesn’t have a closing tag. 

    What isn’t normal is that all of the accordion options are now open with no way to close and parts of the page, such as the menu buttons at the top, don’t render correctly.

    I didn’t notice that there are Javascript errors on the page that only appear if there is a “No closing tag found” warning.

    Refused to execute a JavaScript script. Source code of script found within request.
    Uncaught ReferenceError: jQuery is not defined index.php:1
    Uncaught ReferenceError: $ is not defined index.php:43
    Uncaught ReferenceError: jQuery is not defined index.php:11
    Uncaught ReferenceError: jQuery is not defined index.php:44

    When I click “update and finish” again. I get back to the Template Manager but it looks like the attachment below with the same JQuery errors.

    If I refresh the screen, the errors are gone.

    This only seems to be happening on Chrome as I tried this on FireFox and didn’t have this issue.

  • #2 / Apr 02, 2012 10:59am

    Dan Decker

    7338 posts

    Hi Blake,

    I’m sorry you are having trouble with the error reporting in the Template Manager!

    I did my best to replicate your experience using Chrome and ExpressionEngine 2.4 on Mac OS X Lion. I was unable to recreate the problems you report.

    In the screenshot, it appears you are using a theme other than the default Control Panel theme? If so, can you with to the default theme included with ExpressionEngine and let me know if you still experience the issue?

    Cheers,

  • #3 / Apr 02, 2012 2:32pm

    Blake Wallace

    8 posts

    It is the default theme.  Some of the CSS elements are not rendering due to the JS errors.  That’s why you don’t see the rounded corners.  When I refresh the page, in the Template Manager view, it renders fine.  If I refresh the page in the Edit Template view, it does not fix the errors.

    Update:

    It looks like it’s not the unclosed tags as the EE error led me to believe.  It is actually a JS file that I have in the template.

    script src=“http://www.domain.com/themes/third_party/cartthrob/scripts/jquery.form.js

    Note: Had to remove the <> to get it to show in the post.

    If I take out the “http://www.domain.com” and just leave “/themes/third_party…..” (making it relative) it works just fine.

    This fixes the issue but I still wonder why would this be in issue in the template?

  • #4 / Apr 05, 2012 1:21pm

    Dan Decker

    7338 posts

    Hi Blake,

    That is odd! I’m glad you tracked it down.

    This fixes the issue but I still wonder why would this be in issue in the template?

    I can assume you had the closing script tag?

    < /script>

    I know I have included full URLs without issue before.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases