Skip to content

Conversation

@pospjan
Copy link

@pospjan pospjan commented Sep 27, 2021

Access to an undefined property was a notice in php 7.4, but was changed to a warning in php 8. And as the Adminer is "hiding" only notices, this warning has started to appear while submitting custom queries:

Screenshot 2021-09-27 at 20 20 12

@jstephens7
Copy link

jstephens7 commented Sep 28, 2021

I'm facing this issue as well. A good alternative I've used in the mean time is to run this in the console (CTRL+SHIFT+I) to remove those warnings in the table headers.

var children = document.querySelectorAll('th');
for(var i = 0; i < children.length; i++){
var newText = children[i].innerHTML.replace(<br> <b>Warning</b>: Undefined property: stdClass::$type in <b>/var/www/html/adminer.php</b> on line <b>1484</b><br>,'');
children[i].innerHTML = newText;
}

I'm using the tilda (`) to find the string properly, but it's the same syntax as the code indicator in here.

@pospjan
Copy link
Author

pospjan commented Sep 28, 2021

I found out that this problem is better (more universally) solved in #429

@guilliamxavier
Copy link

So close this PR and let's get #429 merged please

@pospjan pospjan closed this Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants