Support

Home Forums Event Espresso Premium Invalid Argument for Capabilities for Batch Email

Invalid Argument for Capabilities for Batch Email

Posted: February 26, 2016 at 4:40 pm


kellyjo

February 26, 2016 at 4:40 pm

I am using the plugin called Capability Manager Enhanced which seems more advanced than Roles and Capabilities plugin.

I have staff and do not want them to have access everything, but even in adding all the capabilities back for Event Espresso, the error is still occurring.

I have two roles: Simpleadmin and Staff.

Simpleadmin removes a lot of the WordPress functionality that is:
– add/remove themes and plugins
– removed settings

Staff removes:
– ability to make posts
– ability to make pages
– ability to add/edit/remove users
– ability to add/remove themes and plugins
– ability to add/remove venues
– ability to change settings in EE
– ability to change price types/payment methods/registration form

For staff, I’m trying to keep it as simple as possible:
– add, change, remove events
– add, change, remove, and email customers

And then I, myself, am set as an Administrator with full privileges. As a full administrator, there are no issues and no error.

With the “simpleadmin” and “staff” role, when trying to batch email, this error occurs:

Warning: Invalid argument supplied for foreach() in /home/content/html/wp-admin/includes/plugin.php on line 1445
{"error":false,"success":true,"notices":"
<\/div>","content":"","data":{"batch_message_from":"[CO_FORMATTED_EMAIL]","batch_message_subject":"Your Event Registration Details","batch_message_content":"
This content can be replaced and it will show in the generated message.<\/p>","template_args":{"admin_page_header":"","admin_page_content":"","post_body_content":"","before_list_table":"","after_list_table":"","success":true,"error":false,"notices":"

<\/div>"}},"isEEajax":true}

Simpleadmin does not remove ANY capabilities for the ee functions.
Staff eliminates some of the EE capabilities.

Attached are photos of what is checked off and on for Staff and Simpleadmin. Maybe you can point me in the right direction for selecting what will get rid of that error.

Simpleadmin: http://goo.gl/wN2TWV
Staff: http://goo.gl/5JfVMu


kellyjo

February 26, 2016 at 4:42 pm

The links are coming out wrong, here they are corrected:

http://mypost.io/images/files/simpleadmin-capabilities.png
http://mypost.io/images/files/staff-capabilities.png


kellyjo

February 26, 2016 at 5:54 pm

It seems, re-enabling the “Manage Options” fixes the issue, BUT… I need my Staff and Simpleadmin not to see anything having to do with the “Settings” of WordPress.


kellyjo

February 26, 2016 at 8:47 pm

Alright, update on this: It was my code.

I was using a custom function in to remove something from the menu bar and that was apparently conflicting with EE4.

Marking this as resolved.

The support post ‘Invalid Argument for Capabilities for Batch Email’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso