Title: php warnings when using Capabilities
Last modified: December 1, 2024

---

# php warnings when using Capabilities

 *  Resolved [kindred](https://wordpress.org/support/users/kindred/)
 * (@kindred)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-when-using-capabilities/)
 * I have installed the Capabilities plugin because I want a few users to have the
   ability to edit the KB/Wiki articles.
   It works great – set up a role, gave the
   role access to the kb/wiki actions and the upload media — and they can see those
   options.However, I have two problems…1- When logged in with the wiki_editor role,
   I see the following php errors across the top of every screen in the admin (as
   you can see, I use the Easy Testimonials plugin).
 *     ```wp-block-code
       Warning: Undefined array key "edit.php?post_type=testimonial" in /.../easy-testimonials/include/settings/testimonial.options.php on line 1040Warning: foreach() argument must be of type array|object, null given in /.../easy-testimonials/include/settings/testimonial.options.php on line 1040Warning: Cannot modify header information - headers already sent by (output started at /.../easy-testimonials/include/settings/testimonial.options.php:1040) in /.../wp-admin/includes/misc.php on line 1438Warning: Cannot modify header information - headers already sent by (output started at /.../easy-testimonials/include/settings/testimonial.options.php:1040) in /.../wp-includes/functions.php on line 7137Warning: Cannot modify header information - headers already sent by (output started at /.../easy-testimonials/include/settings/testimonial.options.php:1040) in /.../wp-admin/admin-header.php on line 9Warning: Cannot modify header information - headers already sent by (output started at /.../easy-testimonials/include/settings/testimonial.options.php:1040) in /.../wp-includes/option.php on line 1715Warning: Cannot modify header information - headers already sent by (output started at /.../easy-testimonials/include/settings/testimonial.options.php:1040) in /.../wp-includes/option.php on line 1716
       ```
   
 * 2. I use the Social Link Pages plugin. However, I can’t see any way to restrict
   the wiki editors from accessing that plugin. Regardless of WHAT capabilities 
   I grant or deny, then user ALWAYS has access to the social links page.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warnings-when-using-capabilities%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * (@stevejburge)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-when-using-capabilities/#post-18173797)
 * Hi [@kindred](https://wordpress.org/support/users/kindred/). Thanks for using
   PublishPress.
    1. Are you using this plugin? If so, it’s been closed and has a serious serious
       security issue: [https://wordpress.org/plugins/easy-testimonials/](https://wordpress.org/plugins/easy-testimonials/).
       I presume it also has a coding error that you’re seeing.
    2. That will depend on how the developer of the Social Links Pages has set up their
       plugin. We do have a feature in Capabilities Pro that can uncover these settings:
       [https://imgur.com/a/L6PagFP](https://imgur.com/a/L6PagFP)

Viewing 1 replies (of 1 total)

The topic ‘php warnings when using Capabilities’ is closed to new replies.

 * ![](https://ps.w.org/capability-manager-enhanced/assets/icon-256x256.png?rev=
   3408171)
 * [PublishPress Capabilities - User Role Editor, Access Permissions, User Capabilities, Admin Menus](https://wordpress.org/plugins/capability-manager-enhanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/capability-manager-enhanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/capability-manager-enhanced/)
 * [Active Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/capability-manager-enhanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-when-using-capabilities/#post-18173797)
 * Status: resolved