Skip to content

Instantly share code, notes, and snippets.

@bardware
Created March 12, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bardware/45e19438d05dcc3905400aa5878c4987 to your computer and use it in GitHub Desktop.
Save bardware/45e19438d05dcc3905400aa5878c4987 to your computer and use it in GitHub Desktop.
Error trying to set a mailserver
> cfconfig set mailServers=127.0.0.1 to=myserver
ERROR (4.6.0+00003)
invalid call of the function setMailServers, first Argument (mailServers) is of invalid type, can't cast String [127.0.0.1] to a value of type [array]
the function is located at [C:\Users\xxx\.CommandBox\cfml\modules\commandbox-cfconfig\modules\cfconfig-services\models\providers\Adobe9.cfc]
\modules\commandbox-cfconfig\commands\cfconfig\set.cfc: line 59
57: error( "[#property#] is not a valid property" );
58: }
59: oConfig[ 'set#property#' ]( arguments[ property ] )
60: .write( toDetails.path );
61:
called from \system\services\CommandService.cfc: line 341
called from \system\services\CommandService.cfc: line 138
called from \system\Shell.cfc: line 757
called from \system\Shell.cfc: line 577
called from \system\Bootstrap.cfm: line 159
To enable full stack trace, run config set verboseErrors=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment