stroebs_za Posted April 19, 2019 Share Posted April 19, 2019 Hi all, I'm having great difficulty with configoptions in my custom server module. There is a phantom configoption showing up as configoption1 and has completely offset my configuration and broken all of my module deployments. How can I find out where this is being injected? Here is my module code: function rise_ConfigOptions() { // Should return an array of the module options for each product - maximum of 24. $configarray = array( "language" => "english", 'package' => array( 'FriendlyName' => 'Package Name', 'Type' => 'text', 'Size' => '25', 'Description' => 'What will you name this amazing package?', ), 'quota' => array( 'FriendlyName' => 'Quota', 'Type' => 'text', 'Size' => '15', 'Description' => 'Gigabytes of space allowed for the user. \ Needs to be a number!', ), 'bandwidth' => array( 'FriendlyName' => 'Bandwidth', 'Type' => 'text', 'Size' => '15', 'Description' => 'Gigabytes of bandwidth allowed Needs to be a number!\ (0 for unlimited)', ), 'type' => array( 'FriendlyName' => 'Type', 'Type' => 'dropdown', 'Options' => 'dedicated,shared', 'Description' => 'is this a shared seedbox or a dedicated one?\ RiSE = shared. RFSS = dedicated', ), 'iptype' => array( 'FriendlyName' => 'IP Type', 'Type' => 'dropdown', 'Options' => 'dedicated,shared', 'Description' => 'Is this the only user on the IP or will they be sharing it?\ Overiden by server settings.', ), 'services' => array( 'FriendlyName' => 'Additional Services', 'Type' => 'text', 'Size' => '100', 'Description' => 'Should this package install certain services on the server?', ), 'torrent_config' => array( 'FriendlyName' => 'Torrent Client Configuration', 'Type' => 'textarea', 'Rows' => '5', 'Cols' => '50', 'Description' => 'custom torrent configuration excluding SCGI port and RPC mount.\ ie. .rtorrent.rc. Leave blank for default.', ), ); return $configarray; }//end rise_ConfigOptions() Link to comment Share on other sites More sharing options...
stroebs_za Posted April 19, 2019 Author Share Posted April 19, 2019 Sigh, mode please close/delete. Fixed by removing this: "language" => "english", Not entirely sure why WHMCS thought that "O" = "4" when "language" => "english"... Link to comment Share on other sites More sharing options...
Recommended Posts