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

WPML - Type Closure #8

Closed
mfoehlinger opened this issue Jul 10, 2024 · 2 comments
Closed

WPML - Type Closure #8

mfoehlinger opened this issue Jul 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mfoehlinger
Copy link

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.

@dev4press dev4press added the bug Something isn't working label Jul 10, 2024
@dev4press dev4press self-assigned this Jul 10, 2024
@dev4press
Copy link
Owner

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

@mfoehlinger
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants