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

Blank screen or empty response at login screen #10

Closed
acli opened this issue May 2, 2013 · 6 comments
Closed

Blank screen or empty response at login screen #10

acli opened this issue May 2, 2013 · 6 comments
Labels

Comments

@acli
Copy link
Owner

acli commented May 2, 2013

Pressing the “Log-in!” [sic] button at step 7 produces a blank screen at URL login.php?submit=%BB+Log-in%21

If we manually change the URL to just login.php we get an empty response. The headers are still intact and is 200 OK, but there is no content.

@acli
Copy link
Owner Author

acli commented May 2, 2013

Tracing include/vitals.inc.php prompted me to test for the validity of the generated config.inc.php:

bash-3.2$ php -l include/config.inc.php

Parse error: parse error in include/config.inc.php on line 20
Errors parsing include/config.inc.php
bash-3.2$

Line 20 is the DB_PASSWORD which has a quote (U+0027)...

@acli
Copy link
Owner Author

acli commented May 2, 2013

write_config_file() is in include/install/config_template.php

@acli
Copy link
Owner Author

acli commented May 2, 2013

write_config_file() uses a simplistic str_replace() on a template string. We are stuck.

@acli
Copy link
Owner Author

acli commented May 2, 2013

I was suggested that addslashes and stripslashes should be $addslashes and $stripslashes. But doing that caused “Fatal error: Function name must be a string in /Users/ambrose/Sites/projects/ATutor/include/install/config_template.php on line 37” error.”

@acli
Copy link
Owner Author

acli commented May 2, 2013

Using call_user_func with $addslashes apparently works, but it generates

Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /Users/ambrose/Sites/projects/ATutor/include/install/config_template.php on line 37

@acli
Copy link
Owner Author

acli commented May 2, 2013

The real problem should be include/vitals.inc.php not having been included. It looks like we’re supposed to include it upstream as opposed to include_once where it’s needed…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant