{"id":18171985,"date":"2024-12-01T16:43:41","date_gmt":"2024-12-01T16:43:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-errors-when-using-capabilities\/"},"modified":"2024-12-01T16:43:41","modified_gmt":"2024-12-01T16:43:41","slug":"php-errors-when-using-capabilities","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-when-using-capabilities\/","title":{"rendered":"php errors when using Capabilities"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I installed the PublishPress Capbilities plugin to manage some access for roles.<br \/><br \/>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<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><br \/>Warning: Undefined array key \"edit.php?post_type=testimonial\" in \/...\/easy-testimonials\/include\/settings\/testimonial.options.php on line 1040<br \/><br \/>Warning: foreach() argument must be of type array|object, null given in \/...\/easy-testimonials\/include\/settings\/testimonial.options.php on line 1040<br \/><br \/>Warning: 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 1438<br \/><br \/>Warning: 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 7137<br \/><br \/>Warning: 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 9<br \/><br \/>Warning: 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 1715<br \/><br \/>Warning: 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<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It seems like the Easy Testimonials plugin is not properly initiating access rights BEFORE attempting to load the options<\/p>\n","protected":false},"template":"","class_list":["post-18171985","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18171985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18171985\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18171985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}