You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I found problem under Windows enviroment. When i start to install dev version of Revive-adserver, after composer install I had:
_Script asseteer\AssetInstaller::postInstall handling the post-install-cmd event terminated with an exception
[ErrorException]
preg_replace(): Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 21_
There is an error on line 125 of AssetInstaller.php: $relativeFilename = preg_replace('#^'.self::$vendorOfAssetsToCopy.'/#', '', $filename);
Value of my self::$vendorOfAssetsToCopy was: C:\temporary\htdocs\localhost\php7\revive-adserver/lib/vendor/tinymce
Because Windows using \ as path separator self::$vendorOfAssetsToCopy should be properly escaped (?).
Temporary workaround for me was to change it to: $relativeFilename = str_replace(self::$vendorOfAssetsToCopy, '', $filename);
Regards
TK
The text was updated successfully, but these errors were encountered:
Hi,
I found problem under Windows enviroment. When i start to install dev version of Revive-adserver, after composer install I had:
_Script asseteer\AssetInstaller::postInstall handling the post-install-cmd event terminated with an exception
[ErrorException]
preg_replace(): Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 21_
There is an error on line 125 of AssetInstaller.php:
$relativeFilename = preg_replace('#^'.self::$vendorOfAssetsToCopy.'/#', '', $filename);
Value of my self::$vendorOfAssetsToCopy was:
C:\temporary\htdocs\localhost\php7\revive-adserver/lib/vendor/tinymce
Because Windows using \ as path separator self::$vendorOfAssetsToCopy should be properly escaped (?).
Temporary workaround for me was to change it to:
$relativeFilename = str_replace(self::$vendorOfAssetsToCopy, '', $filename);
Regards
TK
The text was updated successfully, but these errors were encountered: