http://coldfusion.com logo
Join Slack
Powered by
# box-products
  • d

    Daniel Mejia

    06/21/2022, 7:05 PM
    [Solved] I don't understand this wirebox error: Neither the method process was found in component time.TimeClient nor was there any default method with this name present in any of the implementing interface. Ensure that the method is defined, and that it is spelled correctly. The error occurred on wirebox\system\ioc\Builder.cfc:494.
    • 1
    • 3
  • d

    Daniel Mejia

    06/21/2022, 7:48 PM
    How do I configure my wirebox so it registers forgebox modules installed in my application root modules folder? My config file is located here: /WireboxConfig.cfc and in the configure method I have this:
    binder.mapDirectory('modules')
    e
    b
    • 3
    • 41
  • b

    Brian

    06/22/2022, 5:27 PM
    Long-time listener, first-time poster. At least in this channel. I was in CB and when I checked for an update, it said there was one. So I downloaded it and ran it and everything seemed to go fine. But now when I try to run almost any command I get the error,
    C:\Program Files\Box\ is not a package!
    I've tried uninstalling it by deleting the binary, JRE, and .CommandBox directory and reinstalling it, but I get the same results. Google was no help. Any ideas on how to fix this, kind folks?
    b
    p
    • 3
    • 20
  • z

    zackster

    06/23/2022, 1:58 PM
    is there a way to make cfconfig env vars mandatory, i.e. blow chunks and exit if they aren't defined? docker has
    {PWD:?pwd_env_var_must_be_defined}
    b
    w
    +2
    • 5
    • 11
  • r

    Ryan Albrecht

    06/24/2022, 12:30 AM
    question. Is it possible to have a pre advice for a list of handlers? I cant use
    this.prehandler_only
    as I still need the
    preHandler
    advice to fire for the above handlers
  • a

    Adam Brunt

    06/24/2022, 7:51 AM
    Just starting out with Commandbox really and I am having an issue getting it to build a default Lucee server whereas it builds an Adobe2016 one fine. I am using the cfconfig module and have a .cfconfig.json file in my project. As I say, all works fine for adobe2016 but when I just try "server start" I get an error about missing Lucee files in the cfconfig module: Loading CFConfig into server | | > file or directory [C:/Users/ZZZZZ/.CommandBox/cfml/modules/commandbox-cfconfig/modules/cfconfig-services/resources/lucee5/lucee-server-base.xml] does not exist and, sure enough, my .CommandBox\cfml\modules\commandbox-cfconfig\modules\cfconfig-services\resources folder only has folders for adobeXXXX. Is there a step I have missed ? I have maybe installed cfconfig incorrectly ? Any ideas anyone
    d
    b
    • 3
    • 11
  • g

    gpickin

    06/24/2022, 3:58 PM
    Going Live - Join Dan Card for this Months Ortus Webinar right now - Getting started with the Legacy Migration https://bit.ly/3yidaQd
  • l

    lmajano

    06/24/2022, 11:35 PM
    Happy release day! ColdBox 6.7 is out!! https://coldbox.ortusbooks.com/intro/release-history/whats-new-with-6.7.0
    🤘 4
  • s

    sknowlton

    06/25/2022, 3:15 PM
    What
    type
    do people use to validate dates for SQL datetimes? values like
    20200101
    pass the
    isValid( "date")
    check, and I know there's
    usdate
    but the lucee docs say not to use that
    z
    s
    +2
    • 5
    • 24
  • e

    elpete

    06/28/2022, 5:00 PM
    🚨 Starting now! 🚨 Join @elpete and @dcar7191 for the CFML News Podcast. Live with chat on YouTube:

    https://youtu.be/gxH11vBPuGA▾

  • r

    Robert Zehnder

    06/29/2022, 2:27 PM
    I know commandbox will allow you to
    execute page.cfm
    d
    b
    • 3
    • 31
  • d

    davidrschaller

    06/29/2022, 2:33 PM
    Coldbox i18n question: When including accent characters directly on my cf template, I see the output correctly .. á, é, í, ó, ú, ü, ñ, ¿, ¡ When using a resource file: { "hra": { "intro": { "accents" : "á, é, í, ó, ú, ü, ñ, ¿, ¡", ... and #getResource( "hra.intro.accents")# .. my result is ... á, é, Ã, ó, ú, ü, ñ, ¿, ¡ My html includes proper meta utf-8 encoding and have included the <cfprocessingdirective pageencoding="utf-8"> tag. As I am new to i18n, am I missing something? Thanks
    p
    • 2
    • 6
  • r

    Ryan Albrecht

    06/29/2022, 4:15 PM
    Question. When using quick orm I have a qb setting struct in my coldbox.cfc to set the default qb return format to
    query
    Unfortunately it does not seem like quick honors this when using the
    retrieveQuery()
    method. Is this the expected behaviour or am I missing somrthing?
    s
    e
    • 3
    • 17
  • a

    aaronstoddard

    06/29/2022, 5:16 PM
    I'm looking into search collection services and see that ColdBox has several implementations of ElasticSearch, but I haven't found one for Azure Search. Do modules exist for Azure Search for CFML?
  • a

    Adam Brunt

    06/29/2022, 7:57 PM
    Can Commandbox run a CF/Lucee instance on port 80/443 on the same machine that I'm also hosting other IIS sites on port 80/443 ? Before I started looking into Commandbox my dev environment was/is running several IIS sites all bound to port 80 and 443 but using different domain names. I know the httppost(?) module lets you use a custom domain name but in my scenario it errors saying port 80 is already in use. Whilst this is technically true, it is not true for the domain name I am telling Commandbox to use.
    b
    • 2
    • 20
  • r

    Robert Zehnder

    06/30/2022, 1:03 PM
    I was testing a new command that includes a service that works fine when I have the module linked to the core, but I am getting a DSL error when I install through forgebox
    b
    • 2
    • 11
  • d

    danmurphy

    07/01/2022, 5:48 PM
    Using Quick and have a question. I have a FoundItem model. I don’t ever want to get a FoundItem with certain statuses (NULL and P are ok, basically). I know on the handler I can do this…
    Copy code
    var foundItem = getInstance( 'FoundItem' )
        .where( 'id', rc.id )
        .whereRaw( 'NVL(status, ''P'') = ''P''' )
        .firstOrFail()
        .getMemento();
    But is there a way to just put this on my Quick Model directly so that it never tries to bring back a record with any other status and we don’t have to deal with it all over the place? That way I could just do
    var foundItem = getInstance( 'FoundItem' ).findOrFail( rc.id ).getMemento();
    instead anywhere we need one. Thoughts?
    s
    • 2
    • 5
  • e

    elpete

    07/05/2022, 5:00 PM
    🚨 Starting now! 🚨 Join @elpete and @garciadev for the CFML News Podcast. Live with chat on YouTube:

    https://youtu.be/5qwrXXhBdB8▾

  • b

    birdy1980

    07/06/2022, 8:58 AM
    Hi, I was looking into the package commandbox-fusionreactor and I found a bit of outdated information and settings. The list of additional jvm args is not up-to-date anymore. https://commandbox.ortusbooks.com/embedded-server/fusionreactor#additional-jvm-args For example: the arguments starting with fusionreactor.REST... are no longer supported, according to this page: https://docs.fusion-reactor.com/Configuration/Enterprise-Dashboard-Configuration/#automatically-registering-fusionreactor-instances-to-the-dashboard Also there are some new jvm settings like: -Dfr.chat.enabled=false/true and about six that start with -Dfr.ed.ds.<option> to configure automatic registration with a dashboard. Could you update the module and documentation with the new options? (maybe remove the deprecated options?)
    b
    b
    • 3
    • 7
  • b

    birdy1980

    07/06/2022, 1:23 PM
    Hi, we are testing the commandbox-service-manager. Is it possible to influence the "directory" parameter that is used in the startup command? I have tried setting it with this command
    server service update name=sm1apc directory="C:/software/web/profit-tasks"
    And Ii have set the same value in the server.json file. But still in the windows event viewer the directory points to the
    /htdocs
    folder
    b
    • 2
    • 23
  • s

    Scott Steinbeck

    07/06/2022, 4:32 PM
    CACHEBOX question?? Im not sure if this is the wrong way to think about caching. But here we go. I have API requests that I am using throughout client based SAS product, some of which are intensive database requests that take longer than i would like (1-2 seconds), I have optimized the queries to the best of my ability and now I would like to entertain caching. My problem is it appears in caching most cached items are invalidated based on usage or time. However I need them to be invalidated by triggering an update when the clients settings are changed. Is this an anti-pattern or just not a common workflow. I imagine most caching workflows are for front facing sites that don’t change often. Either way a good workflow to use for invalidating on a user changing their data would be super helpful to me?
    p
    b
    +2
    • 5
    • 75
  • d

    Daniel Mejia

    07/06/2022, 6:12 PM
    looks like
    jq
    breaks when I use jamespath filter expressions
    b
    s
    • 3
    • 7
  • r

    Ryan Albrecht

    07/07/2022, 2:15 PM
    I am trying to add additional tests to the cors module but I am having some issues getting testbox to even run correctly. • The first issue is that
    tests.specs.intergration.CORSSpec
    inherits
    tests.resources.ModuleIntergrationSpec
    but the setup() method is not being executed by testbox. • The second issue I face is that the majority of the tests do a cfhttp (hyper in this case) call to
    test/resources/app/index.cfm
    which I understand is a separate coldbox application but I dont understand how the cors module is suppose to be loaded in that application. My understanding about testbox is that all I have to do is start the server and hit
    tests/runner.cfm
    and the existing tests should work. Am I missing something?
    s
    e
    • 3
    • 9
  • r

    Robert Zehnder

    07/07/2022, 8:18 PM
    I am seeing a strange issue in a commandbox module where if i am running the command in a
    box
    window. The first time I run the command it will output files properly. If I run the command again it will look like it completed successfully, but the updates will not be applied. Doing a
    reload
    and running the command works.
    b
    • 2
    • 20
  • b

    Brian Lang

    07/07/2022, 10:15 PM
    I want to MANUALLY download a CFWheels Plugin - specifically https://www.forgebox.io/view/cfwheels-js-confirm I can't find a link on that page to manually download the plugin. Where can I get it?
    b
    d
    r
    • 4
    • 45
  • r

    Ryan Albrecht

    07/08/2022, 12:37 PM
    It seems when using the
    this.allowedMethods
    structure in a handler OR if using the allowed methods annotation
    function index( event, rc, prc) allowedMethods="GET,POST" {...}
    coldbox does not correctly check if it is an invalid event when calling
    event.isInvalidHTTPMethod()
    inside an interceptor. The function call seems to always return false. Coldbox will however throw an InvalidHTTPMethod if the interceptor returns. Can anybody confirm my findings?
  • p

    Peter Amiri

    07/08/2022, 5:03 PM
    @bdw429s When using CommandBox in a docker container. Is there anyway to pass in which server.json file to use? I have several in my root directory server.json, server-lucee5.json, server-cf2016.json, server-cf2018.json, you get the picture. I'd like to be able to define which one of these to use so I could launch three different containers each running a different engine. I've figured out how to do this with CFConfig by defining the BOX_SERVER_CFCONFIGFILE environment variable in my docker-compose.yml file. Was hoping there was a simple way to set the server name or the server.json file via the environment variables as well.
    b
    s
    j
    • 4
    • 32
  • a

    Aubrey C.

    07/08/2022, 7:01 PM
    When using the single stage build w/ finalization method, is it beneficial or required to run the warm up process in the build as well?
    Copy code
    Single-Stage With Script Finalization
    You may also create this finalized startup script in a single-stage build:
    
    FROM ortussolutions/commandbox:lucee5
    
    # Generate the finalized startup script and exit
    RUN export FINALIZE_STARTUP=true;$BUILD_DIR/run.sh;unset FINALIZE_STARTUP
    b
    • 2
    • 1
  • d

    Daniel Mejia

    07/08/2022, 8:29 PM
    trying to build my custom docker image using the commandbox base dockerfile and the shell scripts are not found on the image system:
    Copy code
    => ERROR [13/18] RUN /usr/lib/build/util/alpine/install-dependencies.sh                     0.6s
    ------
     > [13/18] RUN /usr/lib/build/util/alpine/install-dependencies.sh:
    #17 0.607 /bin/sh: /usr/lib/build/util/alpine/install-dependencies.sh: not found
    ------
    executor failed running [/bin/sh -c $BUILD_DIR/util/alpine/install-dependencies.sh]: exit code: 127
    • 1
    • 2
  • m

    madmike_de

    07/11/2022, 2:41 PM
    Is the https://www.forgebox.io/view/box-ngrok extension still up to date? I installed the extension, but cbox say the share command doesn't exist.
    l
    e
    b
    • 4
    • 11
1...8910...30Latest