Michael McFann

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Michael McFann
    Participant

    That makes total sense and seems to have worked. ]

    Thanks so much for your help!

    Michael McFann
    Participant

    302 redirect issues caused by above code on staging and production, but not on my local machine.

    Michael McFann
    Participant

    Thanks Cliff.

    I’ve located the offending code. It was contained inside of my themes function.php file and was added there for the purpose of restricting the subscriber and bbp_participant roles from being able to access the WP Admin portion of the site.

    
    function redirect_non_admin_from_wp_admin_dashboard() {
      $user = wp_get_current_user();
      $disallowed_roles = array('subscriber', 'bbp_participant');
      if( array_intersect($disallowed_roles, $user->roles ) && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) {
        wp_redirect( home_url() );
      }
    }
    add_action( 'admin_init', 'redirect_non_admin_from_wp_admin_dashboard', 1 );
    

    Strangely, this code does not appear to break the calendar when running in my local development environment, just our staging and production environments.

    Do you or anyone on your team know how I can update this code snippet so it does not confuse the Event Calendar admin-ajax.php requests with someone attempting to view the WP admin dashboard?

    Thanks for your help!

    • This reply was modified 9 years, 3 months ago by Michael McFann. Reason: Forgot some helpful information
    Michael McFann
    Participant

    This reply is private.

    in reply to: Calendar not loading for some users #1204682
    Michael McFann
    Participant

    Our website was caught up in the Bluehost outage on Friday. We are back now.
    I have asked our web developer about what theme we are using. And I have passed on your comments.

    Thanks – Michael

    in reply to: Calendar not loading for some users #1204102
    Michael McFann
    Participant

    We fixed the https setup but no luck. We still get this to work on some machines but not on others.

    I noticed that when I click on the “next” link the url is https://testbayeast.org/calendar/category/leadership/2017-01/?tribe_events_cat=leadership&undefined=%09%09%09%09%09%09%09%09Month%09%09%09%09%09%09%09&tribe-bar-date=2017-01
    Interestingly, on the machines where the “next” link does not work, if they use the url https://testbayeast.org/calendar/category/leadership/2017-01 they see the page!

    Machines that the “next” link works on:
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:48.0) Gecko/20100101 Firefox/48.0
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14
    Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

    Machines that the “next” link does not work on:
    Mozilla/5.0 (Windows NT 6.1; Trident/7.0; MDDRJS; rv:11.0) like Gecko
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
    Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

    in reply to: Message when trying to upload csv file #1201988
    Michael McFann
    Participant

    I downgraded to version 4.3.2 and the import function works correctly.
    It looks like version 4.3.3 breaks the ability to indicate the file to be uploaded.

    Michael

    in reply to: Related Events #969301
    Michael McFann
    Participant

    Thanks for that info.

    We are using the The Events Calendar Category Colors so we are wondering if there is a way to remove the use of categories for related events and just use tags?

    Thanks – Michael

Viewing 8 posts - 1 through 8 (of 8 total)