Skip to content
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

[3.0]: TypeError on removing topic/message #8045

Closed
dragomano opened this issue Jan 25, 2024 · 0 comments · Fixed by #8048
Closed

[3.0]: TypeError on removing topic/message #8045

dragomano opened this issue Jan 25, 2024 · 0 comments · Fixed by #8048
Assignees
Milestone

Comments

@dragomano
Copy link
Contributor

dragomano commented Jan 25, 2024

Basic Information

Type errors occur when deleting topics and posts.

Steps to reproduce

  1. Try to remove a post or a topic

Expected result

No response

Actual result

No response

Version/Git revision

3.0 Alpha 1

Database Engine

MySQL

Database Version

MariaDB-10.6.11

PHP Version

8.0.30

Logs

No response

Additional Information

Replace in Topic.php User::updateMemberData($rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]); with User::updateMemberData((int) $rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]);, or replace in User.php public static function updateMemberData(int|array|null $members, array $data): void with public static function updateMemberData(mixed $members, array $data): void

Also, replace in Msg.php Msg::updateLastMessages($row['id_board']); with Msg::updateLastMessages((int) $row['id_board']); or with Msg::updateLastMessages([$row['id_board']]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants