Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adnoh opened this issue Oct 15, 2019 · 1 comment
Open

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

adnoh opened this issue Oct 15, 2019 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@adnoh
Copy link

adnoh commented Oct 15, 2019

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

@mevdschee mevdschee self-assigned this Nov 22, 2020
@mevdschee mevdschee added the help wanted Extra attention is needed label Nov 22, 2020
@mevdschee
Copy link
Owner

A workaround is to set:

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

At the top of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants