Events Calendar causes Fatal Error on Non-Object (2 posts)

  1. ronbme
    Posted 8 years ago #

    Got the following error on the Events Calendar ver. 6.04:
    "Fatal error: Call to a member function has_cap() on a non-object in ec_js.class.php on line 22."

    Line 22 is "if($e->accessLevel == 'public' ||$current_user->has_cap($e->accessLevel)) {

    The way I got the error was that I had an event which had a visibility of "public". I then went in and changed it to "administrator". I then moved to the next month and then back to the current month. That's when the error occurred.

    I also created a new event with a visibility of "administrator" and got the same error.

    I would assume that any visibility other than "public" would also cause the error.

    Posted 8 years ago #

    I didn't get any errors, I just can't get anything to show unless its either editor or subscriber.

Topic Closed

This topic has been closed to new replies.

About this Topic