Support » Plugin: All-in-One Event Calendar » [Plugin: All-in-One Calendar] WordPress Network Dashboard breaks after latest update

  • Resolved tscargo


    I am running wordpress in a network install.
    After updating to the latest version of all-in-one-event-calendar I get the following issue:

    PHP Fatal error: Call to a member function has_cap() on a non-object in /plugins/all-in-one-event-calendar/app/helper/class-ai1ec-app-helper.php on line 118, referer:

    Looking at line 118:

    if( ! get_role( ‘administrator’ )->has_cap( ‘manage_ai1ec_feeds’ ) ) {

    Apparently the “get_role” call does not return an object…

    Any help/fix is welcome. On the site dashboards (so not the network one) everything works fine….

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Yani Iliev


    What version is this?
    1.6.2 from wordpress or
    1.6.2 premium from
    Check out ai1c homepage, 1.6 and 1.6.1 was a corrupt version.

    The version from wordpress….

    Thank you for the details – may I ask what WordPress version you are using?
    Are you logged in as a pure Admin when you see the error?

    We will look into this further, but would like to also understand what causes it so we can recreate it ourselves.
    One potential fix would be to change:

    if( ! get_role( 'administrator' )->has_cap( 'manage_ai1ec_feeds' ) ) {


    $role = get_role( 'administrator' );
    if( is_object( $role ) and ! $role->has_cap( 'manage_ai1ec_feeds' ) ) {

    If you feel comfortable trying this, please do let us know the results

    That works fine (obviously).

    I am running WP 3.3.2 (network install).

    Note I only have the issue in the network admin

    Thank you for the feedback – that helps

    Just installed the 1.6.3 update, but the fix submitted by neira has not been implemented yet

    Plugin Contributor Yani Iliev


    It will be distributed with 1.7 (30th of May)

    I have just installed 1.7, but it still does not have the code integrated … I still needed to add it manually!

    Plugin Contributor Yani Iliev


    Is it the Premium version or the WordPress version.

    As indicated above it is the WordPress version

    Plugin Contributor Yani Iliev


    Thank you!

    Plugin Contributor Yani Iliev


    @ tscargo
    I’ll post a link to the RC when it becomes available so you can verify if the fix has been included.

    Are there any news? I would love to install the plugin on my network, but am unsure on how to proceed.



    The latest version of the plugin (1.8.3 premium) is now available from

    Please do not hesitate to let us know if this does not resolve the issue.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: All-in-One Calendar] WordPress Network Dashboard breaks after latest update’ is closed to new replies.