Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
patio

Queryselector problem at Users admin page

Hi, I have a custom user meta key that I wanted to display at Users page.

But this simple code below doesn’t work for a Custom Column at Users Page, with the following error:

function display_test($value, $id, $column){
	if ( $column instanceof ACP\Column\CustomField ) {
	    $meta_key = $column->get_meta_key(); // This gets the Custom Field key
		if ( 'columnTEST' == $meta_key ) {
		$value = '<span>test</span>';
		}
	}
			return $value;
}

Uncaught TypeError: Cannot read property 'querySelector' of null

4 years, 6 months ago
patio

Actually, any Column is returning this error.

Uncaught TypeError: Cannot read property 'querySelector' of null (table.js?ver=3.4.7:1 )
    at new t (table.js?ver=3.4.7:1)
    at new t (table.js?ver=3.4.7:1)
    at t.ac_load_table (table.js?ver=3.4.7:1)
    at HTMLDocument.<anonymous> (table.js?ver=3.4.7:1)
...
4 years, 6 months ago
patio

Any news? Well, I tried to put a ACF field at Users Page. And crashed again. Is this normal?

4 years, 6 months ago
patio

Sorry,

I’ve just fixed. Problem was another add_filter, trying to get_dimensions from a POST ID ($id). When at Users Screen, the filter crash because you can’t get dimensions from a User Post.

4 years, 6 months ago
Stefan van den Dungen Gronovius
Developer

Hi Patio,

I was just reading the issue when I saw that you just replied.
I will close this topic, but let me know if you have any further issues.

Stefan

4 years, 6 months ago
Stefan van den Dungen Gronovius
Developer

Hi Patio,

I was just reading the issue when I saw that you just replied.
I will close this topic, but let me know if you have any further issues.

Stefan

4 years, 6 months ago

You must be logged in to reply to this topic.