Title: Problem on wordpress network
Last modified: August 20, 2016

---

# Problem on wordpress network

 *  Resolved [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/problem-on-wordpress-network/)
 * Hello,
 * I have a bug on a wordpress 3.4.2 with wordpress network activated.
    When I activate
   the plugin on the root domain, no problem, but when I use it on a subdomain, 
   I have this alert :
 * `Call to a member function add_cap() on a non-object in ***/wp-content/plugins/
   all-in-one-event-calendar/app/helper/class-ai1ec-platform-helper.php on line 
   59`
 * I was able to correct it inserting this command on line 57 :
    `if( is_object(
   $role ) ) {` But I’m not sure if it is really correct if I won’t have any other
   problem.
 * It would be perfect to correct this on the next update.
 * Thanks
 * [http://wordpress.org/extend/plugins/all-in-one-event-calendar/](http://wordpress.org/extend/plugins/all-in-one-event-calendar/)

Viewing 1 replies (of 1 total)

 *  [Richard](https://wordpress.org/support/users/richardgirling/)
 * (@richardgirling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/problem-on-wordpress-network/#post-3243695)
 * Hi lohic,
 * Please see reply on Email.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Problem on wordpress network’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [has_cap](https://wordpress.org/support/topic-tag/has_cap/)
 * [Wordpress Network](https://wordpress.org/support/topic-tag/wordpress-network/)

 * 1 reply
 * 2 participants
 * Last reply from: [Richard](https://wordpress.org/support/users/richardgirling/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/problem-on-wordpress-network/#post-3243695)
 * Status: resolved