php-crud-admin icon indicating copy to clipboard operation
php-crud-admin copied to clipboard

Error when $_SERVER['PATH_INFO'] is not set

Open adnoh opened this issue 6 years ago • 1 comments

I get the error code: 1000 message: Route '' not found after debuging I found that the error happens when $_SERVER['PATH_INFO'] is not set. On my shared hoster (1und1) it's that case. I have a $_SERVER['ORIG_PATH_INFO'] instead. So I can only fix it if I set the config option 'basePath' => '/admin.php' I have the feeling this is a bug - or at least it should be mentioned in blinking red in the documentation that you should set the basePath

adnoh avatar Oct 15 '19 17:10 adnoh

A workaround is to set:

$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];

At the top of the file.

mevdschee avatar Nov 22 '20 21:11 mevdschee