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
cmmcneill opened this issue
Aug 18, 2021
· 1 comment
· Fixed by #17085
Assignees
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
PHP session errors that cause phpmyadmin to fail to load don't display the underlying error details on the error page, making it very difficult to diagnose the problem. There were some issues with the PHP session already being started in my project, which resulted in the error page showing showing only the generic "Error during session start..." message and no further information.
To Reproduce
This is difficult to reproduce my exact scenario, but this is generally how it to happen:
Disable session.auto_start setting in your php.ini
At the bottom of your config.inc.php file, add a line with session_start(); to start the session prematurely
Try to load phpmyadmin, and it should fail to abort the session because of the session.autostart setting being off (which I suspect is an unrelated bug)
The specific PHP error message will be missing on the error page
Expected behavior
The error page should display the message "session_start(): Ignoring session_start() because a session is already active".
Screenshots
What the error page looks like:
What it should look like:
Server configuration
Operating system: Ubuntu Linux 18.04
Web server: Apache 2.4.29
Database version: MariaDB 10.6.4
PHP version: 8.0.9
phpMyAdmin version: 5.1.1
Client configuration
Browser: Firefox 91.0
Operating system: macOS 11.4 (Big Sur)
Additional context
The underlying problem seems to be that the ErrorHandler's sliceErrors method doesn't return the errors properly, and instead returns an empty array.
The text was updated successfully, but these errors were encountered:
williamdes
added
Bug
A problem or regression with an existing feature
has-pr
An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
labels
Aug 18, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Describe the bug
PHP session errors that cause phpmyadmin to fail to load don't display the underlying error details on the error page, making it very difficult to diagnose the problem. There were some issues with the PHP session already being started in my project, which resulted in the error page showing showing only the generic "Error during session start..." message and no further information.
To Reproduce
This is difficult to reproduce my exact scenario, but this is generally how it to happen:
session.auto_start
setting in your php.inisession_start();
to start the session prematurelyExpected behavior
The error page should display the message "session_start(): Ignoring session_start() because a session is already active".
Screenshots
What the error page looks like:
What it should look like:
Server configuration
Client configuration
Additional context
The underlying problem seems to be that the ErrorHandler's sliceErrors method doesn't return the errors properly, and instead returns an empty array.
The text was updated successfully, but these errors were encountered: