Hello, when we activate the Access plugin we get this error message in the admin panel
Notice: Undefined offset: 0 in /nas/content/live/biocityhq/wp-includes/capabilities.php on line 136
Hi, have you tried the standard troubleshooting steps? Let's try to rule out a plugin or theme conflict:
- Temporarily deactivate all plugins except Types, Views and Access. Activate a default theme like Twenty Nineteen, then test again.
- If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns. Try to isolate one source of conflict.
- If the problem is not resolved, try updating WordPress to the latest version. Turn on error logs and see if any more information about the error is available.
Let me know if you're able to determine anything from those tests, and we can go from there.
Thanks for the instructions, after trouble shooting, it seems when the plugin Awesome support is active along with Toolset Access this error occurs.
Any suggestions on what to do next to resolve this?
Let me ask my 2nd tier support team to take a look. It might be possible to find a workaround...I'll let you know what I find out.
Hey! just checking if there are any updates on this?
Hi, nothing new to share. I can see this ticket has been escalated to our compatibility team but no permanent solution yet. I'll keep you posted here.
Our team was in contact with a 3rd tier support team member at Awesome Support to report the issue in their code, and received the following information:
Thank you for contacting Awesome Support and thank you for bringing this issue to our attention. I have passed on this information to my team for further review.
Here is a description of the issue:
They use current_user_can function in their code for whatever.
Codex mentions that current_user_can accepts the cabability and the user id as parameters.
The user id us optional but if it's not being passed, the warning mentioned here in this ticket will be raised.
Check the Parameters section in : https://codex.wordpress.org/Function_Reference/current_user_can
Example place where they misused the function: \plugins\awesome-support\includes\functions-admin-bar.php
if ( ! current_user_can( 'edit_ticket' ) ) {
return;
}
Thanks for trouble shooting this, I'll get in touch with Awesome support.