$Debug=2 will show login credentials if dbms failure #906
Replies: 8 comments 1 reply
-
|
I am guessing you havr xdebug or equivalent installed on your server. This should never be installed on a production server. |
Beta Was this translation helpful? Give feedback.
-
|
You guess correct @timschofield :-) xdebug is installed. I also agree it's generally not something you would normally have on a public facing production server (which this is not). However, I don't understand what's actually happening here. I'm assuming login fails because the www_users table doesn't exist but why does apache output my login parameters? Is it simply because error reporting is enabled and the error includes any parameters sent from the browser, and in this case, the parameters are my login credentials? |
Beta Was this translation helpful? Give feedback.
-
|
The job of xdebug is to output information helpful in debugging problems. This information is typical of the output of xdebug. |
Beta Was this translation helpful? Give feedback.
-
|
It's not xdebug. Login credentials are still shown after disabling xdebug in php.ini and restarting Apache. I'm guessing this is standard error output (and probably also how Apache renders data from xdebug). Enabling displaying errors in php.ini AND a dbms failure (or at least missing tables) will expose login parameters. |
Beta Was this translation helpful? Give feedback.
-
|
Doesn't happen on my system here Dale. Without a debugger I just get the standard list of WARNING/DEPRECATED messages. A function stack trace like that is the output of a debugger. PHP on it's own won't do that. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@dalers : It is OK, and IMO, desirable. R |
Beta Was this translation helpful? Give feedback.
-
|
Another learning experience. :-) Behavior is expected and reasonable after understanding why. I'll change the title to be more descriptive and mark this discussion closed. Thanks for comments. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried accessing webERP before I had restored the database (i.e. the database was empty) and chrome showed me this? Is this too much information? Is this avoidable?
Server is xampp apache and MariaDb dev server on Windows configured to show errors (and http-only connection).
Beta Was this translation helpful? Give feedback.
All reactions