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

[Bug]: PHP 8.2. search and php method - Fatal error: Uncaught TypeError: count(): #5211

Closed
Jimmi08 opened this issue Mar 12, 2024 · 0 comments
Labels
type: bug A problem that should not be happening
Milestone

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Mar 12, 2024

What e107 version are you using?

v2.3.3

Bug description

If select Search sort method: PHP LIMITED TO in search preferences, there is fatal error in PHP 8.2
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in ***\e107_handlers\search_class.php on line 236

How to reproduce

  1. go to search preferences
  2. select
    image
  3. try to search something

Expected behavior

No fatal error

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

PHP 8.2

@Jimmi08 Jimmi08 added the type: bug A problem that should not be happening label Mar 12, 2024
@Moc Moc added this to the e107 2.4.0 milestone Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants