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
Looks like, in Windows PHP 5.5.7,
if the filename passed to file_exists() contains a querystring
the open_basedir restrictions bogusly triggered.
Dunno if relevant, i have two paths in my open_basedir directive.
I fixed the Core\Theme.php file as follows:
// replace all plugin assets to the theme, if the theme overrides this asset
// when there are name conflicts (two plugins define the same asset name in same folder),
// we shall rename so there is no more conflict.
$defaultThemePath = "plugins/" . $pathPluginName;
$newThemePath = "plugins/" . $this->themeName;
$overridingAsset = str_replace($defaultThemePath, $newThemePath, $pathAsset);
// Strip trailing querystring, if any
$fileToCheck = $overridingAsset;
$posQMInFileToCheck = strpos($fileToCheck, '?');
if( $posQMInFileToCheck !== 0) {
$fileToCheck = substr($fileToCheck, 0, $posQMInFileToCheck);
}
if(file_exists($fileToCheck)) {
return str_replace($pathAsset, $overridingAsset, $source);
}
return $source;
Thank you.
The text was updated successfully, but these errors were encountered:
Looks like, in Windows PHP 5.5.7,
if the filename passed to file_exists() contains a querystring
the open_basedir restrictions bogusly triggered.
Dunno if relevant, i have two paths in my open_basedir directive.
I fixed the Core\Theme.php file as follows:
Thank you.
The text was updated successfully, but these errors were encountered: