Closed biwerr closed 4 years ago
Looks like that's an issue on your system? Relative symlinks usually work on Linux but not in Windows. Can you try if they work on the command line?
This was symlink creation at command line on an ssh shell at my reseller account on alfahosting. Seems there are some problems with hosting packages.
I've switched to a diffrent hosting partner and there where no problems.
Maybe try to fix this possible bug with first creating relative symlinks and if that fails switch to absolute symlinks?
if (Platform::isWindows()) {
$success = @symlink($source, $target);
} else {
$success = $this->filesystem->relativeSymlink($source, $target);
if(!$success)
$success = @symlink($source, $target);
}
if (!$success) {
throw new \RuntimeException('Failed to create symlink | target: ' . $target. ' | source: '.$source);
}
Looks like there are some problems with relative symlinks on linux.
Failed to create symlink | target: /var/www/web556/html/cms/system/modules/euf_grid | source: /var/www/web556/html/cms/vendor/erdmannfreunde/euf_grid
I've replaced creating relative links with absolute links, seems to work