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

    Ookma-Kyi

    08/23/2022, 3:51 PM
    Copy code
    Command "migrate install" cannot be resolved.
    
    
    Please type "help" for assistance.
    
    CommandBox>
    What the hell happened to my installation??? I literally zipped the entire source directory up, so I shouldn't be having these issues.
    b
    • 2
    • 38
  • p

    Peter Amiri

    08/23/2022, 5:47 PM
    Is there something special one has to do to get commandbox to suggest an update on a package. Let me explain, I install the previous CFWheels version using:
    Copy code
    install cfwheels-base-template@2.3.0
    Then issue an update command:
    Copy code
    update
    and the results I see shows there is a newer version but it doesn't give an update to update to it:
    Copy code
    ❯ update
    Resolving Dependencies, please wait...
    ╔════════════════╤═══════════╤════════╤════════╤═══════════╗
    ║ Package        │ Installed │ Update │ Latest │ Location  ║
    ╠════════════════╪═══════════╪════════╪════════╪═══════════╣
    ║ cfwheels@2.3.0 │ 2.3.0     │ 2.3.0  │ 2.4.0  │ /cfwheels ║
    ╚════════════════╧═══════════╧════════╧════════╧═══════════╝
    Key: Update Available   Major Update Available
    
    There are no outdated dependencies!
    I feel like, I'm missing something in my packages submitted to ForgeBox that says something to the effect of "Updates version 2.3.0".
    b
    • 2
    • 13
  • o

    Ookma-Kyi

    08/23/2022, 6:46 PM
    Hello, getting this now:
    Field 'username' doesn't have a default value
    This is the code I am using.
    Copy code
    // create Action
    	function create( event, rc, prc ){
         ...
    		var token = generateRandomToken();
    
    		var now = Now();
    		var expiration =DateAdd("d", 1, now);
    
            var user = getInstance( "User" )
    			.firstWhere( "email", rc.email )
    			if( !isNull( user ) ) {
    				user.setToken( token )
    				.setExpiration( expiration )
                	.save();
    			}
    		    relocate( uri = "/login" );
    		
    	}
    I don't see what that has to do with what I'm trying to do.
    b
    • 2
    • 58
  • b

    bhartsfield

    08/24/2022, 1:21 AM
    Checking out Quick ORM and trying to figure out how to set up the correct relationship(s). Details in the thread.
    s
    w
    • 3
    • 14
  • d

    David Rogers

    08/24/2022, 3:48 PM
    Hey good morning. I'm trying use a wirebox provider. I would like to know what arguments some
    getInstance
    passed to init arguments, I think they may not be available though, maybe I am misunderstanding or this is by design.
    Copy code
    // coldbox/system/ioc/Injector.cfc
    case "provider": {
        // verify if it is a simple value or closure/UDF
        if ( isSimpleValue( arguments.mapping.getPath() ) ) {
            oModel = getInstance( arguments.mapping.getPath() ).$get();
        } else {
            var closure = arguments.mapping.getPath();       
            oModel      = closure( injector = this ); // initArguments not passed here?
        }
        break;
    }
    • 1
    • 1
  • a

    Anders Lars

    08/24/2022, 3:49 PM
    It is a hard and fast rule to put LogBox outside of the webroot and hook up a mapping? Obviously deployment to multiple nodes a bit easier if it is all in the webroot but then I guess I will need to some URL rules in place - mitigating the ease of deployment 🙂 Not sure if you guys have seen an exploits targeted at logbox that make this a concern.
    z
    • 2
    • 1
  • o

    Ookma-Kyi

    08/24/2022, 9:03 PM
    Good Afternoon, I am trying to get my application to send an email. When I check the logs it says bad Username & Password. However when I verify the connection I get a success message which contradicts the logs. Any ideas?
    a
    d
    r
    • 4
    • 33
  • r

    ryan

    08/25/2022, 6:20 PM
    I have situation where a web server is having intermittent issues with the site looking like it is down from a few minutes to a few seconds where Undertow is not accepting requests. This web server is using Commandbox, Lucee, and Undertow on an Ubuntu server. I do not have access to the server, yet, to look at logs and such, but I will have them in a day so and hopefully it will have a good indication as to what is going on. Has anyone experienced any issues similar to this before?
    b
    p
    • 3
    • 56
  • g

    gpickin

    08/26/2022, 4:01 PM
    Webinar going live now - Ortus ITB Q&A https://us02web.zoom.us/j/84048124935?pwd=Z3I2Q2xoWEp6SzRZWStKZVFVR2xoZz09
  • b

    bdw429s

    08/26/2022, 7:02 PM
    https://twitter.com/bdw429s/status/1563231769356144643
  • b

    Brian

    08/26/2022, 7:14 PM
    I'm sure I'm missing it somewhere, but how do you change the webroot of a CF server in CommandBox?
    b
    • 2
    • 51
  • r

    richard.herbert

    08/28/2022, 12:56 PM
    I'm trying to update a Coldbox app from v5.4 to v6.8 and all's going well except for pdf generation. I've stepped through the v6.x releases and the problem for me starts with v6.3 onwards and I'm trying to understand the changes that were introduced in that version that I should account for. The following code works as expected until v6.3 when it then returns a 500 with
    The web page at *<http://localhost:8500/reports/deliveredby/hand>* might be temporarily down or it may have moved permanently to a new web address. ERR_INVALID_RESPONSE
    That code being...
    Copy code
    public void function deliveredByHand( event, rc, prc ) {
    	prc.members = MemberService
    		.getMembersByHandDelivery();
    
    	cfheader( name='content-disposition' value='attachment;filename="Delivered by Hand.pdf"' );
    
    	event.renderData(
    		data=renderView( 'reports/deliveredbyhand' )
    		,type='pdf'
    		,pdfArgs={ pagetype:'A4', unit:'cm', margintop:'1', marginbottom:'1',marginleft:'1', marginright:'1' }
    	);
    
    	return;
    }
    Either, what have I been wrong all this time, or what has changed in v6.3 and how should I change my code? Thoughts and advice welcomed.
    s
    s
    • 3
    • 11
  • g

    gpickin

    08/29/2022, 4:06 PM
    Ortus Pre-Conference talks is starting - here we go If you have tickets, you should be invited to the channel to get access, if not, going buy a ticket at www.intothebox.org
  • g

    gpickin

    08/29/2022, 7:00 PM
    Matthew Clemente about to start his pre-conference session - Cold Brews: Getting Started with Java in Your CFML Apps If you have tickets, you should be invited to the channel to get access, if not, going buy a ticket at www.intothebox.org
  • g

    gpickin

    08/29/2022, 8:52 PM
    No podcast tomorrow with the ITB Pre-Conf going on. If you want, same time, same YouTube channel we have a special ITB Q&A and teaser webinar - check it out, 10am PDT tomorrow here

    https://youtu.be/OvirVneISxs▾

  • d

    Daniel Mejia

    08/30/2022, 12:56 AM
    I was checking the logs and found this in my error log from commandbox server.
    • 1
    • 1
  • g

    gpickin

    08/30/2022, 5:04 PM
    No podcast today, but you can watch the ITB Preview Q&A on Youtube here

    https://www.youtube.com/watch?v=OvirVneISxs▾

  • o

    Ookma-Kyi

    08/30/2022, 7:48 PM
    If I set a property inside a handler how long is it's lifetime? Specifically does it last between 2 different actions in a single handler?
    b
    • 2
    • 11
  • p

    paolo79

    08/31/2022, 2:09 PM
    When I enable CF debugging using TestBox I get an exception related to a FusionReactor object. It's not a problem for me, but I would like to understand if I am wrong to define something in my unit_test. I use component extends="mxunit.framework.TestCase" Does it happen to you too?
    b
    • 2
    • 9
  • p

    paolo79

    08/31/2022, 2:10 PM
    i tried putting in my runner: <cfparam name="url.coverageEnabled" default="false"> or disabled it by URL but nothing..
  • a

    aaronstoddard

    08/31/2022, 7:38 PM
    Is there an example someone could point me to where WireBox is used for DI within TestBox? I have tried following the docs but I keep running into an error: "The DSLNamespace: coldbox cannot be used as it requires a ColdBox Context" FYI: I am aware that using DI in unit tests is not best practice, but I would like to in this context because I would have to mock a ton of dependancies and I just don't want to.
    b
    • 2
    • 40
  • d

    danmurphy

    08/31/2022, 10:25 PM
    Using coldbox-elixir v3.1.11, I have just a
    /resources/assets/js/app.js
    file and
    /resources/assets/css/scs-main.css
    file. Coldbox-elixir seems to be creating a
    /includes/css/scs-main.js
    file and I obviously don’t want it to. Am I doing something weird with my config? (details in thread)
    • 1
    • 1
  • b

    bdw429s

    09/01/2022, 5:44 PM
    That usually means you were serialization an array which was modified mid-stream by another thread
    w
    z
    • 3
    • 16
  • r

    raymondcamden

    09/01/2022, 8:19 PM
    It may be my CLI is behind, but twice now box has failed to stop a server. I tell it to stop and forget, and the CLI says, "Did you leave the server running?" Well no, I'm literally telling it to stop.
    b
    • 2
    • 4
  • p

    Peter Hoopes

    09/02/2022, 1:43 AM
    Having read the CommandBox docs, and seeing about binding a server to a specific host:port combo - is it possible to have two host names handled by the same server? In Apache, you can assign several hostnames to a specific Virtual host. Wondering if that’s possible with the CB servers…
    b
    • 2
    • 14
  • g

    glook

    09/02/2022, 1:32 PM
    While I see aliases are available in server.json, is it possible to configure a subdomain to point to a folder so I end up with mysub.mydomain.com ?
    b
    • 2
    • 4
  • j

    Jason Ryan

    09/02/2022, 7:11 PM
    I'm trying to setup commandbox light via Docker using the Lucee docker image (debian-based). I'm feeling a bit out of my element, unable to get it working. What is meant by the box binary? I tried unpacking the
    box-light
    to
    usr/local/bin
    so I can run box commands (like
    box install commandbox-migrations
    ) but
    box
    command isn't found. I'm definitely missing something, just don't know what 🤔 Here's what I have so far in the Dockerfile: RUN wget https://s3.amazonaws.com/downloads.ortussolutions.com/ortussolutions/commandbox/5.5.2/box-light RUN jar xvf box-light RUN mv box-light /usr/local/bin/box-light
    b
    • 2
    • 24
  • r

    richard.herbert

    09/03/2022, 5:13 PM
    I'm writing my first ColdBox driven API and I've started a new ColdBox app with
    coldbox create app myApp rest-hmvc
    and it's created the endpoints as
    /api/v1/echo/
    but with my app I want it to present as
    /v1/echo/
    but keep the
    /modules_app/api/modules_app/v1/handlers/Echo.cfc
    structure in the OS. I'm struggling to get the
    /api/
    out of the
    /api/v1/
    route. What am I missing?
    s
    • 2
    • 3
  • b

    bdw429s

    09/03/2022, 9:44 PM
    https://twitter.com/bdw429s/status/1566180164345778177
  • c

    chapmandu

    09/05/2022, 1:26 AM
    I'm seeing
    lucee.runtime.exp.RequestTimeoutException: request /ping.cfm (/app/ping.cfm) has run into a timeout (timeout: 80 seconds) and has been stopped. The thread started 60693ms ago.
    since upgrading to commandbox 5.6.. I am not getting a response from any page in 2 separate DEV applications. Reverting to commandbox=5.5.2-1 for the time being, under which pages return the expected response.
    b
    • 2
    • 12
1...121314...30Latest