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
Use of undefined constant MYSQLI_TYPE_JSON #16043
Comments
|
I was looking for a way to reproduce this issue that I see very often on the reporting server. |
|
Let me know if you need more informations. |
|
@jsfrerot could you send the output of |
|
He, here is the output of "php -m" as requested |
if (!defined('MYSQLI_TYPE_JSON')) {
define('MYSQLI_TYPE_JSON', 245);
} |
|
If someone want to investigate before I have time to do so I would really appreciate This constant exists on my version of php |
|
I think I will revert the commit that removed this safe guard Could someone post his phpinfo? |
On yours
On my setup
Maybe this is causing this issue And you setup has |
|
Yeah, beats me. WordPress, Adminer and my other custom PHP sites had no issue with the change. This article goes through the the process and apparently changing allows certain functions... |
|
Thank you ! |
|
Ref: #11438 (comment) |
|
Removed by c6313ac |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Could you apply dc38860 and let me know if it fixes the issue ? |
|
@williamdes I confirm it fixes the issue. |
|
dc38860 also worked for me. |
|
FYI: Had the same issue. dc38860 also worked for me. |
|
I am having a similar issue... |
|
Thanks @williamdes! |
Hi @redrain-wang |
It is the real value when the constant is defined by/in php itself |
|
Looks like |


Describe the bug
I get the following error when browsing data in tables:
Warning in ./libraries/classes/Dbi/DbiMysqli.php#463
Use of undefined constant MYSQLI_TYPE_JSON - assumed 'MYSQLI_TYPE_JSON' (this will throw an Error in a future version of PHP)
To Reproduce
Steps to reproduce the behavior:
Install phpmyadmin 5.0.2
Please look at the bottom of this window."
Expected behavior
No errors ;)
Screenshots
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: