WordPress.org

Ready to get started?Download WordPress

Forums

WP FullCalendar
[resolved] Events Not Displaying Depending on User Role (7 posts)

  1. angsty
    Member
    Posted 1 year ago #

    I'm having trouble with events not populating on the WP Fullcalendar for non-admin user roles. The users can create, edit, view, and delete EM events, and the events show up as-expected on the Event List page area. But, they aren't populating in the graphic calendar for non-admin users.

    At first I thought it had to be permissions related, since I'm requiring a login to view the calendar and it's only non-admin user roles that are affected. But, I haven't been able to determine what permissions are missing (trial and error). The restricted non-admin user role has these permissions:

    delete_comment
    delete_events
    edit_comment
    edit_events
    publish_events
    read
    read_dashboard_notes
    reply_comment
    trash_comment

    I'm not sure what to look at next. I'm in the process of de-activating plugins to see if there's some sort of conflict.

    I set up a dummy id if anyone would care to take a look at it. I'd appreciate any suggestions.

    Thank you

    http://friendsofthecumberlandtrail.org/trail-maintenance/
    user ID: dummy
    Password: dummy

    http://wordpress.org/extend/plugins/wp-fullcalendar/

  2. ReallyGreenJames
    Member
    Posted 1 year ago #

    I'm sorry I can't help you at the moment and I don't know if it's any consolation, but I am experiencing the same problem!

    I'm going to have a look into it and I'll let you know if I get it figured out.

  3. angsty
    Member
    Posted 1 year ago #

    Well, I hate knowing someone else has faced this frustration! I hope you have more success than I, but here's where I'm at if it helps:

    I didn't find a (direct) conflict with a plugin after testing all of them.

    I rebuilt my user roles in case there was something wrong there-- no luck.

    I disabled, deleted and then re-installed WP Fullcalendar in case something was weird there-- no luck.

    I ran my custom functions.php & includes through a PHP syntax checker -- nothing there.

    Finally, I disabled a number of permissions-related functions, one by one, to see if one of them was producing the problem and it seems that it was. I had a function that added a line of CSS for non-admin users that hides the discussion options on a custom post type. This was it:

    if (!is_super_admin()) {
    	function hide_discussion_options() {
    	echo '<style>#commentstatusdiv{ display:none;} #commentsdiv{display:none;}</style>';
    	}
    	hide_discussion_options();
    	}

    I don't know enough to understand why this function was preventing the events from showing, but I was glad to be able to at least remove it so that the calendar operates normally.

    So, I guess my advice at this point is to look and see if you have any custom functions that might be affecting the calendar display.

    Good luck!

  4. ReallyGreenJames
    Member
    Posted 1 year ago #

    Glad you found a solution. I'm afraid I have no custom functions like that.

    And on inspecting elements, the events are not 'styled-out' with a display:none. They're just not there.

    Back to the drawing board for me.

  5. ReallyGreenJames
    Member
    Posted 1 year ago #

    BINGO!

    Nailed it. I am (was!) using the "Jetpack Only for Admins" plugin. Once that was deactivated, my events appeared to all visitors.

    I guess there is some kind of hide function as part of that plugin, that was affecting the display of my events.

  6. angsty
    Member
    Posted 1 year ago #

    Great! I will make sure to avoid that plugin in the future-- definitely good to know.

  7. vplet
    Member
    Posted 11 months ago #

    Hello.

    I solved same problem by disabling "Under Construction" plugin!

    bye, B

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic