HTTP 500 - Internal Server Error

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default HTTP 500 - Internal Server Error

    Hi.
    I'm getting an Internal Server Error on the following page

    All other pages on the site are working fine

    any and all help will be appreciated


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <cfquery Name="Iteminfo" datasource="Products">
    SELECT ItemName, Image, ItemInfo, Price
    FROM tblItems
    WHERE tblItems.ItemCode = <cfqueryparam value="#url.id#"
    cfsqltype="cf_sql_integer">
    </cfquery>

    <cfquery name="Warnings" datasource="Products">
    SELECT WarningInfo
    FROM tblWarnings, tblWarningLink, tblItems
    WHERE tblWarnings.WarningCode = tblWarningLink.WarningCode
    AND tblItems.ItemCode = tblWarningLink.ItemCode
    AND tblItems.ItemCode = <cfqueryparam value="#url.id#"
    cfsqltype="cf_sql_integer">
    </cfquery>

    <cfquery name="Properties" datasource="Products">
    SELECT Property
    FROM tblProperties, tblPropLink, tblItems
    WHERE tblItems.ItemCode = tblPropLink.ItemCode
    AND tblPropLink.Propcode = tblProperties.Propcode
    AND tblItems.ItemCode = <cfqueryparam value="#url.id#"
    cfsqltype="cf_sql_integer">
    </cfquery>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Item Description</title>
    </head>
    <body>
    <table width="772" border="0">
    <tr>
    <td width="180">
    <cfoutput>
    <cfif display.Image is "">
    <img src="images/thumbnailnopic.jpg" width="100" height="100"><br>
    <cfelse>
    <img src="images/#ItemInfo.image#" width="100" height="100"><br>
    </cfif>
    </td>
    <td width="607">
    <H3 align="center">#ItemInfo.ItemName#</H3>
    Product Description - #ItemInfo.ItemInfo#<br><br>
    <cfif Properties.recordcount is not 0>
    <H4 align="center">Properties</H4>
    <cfoutput query="Properties">
    #Properties.property#
    <cfif Properties.currentrow lt Properties.Recordcount>
    ,
    </cfif>
    </cfoutput>
    </cfif>
    <cfif Warnings.recordcount is not 0>
    <h5 align="center">Warnings</h5>
    <cfoutput query="Warnings">
    #Warnings.warninginfo#<br>
    </cfoutput>
    </cfif>

    </td>
    </tr>
    </cfoutput>
    </table>
    </body>

    </body>
    </html>

    Vampyr_Bytes Guest

  2. Similar Questions and Discussions

    1. HTTP/1.1 500 Internal Server Error
      Hi When I try to create ASP.NET Web Application I get error :HTTP/1.1 500 Internal Server Error I tried aspnet_regiis -i it doesnt work. What...
    2. HTTP 500 Internal Server Error
      Uncheck "Show Friendly HTTP Errors" in IE. Reload the page. Post the complete error message that you now see. Cheers Ken "Darin"...
    3. HTTP 500 - Internal server error ASP pages
      HTTP 500 - Internal server error ASP pages I am running Windows 2K with IIS 5.1 and I started having problems accessing ASP databases shortly...
    4. 'HTTP/1.1 500 Internal Server Error'
      Hi, i try to create a web-project with vstudio 2003. I am unable to create a new project. The following error occurs: 'HTTP/1.1 500 Internal...
    5. HTTP 500--Internal Server Error
      you are not providing any kind of detail where anyone could help you. "http 500--internal server error" just means there was an error if you...
  3. #2

    Default Re: HTTP 500 - Internal Server Error

    If you are using Internet Explorer, try turning off the "friendly" error messages to get the real error

    Tools-->InternetOptions-->Advanced-->Show friendly HTTP error messages (Uncheck this)
    mxstu Guest

  4. #3

    Default Re: HTTP 500 - Internal Server Error

    I, too, cannot see where the gremlin is hiding. But you will lose nothing if
    you
    try the following:

    * output the link "images/#ItemInfo.image#" and make sure it is what you
    expected. I have found that mixing URLTokened links with non-URLTokened
    links sometimes leads to problems.

    * words like "Properties" and "Property" already make me lean forward. Check
    that you're not offending any reserved keywords in database server or
    Coldfusion.

    * I would use
    <cfif Properties.recordcount> and <cfif Warnings.recordcount>
    in place of
    <cfif Properties.recordcount is not 0> and <cfif Warnings.recordcount is
    not 0>,
    respectively.

    * In would do this instead
    <cfoutput>#ValueList(Properties.property)#</cfoutput>
    and this, on a single line, with no space in between,
    <cfoutput query="Warnings">#Warnings.warninginfo#<br></cfoutput>

    BKBK Guest

  5. #4

    Default Re: HTTP 500 - Internal Server Error

    Thanks both. mxstu led me to the answer (always easier to fix a problem when
    you know what it is ;) )

    I'd copied and pasted part of the code from another page in the site, but
    hadn't changed one of the recordset names... it was looking for display.image
    instead of iteminfo.image

    Vampyr_Bytes Guest

  6. #5

    Default Re: HTTP 500 - Internal Server Error

    >... it was looking for display.image instead of iteminfo.image
    Good you finally found it. But, it is a bit unfair that CF issued you
    an internal server error just for that. The mind boggles.
    BKBK Guest

  7. #6

    Default Re: HTTP 500 - Internal Server Error

    I've been having this problem sometimes on different developing machines... in
    the past i always used iis and had the problem one day to the next, and now i
    have it on a apache install. When I get the 500 error I have to place an
    cfabort somewhere before the error (guesswork) and then when i get the blank
    page, i remove the cfabort et voila the actual error. I've got absolutely no
    clue what's causing this error but since several of my colleagues have had the
    same problem, I'm guessing that we're not the only ones on this world, who this
    is happening to...

    Can someone maybe shed some light on this?

    RUNd 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