WordPress.org

Support

Support » Installation » Events Calendar causes Fatal Error on Non-Object

Events Calendar causes Fatal Error on Non-Object

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Events Calendar causes Fatal Error on Non-Object’ is closed to new replies.