Skip to content

Logs not loading - array_replace_recursive() Type Error #496

@HaykelRekik

Description

@HaykelRekik

Description
Logs fail to load in the Log Viewer interface with a 500 error. The error indicates a type mismatch in array_replace_recursive() function where an integer is being passed instead of an expected array.

Error Message

Request failed with status code 500: array_replace_recursive(): Argument #2 must be of type array, int given
Image

Expected Behavior
Logs should load and display properly in the Log Viewer interface.

Actual Behavior
The application returns a 500 error with the message about array_replace_recursive() type mismatch, preventing logs from being displayed.

Environment

  • Laravel Version: 12.44.0
  • PHP Version: 8.4.16
  • Composer Version: 2.9.3
  • Log Viewer Package Version: 3.21.1

Additional Context
This appears to be a type-related issue, possibly related to PHP 8.4's stricter type checking. The error suggests that somewhere in the code, an integer value is being passed to array_replace_recursive() where an array is expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions