![]() |
|
The selected domain was not valid. - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: The selected domain was not valid. (/showthread.php?tid=2058) Pages:
1
2
|
The selected domain was not valid. - Razera - 10-18-2015 Hello , did Zpanel upgrade to Sentoria , I had to create the db manually, but now I'm getting probelmas to create subdomains and email , with these errors : Email: Quote:The selected domain was not valid. subdomains: Quote:Your Domain name is not valid. Please enter a valid Domain Name: i.e. 'domain.com' anyone have any idea? RE: The selected domain was not valid. - Me.B - 10-27-2015 Upgrade tool is still beta. @[kandrews] RE: The selected domain was not valid. - dotMastaz - 11-10-2015 Same problem about sub-domaine, and i install from scratch and version 1.0.3
RE: The selected domain was not valid. - SergiX44 - 11-15-2015 Same problem here RE: The selected domain was not valid. - TGates - 11-16-2015 @[Me.B]. Any ideas? This is becoming a recurring issue... RE: The selected domain was not valid. - Me.B - 11-16-2015 It should not and this seem related to new installer post 1.0.3? Upgrade tool? We are supposed in 1.0.3 to use OLD 1.0 panel code branch and only patching here the FTP issue. So a bit surprising, I notice the issue firstly reported with upgrades from ZPANEL. RE: The selected domain was not valid. - SergiX44 - 11-16-2015 (11-16-2015, 03:37 AM)TGates Wrote: @[Me.B]. Any ideas? This is becoming a recurring issue... (11-16-2015, 06:34 AM)Me.B Wrote: It should not and this seem related to new installer post 1.0.3? Upgrade tool? My is a fresh install on Debian 8, not upgrade RE: The selected domain was not valid. - Diablo925 - 11-16-2015 i have taken my 2 modules that Works just rename the 2 modules and place this 2 RE: The selected domain was not valid. - TGates - 11-17-2015 (11-16-2015, 07:34 AM)Diablo925 Wrote: i have taken my 2 modules that Works Thanks Diablo925! This is a good temporary solution until we get the installer patched again
RE: The selected domain was not valid. - Vedran B - 01-12-2016 The root of this problem is in: /etc/sentora/panel/dryden/fs/director.class.php PHP Code: static function CheckForEmptyValue($value) {1.) practical problem All the values that are ever passed to this function in mailboxes module (and others safe to presume) consist of TRUE or FALSE and are booleans so this function always satisfies the first criteria. 2.) logical and intuitive problem For some strange reason there's a double negation here "if not empty than false" but it should return "true" if it aint empty for the intuitive part, or even better it should be "if empty than return false" for logic, 3.) becouse of this strange logic in (2) somebody made a mistake when adding domain validation code to: /panel/modules/mailboxes/code/controller.ext.php PHP Code: if (!self::IsValidEmail($fulladdress)) {as you can see in email validation part a negation is used again to compensate for the bad practice of negation and returning false mentioned in (2) furthermore inside the IsValidEmail it is compensated some more .. it's a mess. anyways whoever added domain validation followed the (no)logic and compensated with negation infront IsValidDomain function BUT this one doesnt comepnsate one more time inside the function so here comes the "the domain was not valid" error. Basically only if it is NOT valid domain the domain is valid boolean is set to TRUE/VALID while whenever the domain is really VALID it results to FALSE. A simple solution is to remove "!" from "if(!self::IsValidDomain($domain))" and it will work in all modules where the check is performed. Next release would be better off refactoring the core functions and logic. |