Open andig opened 9 years ago
Finally found that the problem is not due to .htaccess
but to invalid classmap being generated on Windows. With classmap invalid, loader fails loading slimmvc\Config
.
So the real issue is: classmap generation broken on Windows.
I think this line do not work on Windows.
Could you please change to
$pattern = str_replace('%s', '([\w/\\\\]+)', $pattern);
and test?!
Could you checkout the development branch and re-install?!
You have to recreate the database also...
Fixing the line as suggested does not help- classmap remains empty. I've simply changed it like this (obviously missing functionality there):
if (!$file->isDir()) {
$filename = str_replace($path.DS, '', $file->getPathname());
$classname = str_replace('.php', '', $filename);
if ($classname) {
self::$ClassMap[$classname] = $name;
}
Ok,
from 3.0.0 composer class loading is used and should handle Windows correctly.
I'm trying to get pvlng running on Windows. I've created a vhost in apache:
Any access to :81 results in error 500, logfiles remain empty of any error messages.
Source of the problem seem to be the rewrite rules in
/.htaccess
. As soon as those are commented out directory index is loaded.Any idea if/which problem that might be?