Skip to content

WPML - Type Closure #8

Closed
Closed

Description

@thierfelder-marcus

As soon as WPML is installed and activated, the following error occurs.

PHP Fatal error: Uncaught Error: Cannot use object of type Closure as array in /wp-content/plugins/debugpress/core/track/Tracker.php:694

The following bugfix would provide a remedy:

if ( !is_array($call['args']) || !is_array($call['args'][0]) ) {
    continue;
}

This must be inserted above (Tracker.php line 694)

if ( isset( $call['args'][0][0] ) && $call['args'][0][0] instanceof Tracker )

Maybe it would be possible to integrate this bugfix in the next update.

Activity

  1. self-assigned this
    on Jul 10, 2024
  2. dev4press commented on Jul 10, 2024

    @dev4press
    Owner

    Thanks for reporting and providing the fix. This will be added to the next minor update soon.

  3. thierfelder-marcus commented on Jul 10, 2024

    @thierfelder-marcus
    Author

    Thanks

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions