Title: Justin Torres's Replies | WordPress.org

---

# Justin Torres

  [  ](https://wordpress.org/support/users/torresio/)

 *   [Profile](https://wordpress.org/support/users/torresio/)
 *   [Topics Started](https://wordpress.org/support/users/torresio/topics/)
 *   [Replies Created](https://wordpress.org/support/users/torresio/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/torresio/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/torresio/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/torresio/engagements/)
 *   [Favorites](https://wordpress.org/support/users/torresio/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] WP 4.6 – Multiple Bookings Mode Problems?](https://wordpress.org/support/topic/wp-46-multiple-bookings-mode-problems/)
 *  [Justin Torres](https://wordpress.org/support/users/torresio/)
 * (@torresio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-46-multiple-bookings-mode-problems/#post-7674250)
 * Updated to 4.6 this morning on a site with EM 5.6.5 and was greeted with this
   site crippling message:
 * > `Fatal error: [] operator not supported for strings in /home/XXXX/public_html/
   > wp-content/plugins/events-manager/em-posts.php on line 30`
 * Taking a look at `em-posts.php`, here’s the relevant context for line 30:
 *     ```
       if( is_array($_wp_theme_features['post-thumbnails']) ){
           $post_thumbnails = array_shift($_wp_theme_features['post-thumbnails']);
           //add to featured image post types for specific themes
           $post_thumbnails[] = EM_POST_TYPE_EVENT; #30
           $post_thumbnails[] = 'event-recurring';
           $post_thumbnails[] = EM_POST_TYPE_LOCATION;
           add_theme_support('post-thumbnails', $post_thumbnails);
       }
       ```
   
 * What seems to be happening, and your error [@tony](https://wordpress.org/support/users/tony/)
   marray, is that what is happening is it’s using the existing global value of `
   $_wp_theme_features['post-thumbnails']` and retriving the known array of post
   types with thumbnails. To get mine working and speed it up a bit I changed it
   so `$post_thumbnails` is just a new array to add even managers post types, don’t
   need to worry about other’s at all:
 *     ```
       if( is_array($_wp_theme_features['post-thumbnails']) ){
           $post_thumbnails = array();
           //add to featured image post types for specific themes
           $post_thumbnails[] = EM_POST_TYPE_EVENT; #30
           $post_thumbnails[] = 'event-recurring';
           $post_thumbnails[] = EM_POST_TYPE_LOCATION;
           add_theme_support('post-thumbnails', $post_thumbnails);
       }
       ```
   
 * No errors, all post thumbnail widgets are loading. Thoughts?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Lawyer Plugin] Error Message & Problem Getting the Content](https://wordpress.org/support/topic/error-message-problem-getting-the-content/)
 *  Plugin Author [Justin Torres](https://wordpress.org/support/users/torresio/)
 * (@torresio)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-message-problem-getting-the-content/#post-3968300)
 * Looks like these issues are on our end, thanks for reporting them. I’ve added
   them to our issue tracker to be fixed in future versions.

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