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

get_to_be_filtered_caps not checking for $obj #1047

Open
irondan opened this issue May 18, 2024 · 0 comments
Open

get_to_be_filtered_caps not checking for $obj #1047

irondan opened this issue May 18, 2024 · 0 comments

Comments

@irondan
Copy link

irondan commented May 18, 2024

Moved to version 3.6.1 (from version 3.5.x) this month and the number of warnings I started seeing on my site reported by sentry.io skyrocketed (somewhere like 130k more than average in the last 24 hours). They all have been stemming from the get_to_be_filtered_caps function in class_coauthors_plus.php. Specifically, once it enters the loop it's not checking that $obj or $obj->cap is not null before accessing properties on it.

Warning: Attempt to read property "cap" on null

Right now I'm just documenting the issue with this ticket; I've not investigated the root cause so feel free to update this ticket as needed.

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

No branches or pull requests

1 participant