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

---

# php errors when using Capabilities

 *  [kindred](https://wordpress.org/support/users/kindred/)
 * (@kindred)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-errors-when-using-capabilities/)
 * I installed the PublishPress Capbilities plugin to manage some access for roles.
   
   however, When installed and accessing the admin from any of the limited roles,
   I see the following errors across the top of the screen on every admin page load
 *     ```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
       ```
   
 * It seems like the Easy Testimonials plugin is not properly initiating access 
   rights BEFORE attempting to load the options
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-when-using-capabilities%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 * ![](https://s.w.org/plugins/geopattern-icon/easy-testimonials.svg)
 * [Easy Testimonials](https://wordpress.org/plugins/easy-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-testimonials/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kindred](https://wordpress.org/support/users/kindred/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/php-errors-when-using-capabilities/)
 * Status: not resolved