Forum Replies Created
-
AuthorPosts
-
Greg
ParticipantOh good god. I wasn’t even paying attention. You are absolutely right. Changing that setting yesterday was the answer. Ok thanks and sorry to waste your time.
Greg
ParticipantHi Cliff. It was 5, I changed it to 10. No change.
Greg
ParticipantIt is set to 18 (per my initial post). That’s the problem. It displays all of them on page load (up to 18 of course) but when you click on a specific day, it suddenly drops back to between 3 to 5 events. It’s very strange.
Greg
ParticipantI’ve not read the article but will do. Yes using Genesis. I tried changing the read posts form 5 to 10 but it didn’t change anything. On Jul 11, there are 18 events, but if I click on the calendar it then will only show 3! You can see the behavior here: https://creativecamps.us . All the events are set to ‘all day’ since I’m handing timing of the events separately. Site is set to GMT-5.
Greg
ParticipantHi Brook,
I traced the source of the ‘white screen’ to the function name ‘tribe_set_default_date’. If I rename it to ‘tribe_set_default_date_2’, everything then works as advertised. I assume it’s because this function name is already defined somewhere in your plugin?
Greg
ParticipantThis reply is private.
Greg
ParticipantThis reply is private.
Greg
Participant*sigh* yes of course I understand the php opener. I switched your code to ‘raw’ view and tried it again. Same problem. I guess there is some issue which is why the original line
$_REQUEST[‘tribe-bar-date’] = ‘2016-07-01’;
crashed the site.
Greg
ParticipantHi Brook, did you test the code you suggested? It doesn’t compile and gives me the classic WP white screen of death.
I’m using month view. Not sure what the Minical widget actually is.
Greg
ParticipantWell the single line of offending code is: $_REQUEST[‘tribe-bar-date’] = ‘2016-07-01’;
I’m not sure how we debug this since this is code suggested by your knowledge-base and it is conflicting with your own code!
What I’m trying to achieve with this is: for the ‘Date view (which isn’t the single page) I need it to show month view at that month since this is when the first events show up. However for some reason it is affecting the single event page (I assume it is single? Not sure how you are coding this).
Bottom line: How do I ensure that the main events page which is in month view can show the month I want without triggering the 404 for the ‘single’ event view?
Greg
ParticipantThe issue is being caused by this code here in my functions.php . I’m using this code because I need to set the default date for the calendar. If I remove this code, the 404 error is resolved.
function tribe_set_default_date () {
if ( !is_single() && empty( $_REQUEST[‘tribe-bar-date’] ) ) {
$_REQUEST[‘tribe-bar-date’] = ‘2016-07-01’;
}
}
add_action( ‘parse_query’, ‘tribe_set_default_date’ );Greg
ParticipantHI Hunter. The error is occurring as a result of my customized theme. Switching to the default theme resolves. Disabling all the plugins does not resolve.
– any clues on where I should look?
-
This reply was modified 10 years, 3 months ago by
Greg.
Greg
ParticipantGreat thanks Geoff. That works perfectly.
Greg
Greg
ParticipantThis reply is private.
Greg
ParticipantThis reply is private.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
