• Resolved tscargo

    (@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: https://www.example.com/wp-admin/edit.php

    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….

    https://www.ads-software.com/extend/plugins/all-in-one-event-calendar/

Viewing 15 replies - 1 through 15 (of 16 total)
  • What version is this?
    1.6.2 from wordpress or
    1.6.2 premium from then.ly

    https://then.ly
    Check out ai1c homepage, 1.6 and 1.6.1 was a corrupt version.

    Thread Starter tscargo

    (@tscargo)

    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' ) ) {

    to:

    $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

    Thread Starter tscargo

    (@tscargo)

    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

    Thread Starter tscargo

    (@tscargo)

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

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

    Thread Starter tscargo

    (@tscargo)

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

    @tscargo
    Is it the Premium version or the WordPress version.

    Thread Starter tscargo

    (@tscargo)

    As indicated above it is the WordPress version

    Thank you!

    @ 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.

    Richard

    (@richardgirling)

    The latest version of the plugin (1.8.3 premium) is now available from https://time.ly

    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.