WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] [Plugin: All-in-One Calendar] WordPress Network Dashboard breaks after latest update (17 posts)

  1. tscargo
    Member
    Posted 2 years ago #

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

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    What version is this?
    1.6.2 from wordpress or
    1.6.2 premium from then.ly

  3. Djaouws
    Member
    Posted 2 years ago #

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

  4. tscargo
    Member
    Posted 2 years ago #

    The version from wordpress....

  5. nelra
    Member
    Posted 2 years ago #

    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

  6. tscargo
    Member
    Posted 2 years ago #

    That works fine (obviously).

    I am running WP 3.3.2 (network install).

    Note I only have the issue in the network admin

  7. nelra
    Member
    Posted 2 years ago #

    Thank you for the feedback - that helps

  8. tscargo
    Member
    Posted 2 years ago #

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

  9. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

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

  10. tscargo
    Member
    Posted 2 years ago #

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

  11. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

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

  12. tscargo
    Member
    Posted 2 years ago #

    As indicated above it is the WordPress version

  13. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Thank you!

  14. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

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

  15. cyberpunk2020
    Member
    Posted 2 years ago #

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

  16. Richard
    Member
    Posted 1 year ago #

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

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

  17. Richard
    Member
    Posted 1 year ago #

    There have been no new posts about this issue in 3 weeks, so I am marking this thread as "resolved."

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic