Forum Replies Created
-
AuthorPosts
-
January 31, 2017 at 11:00 am in reply to: Calendar does not load when clicking on the link for the next month #1227035
Michael McFann
ParticipantThat makes total sense and seems to have worked. ]
Thanks so much for your help!
January 30, 2017 at 2:25 pm in reply to: Calendar does not load when clicking on the link for the next month #1226468Michael McFann
Participant302 redirect issues caused by above code on staging and production, but not on my local machine.
January 30, 2017 at 2:05 pm in reply to: Calendar does not load when clicking on the link for the next month #1226448Michael McFann
ParticipantThanks 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
January 27, 2017 at 3:36 pm in reply to: Calendar does not load when clicking on the link for the next month #1225494Michael McFann
ParticipantThis reply is private.
Michael McFann
ParticipantOur 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
Michael McFann
ParticipantWe 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.36Machines 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.0Michael McFann
ParticipantI 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
Michael McFann
ParticipantThanks 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
-
This reply was modified 9 years, 3 months ago by
-
AuthorPosts
