Title: Problem deleting events
Last modified: March 9, 2017

---

# Problem deleting events

 *  Resolved [MikeShand](https://wordpress.org/support/users/mikeshand/)
 * (@mikeshand)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/problem-deleting-events/)
 * There seems to be a problem (for me at least) when attempting to delete events.
   If I go to a single event and click “bin”, the event is successfully removed,
   but I see a warning illegal offset type in …wp-admin/edit.php at line 327
    Since
   this works OK, this is not a serious problem, BUT if I try to select multiple
   events and use the bulk action “move to bin” it fails, and doesn’t delete any
   of them.
 * In all cases, these are events which are in the past. I haven’t tried it on future
   events.
    I’m running the latest version of event manager 5.6.6.1 (NOT the pro
   version)
 * The code concerned appears to be
 * > <?php
   >  // If we have a bulk message to issue: $messages = array(); foreach (
   > $bulk_counts as $message => $count ) { >>>>>>> if ( isset( $bulk_messages[ 
   > $post_type ][ $message ] ) ) $messages[] = sprintf( $bulk_messages[ $post_type][
   > $message ], number_format_i18n( $count ) ); elseif ( isset( $bulk_messages[‘
   > post’][ $message ] ) ) $messages[] = sprintf( $bulk_messages[‘post’][ $message],
   > number_format_i18n( $count ) );
   >  if ( $message == ‘trashed’ && isset( $_REQUEST[‘ids’] ) ) {
   >  $ids = preg_replace(‘/[
   > ^0-9,]/’, ”, $_REQUEST[‘ids’] ); $messages[] = ‘‘ . __(‘Undo’) . ‘‘; } }

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/problem-deleting-events/#post-8899539)
 * It’s possible this is a conflict caused by your theme or another plugin. To check
   if it is, can you test with all other plugins deactivated and while running the
   default WordPress theme?
 * Which version of WordPress are you using?
 *  Thread Starter [MikeShand](https://wordpress.org/support/users/mikeshand/)
 * (@mikeshand)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/problem-deleting-events/#post-8901864)
 * Thanks. It’s the theme, so I will have to investigate what the conflict could
   be.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem deleting events’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [bin](https://wordpress.org/support/topic-tag/bin/)
 * [bulk action](https://wordpress.org/support/topic-tag/bulk-action/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)

 * 2 replies
 * 2 participants
 * Last reply from: [MikeShand](https://wordpress.org/support/users/mikeshand/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/problem-deleting-events/#post-8901864)
 * Status: resolved