Having a problem with a basic multi-site instance.
The multi-sites are dynamically created and run as sub-domains and all is ok with them. They are created during a sign up process by end users.
During the sign up process - once the new site & db has been created, I had planned to load the new site instance and add a new user to it, using code similar to this..
$newSiteInstance = new ProcessWire($path, $newSiteUrl);
$u = $newSiteInstance->users->add($s