-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Database named as 'New' causes PHP fatal error #14698
Comments
Hey, can I try solving this ? |
@computerManiac Of course you can. Don't forget to use |
Some info on this issue. First parameter passed to _addDbContainers function should be of class NodeDatabase instead of Node. I will try to trace this issue further. |
$cfg['ShowCreateDb'] = false; and the error disappears |
This is a curious bug - I have just figured out where exactly the error originates from. As the initial report says, the name of the database has to match the string "New" in English or whatever string this is translated to in other locales for the fatal error to appear. It is case-sensitive as well so probably doesn't really happen in the wild that often given that database names are usually lower case. An array of
I'm not quite sure what to do with a tree that has two nodes with the same Hope this helps! |
Hi @nina-py Thank you so much for your precious debug !, could you try to fix this issue using our |
Hi @williamdes, I'm not sure what would be a good fix for it though as I'm just getting familiar with the codebase. A possible workaround would be to block users from creating databases named with the magic "New" keyword? I forgot to add that a very similar issue can occur one level down - if you try to create a table named "New", the nav tree breaks with a fatal error in |
Well, we can not do that because they can create databases using their command line :) I think we need to find the real cause of such a bug rather than limiting our users because of problems they do not care about ;) |
Good point! There is no choice but to fix the node tree then :). |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Describe the bug
Database named as 'New' causes PHP fatal error.
This is dependent on the language that has been set. See screenshots.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The database should open like any other.
Screenshots
Server configuration
QA_4_8
andmaster
Client configuration
Additional context
The text was updated successfully, but these errors were encountered: