Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Civil Engineering Notes started the topic Found an issue at buddypress/bp-members/classes/class-bp-members-admin.php in the forum How-to & Troubleshooting

Дата публикации: 23-04-2026 14:57:11



Основное содержимое страницы с новостью.

after i installed the buddypress plugin in my local server, i get an error message at the user page. although currently i have solved it, but it needed to be fixed in the original code.

here is the error-


Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-list-table.php:661 

Stack trace: 
#0 C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-users-list-table.php(629): WP_List_Table->row_actions(NULL) 
#1 C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-users-list-table.php(415): WP_Users_List_Table->single_row(Object(WP_User), '', '', NULL) 
#2 C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-list-table.php(1711): WP_Users_List_Table->display_rows() 
#3 C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-list-table.php(1635): WP_List_Table->display_rows_or_placeholder() 
#4 C:\xampp\htdocs\civilnotes\wp-admin\users.php(816): WP_List_Table->display() 
#5 {main} thrown in C:\xampp\htdocs\civilnotes\wp-admin\includes\class-wp-list-table.php on line 661

and here is my current solution-


public function row_actions( $actions = array(), $user = null ) {

	// Bail if no user ID.
	if ( ! is_array( $actions ) ) {
		$actions = array();
	}

	if ( empty( $user->ID ) ) {
		return $actions;
	}
}

please solve the issue, and let me know about the update.

thank you..

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Якісні крауд-посилання за доступними цінами replied to the topic I can't create new groups in Buddypress in the forum How-to & Troubleshooting0512-02-2026
2Antipole replied to the topic Warning: Attempt to read property "id" on null [...]bp-xprofile-template.php in the forum How-to & Troubleshooting0221-04-2026
3AI Baby Generator started the topic in the forum Installing BuddyPress0016-04-2026
4Güntem Temizlik replied to the topic Can not create menu for registration in the forum How-to & Troubleshooting0212-01-2026
5Indigetal WebCraft started the topic Add filter hook to `bp_email_get_type_schema()` - Ticket #9329 in the forum Installing BuddyPress0505-06-2026
6jessica555 started the topic How can I customize the members/community page? in the forum How-to & Troubleshooting0214-01-2026
7Brenda lee Christmas vacation rental started the topic in the forum Installing BuddyPress0005-03-2026
8Titan Vina started the topic in the forum Installing BuddyPress0508-04-2026
9Recording initiating & playback issues-2303-07-2026
10Gravity Forms admin throwing errors (Pro Theme)0511-07-2026

Классификация: Общество. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 5. Источник: buddypress.org.