http://coldfusion.com logo
Join Slack
Powered by
# cfml-general
  • s

    satauros

    02/22/2022, 8:45 AM
    Off-topic question, but nginx related questions, where should I ask them?
    s
    d
    • 3
    • 2
  • s

    Sterling Hallfors

    02/22/2022, 5:08 PM
    Hi all, I am running into an issue getting ColdFusion2021 to recognize a PDF Service Manager in one of my production environments. Here is the main issue I am having. Note: I have this running properly on another server with the same CF Install and same web configuration of the PDFgServlet. I have installed (and re-installed for thoroughness) the Add-On Service and made sure the PDFgServlet is in place. Additionally, form the CF Admin I see that the PDF Service is verified (1st image). However, when using the <cfhtmltopdf> tag, I get the following error saying there are no available Service Managers (2nd image, CF Dump). I was hoping someone here might be able to steer me in the direction of something else I could check on my server that would cause CF to throw this error even when the Service Manager is verified in the admin.
    p
    j
    • 3
    • 3
  • z

    zackster

    02/22/2022, 8:33 PM
    I heard about this on a podcast, would be a neat extension to ListToArray https://github.com/tc39/proposal-reversible-string-split
    👍🏾 1
    d
    d
    +3
    • 6
    • 42
  • l

    Lukas

    02/23/2022, 2:48 PM
    Heyo, anyone here worked with multiple redis connections in lucee? We're getting some thread locks problems from the looks of it. Currently using Redis as our sessionStorage, and whilst adding a new redis connection to save other stuff to using CacheGet and CachePut, the sessionStorage isn't updated properly. Checking the value of my session from redis I see a bunch of java stacktrace with java.util.concurrent.locks.ReentrantLock and lucee.commons.collection.concurrent.ConcurrentHashMapNullSupport (which also appears in lucees scope.log ) Using google I found this little line:
    Copy code
    You might not know it, but Redis is actually single-threaded, which is how every command is guaranteed to be atomic. While one command is executing, no other command will run.
    Is it this that's the problem? If so, what can I do?
    s
    z
    m
    • 4
    • 21
  • s

    salted

    02/24/2022, 10:03 AM
    @abram Lucee 5 on trycf seems to be borked, even a dump of “hello” doesn’t seem to work, is there an issue you’re aware of?
    👀 1
    b
    a
    • 3
    • 2
  • a

    Adam Cameron

    02/24/2022, 10:15 AM
    Starting a new thread on this as the current discussion is buried way down an unrelated thread. @Daniel Mejia & @elpete this is extracted from a conversation you were having.
    Eric: ... The general rule is no member functions.
    Can you clarify what you mean by that? #ItsATrap
    e
    • 2
    • 7
  • g

    glook

    02/24/2022, 2:56 PM
    I have a data-driven site with about 6 pages. I was using the Application.cfc onRequestStart with a cfswitch against cgi.script_name to run queries to fill the pages. I want to move those out of the Application.cfc to their own CFC because it's getting crowded in there. Would a "pages.cfc" with a function for each page that would run the queries make sense? Would there be value in instantiating the object as a session variable so I could make the page calls that way? Is this a best practice? Any place to look to verify? Thanks all!
    s
    d
    • 3
    • 13
  • a

    agentfitz

    02/24/2022, 3:20 PM
    I recently switched to VSCode for CFML work (used to use Sublime). Only painful thing so far has been I can't find a way to list all functions in a file with one command.... In Sublime I could do that with command+R. Is anyone aware of a way to do this in VSCode for CFML? Google not helping 😢
    r
    e
    +5
    • 8
    • 24
  • j

    John Wilson

    02/24/2022, 5:35 PM
    I'm suddenly having problems when setting variables in the server scope. The code hasn't changed, but they not available (variable not found) after setting them, which is weird. I'm not even sure where to start looking - any ideas?
    a
    a
    • 3
    • 3
  • m

    Matt Dyer

    02/24/2022, 7:05 PM
    When using deserializeJSON is there any way to make it use ordered structs instead of standard?
    b
    z
    m
    • 4
    • 7
  • r

    Rick Morayniss

    02/25/2022, 1:48 PM
    I just install the cfml extension to my Visual code. Do I Need to do anything else is initialize it, it does not seem to be running.
    m
    r
    t
    • 4
    • 24
  • s

    Simone

    02/25/2022, 10:15 PM
    I am using cfquery result attribute to get the sql, but how can i get the full sql along with the parameters, i tried this function but it seems to be creating a problem, it dooes not return anything but instead says, complex queries cannot return data
    Copy code
    <cffunction name="getRealSQL" returntype="string">
        <cfargument name="qryResult" type="any">
        <cfset realSQL = QueryExecute("#arguments.qryResult#",{},{datasource="#Application.DSN#"})>
        <cfloop array="#arguments.qryResult.sqlParameters#" index="a">
            <cfscript>
                if (NOT isNumeric(a)) a = "'#a#'";
                realSQL = Replace(realSQL, "?", a);
            </cfscript>
        </cfloop>
        <cfreturn realSQL>
      </cffunction>
    if the function is right, what should i pass an argument, a query object or query results or what?
    m
    d
    +2
    • 5
    • 34
  • s

    salted

    03/01/2022, 10:07 AM
    Does anyone know the route for getting a fusionreactor trial now? Going to the trial page and choosing one asks you to sign up or sign in, but if you sign in with an existing account I’m not sure where you get one from there
    p
    d
    b
    • 4
    • 4
  • r

    Rick Morayniss

    03/01/2022, 2:28 PM
    This may seem like a silly question, but is there a tool that converts a coldfusion application to c#?
    a
    m
    • 3
    • 10
  • j

    John Varady

    03/01/2022, 5:10 PM
    CF 2018.0.13.329786
    writedump(isObject(url.get('bogus')));
    returns
    YES
    --- shouldn't it return
    NO
    for
    undefined
    ?
    t
    b
    +3
    • 6
    • 56
  • m

    Manta

    03/02/2022, 2:17 PM
    Hi 🙂 I am seaching a plugin for ColdFusion 2021. We used this in ColdFusion 2016. It called Certman. Has anyone a version für CF2021?
    s
    a
    • 3
    • 3
  • a

    Adam Cameron

    03/02/2022, 3:36 PM
    Other than just because "yer wrong mate", why did I think CFML had nullable return types these days? eg:
    public ?Something function getSomethingMaybe()
    🤷 1
    s
    m
    • 3
    • 7
  • g

    George Meng

    03/02/2022, 5:57 PM
    Where is the place to file a Coldfusion bug?
    m
    b
    • 3
    • 24
  • j

    John Wilson

    03/02/2022, 6:15 PM
    how do I gitignore
    .cfconfig.json
    ?
    b
    g
    • 3
    • 9
  • w

    wil-shiftinsert

    03/03/2022, 8:37 AM
    Otoh: there are also lots of applications which run in Lucee with only minor modifications.
    s
    z
    b
    • 4
    • 34
  • r

    romanstr

    03/03/2022, 2:14 PM
    Hi. Is using datasource clob=yes affects to perfomance or not? I have some long content fileds in my database, but it cuts by 64000 bytes. For these fields I use clob=yes DSN, but mayabe that's ok change main DSN to this option
    z
    d
    • 3
    • 2
  • g

    Gregory Alexander

    03/04/2022, 2:42 AM
    ColdFusion 2021 changed the way to output ORM arrays of structures. Using ColdFusion 2016 or prior, we used to be able to output an HQL query with a Java hashmap using #queryName[row].ColumnName# or using #queryName[row]["ColumnName"]. However, it seems that ColdFusion 2021 deprecated using the dot notation (queryName[1].ColumnName). I learned this from John's "Building applications with ColdFusion ORM", page 93, and have several years of code that is reliant upon it. When I am using the dot notion I am getting an 'Element COLUMNNAME is undefined in a Java object of type class java.util.HashMap., but using [queryName][1]["ColumnName"] everything works fine. I have thousands of lines of working code that use the dot notation and they all appear to be broken. Has anyone found a way around this?
    s
    a
    • 3
    • 8
  • s

    Simone

    03/04/2022, 1:02 PM
    trying to find if the key views exists, only do some work, what is wrong i am doing
    Copy code
    for (d in posts) {
                for (key in d) {
                   
                   structkeyexists(key,'views');
                   dump(key);
                }
            }
    t
    a
    • 3
    • 6
  • d

    Dave Merrill

    03/04/2022, 2:42 PM
    I have followthatpage watching Adobe's ColdFusion Downloads page. Today it said this: ----------------------- The page https://www.adobe.com/support/coldfusion/downloads.html has changed since the previous check. Changed: - Last updated on Feb 28, 2022 053943 AM GMT ... into: + Last updated on Mar 03, 2022 023304 PM GMT ----------------------- The last updated date changed, but no content? Does anyone have any further info, like are there updates that matter to existing ColdFusion installs (not dev tools or from-scratch installers)? @priyank_adobe @Mark Takata (Adobe)
    p
    • 2
    • 2
  • m

    Manta

    03/04/2022, 3:53 PM
    Hi, i have an <cfinclude>-Tag which includes a *.cfc File. Now I get the SQL Querys from the cfquery-Tag which includes in the cfc file under "cfcomponent"-Tag as Plain Text on the Website... What i do wrong here?
    z
    w
    +2
    • 5
    • 5
  • m

    Matt Dyer

    03/04/2022, 5:38 PM
    Is there a channel for asking questions about IIS and the web connector.? It looks like there is an archived webservers channel. I have an issue wth CF2018 and IIS 10.
    a
    • 2
    • 2
  • b

    bdw429s

    03/07/2022, 10:17 PM
    In regards to the BIF
    getTimeZoneInfo()
    , am I thinking wrong, or is this part of the return value backwards?
    • `utcTotalOffset`: offset of local time, in seconds, from UTC
    ◦ A plus sign indicates a time zone west of UTC (such as a zone in North America)
    ◦ A minus sign indicates a time zone east of UTC (such as a zone in Germany)
    The US, for example, would be before UTC and have a time less than UTC, so central should have an off negative 6 hours, not positive 6 hours, right?
    s
    a
    +3
    • 6
    • 19
  • s

    Simone

    03/08/2022, 7:47 PM
    is questionnaire/surevey means same
    m
    • 2
    • 1
  • d

    Daryl Lackey

    03/08/2022, 8:25 PM
    Is there something special I need to configure within Lucee (via commandbox) to display .hbs files? When I go to browse a page, all that displays is "Not Found" but if I place an image in the same directory as the .hbs file in question, the image is displayed. For example, this works: https://127.0.0.1:443/assets/templates/test.txt but this doesn't https://127.0.0.1:443/assets/templates/test.hbs UPDATE: Locally, the hbs files will display. I'm setting up the app on a windows server and there is it not displaying the hbs files.
    b
    • 2
    • 21
  • g

    glook

    03/08/2022, 8:45 PM
    We are moving away from cfajaxproxy towards jquery post/gets. For something simple like user validation, with cookie clearing, would using the current code in a rest CFC make sense rather than the cfajaxproxy? Sorry if this is stupid, obvious or way out there... 🙂
    z
    d
    a
    • 4
    • 4
12345...38Latest