wrong template being run

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default wrong template being run

    Hi,

    We are experiencing a problem where a service is trying to run a template at a
    path like this:

    domains/mydomain.org/rcpt.cfm

    but is actually running a similarly named template living one directory higher
    at:

    domains/rcpt.cfm

    This is an itermittent problem. It seems like it might happen after
    domains/rcpt.cfm is legitimately run. After that, trying to run rcpt.cfm in the
    subdirectory below it runs the top-level template instead. (We've already done
    significant debugging to show the service is in fact requesting hte correct
    template and so are pretty certain the problem doesn't lie there.) So I'm
    supposing this might be a problem with ColdFusion 6,1,0,63958 and its caching
    of compiled templates. To confirm this, I'm wondering it there is a way to turn
    of template caching on a per template basis. That is, can I force ColdFusion to
    parse a particular set of CFM files every time they are requested? Or does
    anyone have any other ideas about how to debug what might be happening?

    Thanks,
    Mike

    mab123 Guest

  2. Similar Questions and Discussions

    1. template inside another template
      Hi All! I have a problem with templates! As far as I know there is a nested template in dw. A nested template means that a template can be...
    2. Is there something WRONG WITH THIS TEMPLATE?
      Using the attached template, I'm having trouble creating docs when I introduce a form in them. The editable region tags get the yellow html...
    3. What's wrong with bandwidth selection template
      I've been trying to stream a video with the bandwidth selection template, but something is going bad. Can anyone tell me if the following...
    4. Using a Template as the base for another Template
      Hi, - Dreamweaver MX - Created a HTML-Template with some menu-items (normal hyperlinks) - I need to create on that menu-items some submenu-items...
    5. Am I doing anything wrong?
      Could you advise if I am doing anything wrong? Page: bdConnect.asp <% Set DataConn = Server.CreateObject("ADODB.Connection")...
  3. #2

    Default Re: wrong template being run

    I'd start by renaming the offending template. You might then be able to produce
    an error that sheds some light on the subject.

    If you are using variables to determine path, check those to make sure there
    are no shared variables.

    Look for offending CFLOCATION calls.

    If these applications have 2 different application.cfm files, be sure that the
    application names in each are different. If you don't they will share a session
    scope which can cause some very unusual things to happen.

    Lupus 23 Guest

  4. #3

    Default Re: wrong template being run

    Thanks for the suggestions. Unfortunately we can't rename the files as the
    product we are using (inFusion Mail Server) dictates what names they should be.
    The mail server is logging where it's getting the template from and so I'm
    pretty confident it's not a problem with how the path is being built up. We are
    using different Application.cfm files for the two rcpt.cfm files - I'll try
    changing that to avoid any session scope issues.

    mab123 Guest

  5. #4

    Default Re: wrong template being run

    We corrected the problem by turning off "Cache web server paths" in the CF admininstrator.
    mab123 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139