Levrini
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Next/Prev month not loading – ajax bug?Input please.
Forum: Plugins
In reply to: [The Events Calendar] Next/Prev month not loading – ajax bug?Actually, removing “tribe-events-ajax-calendar.js” broke date selector in search, resulting in a PHP Fatal error.
So I took another approach: edit tribe-events-ajax-calendar.js in order to disable ajax post() thus forcing the normal load of the page…
/* if (tt.pushstate && !ts.filter_cats) { dbug && debug.time('Month View Ajax Timer'); $(te).trigger('tribe_ev_ajaxStart').trigger('tribe_ev_monthView_AjaxStart'); $.post( [.....] ); } */ // else { if (ts.url_params.length) window.location = td.cur_url + '?' + ts.url_params; else window.location = td.cur_url; // }Forum: Plugins
In reply to: [The Events Calendar] Next/Prev month not loading – ajax bug?Files are perfectly the same (binary comparisons). Differences exist only in the database contents.
Did many hours of tests and research(out of curiosity), server configuration review, tested connecting to a copy of the same database on the good server to test if MySQL version was the cause, all with the same results…I also debugged “tribe-events-ajax-calendar.js” to find out what the function
tribe_events_calendar_ajax_post()was trying to post to “admin-ajax.php“. But it only receives this back from admin-ajax.php:response.success: true response.html: null $the_content: nullIt passed all checks before reaching the $.post(…) routine. Values for
tf.invalid_date(ts.date),ts.filter_cats,tt.pushstate,ts.paramsare the same on both servers.Perhaps, shouldn’t there be some more checks?
Btw, about this check:
if(dbug && response.html === 0)
I would replace with:
if(dbug && response.html == null)
or
if(dbug && !response.html)
because the former does not account fornullvalues.Finally, we need to find why “admin-ajax.php” is not working on that server.
I don’t know how or from where it retrieves data. But I think there are still some possibilities:
– Corruption in TEC db tables where admin-ajax get data from? How to check these for corruption?
– Some incompatibility with the outdated PHP version of the bad server?
– PHP differences regarding OS (Windows x Linux)?There is a person who found a solution but haven’t said what was the fix exactly:
https://tri.be/support/forums/topic/month-view-next-or-previous-month-link-empty-calendar-2/#post-90903After all, the only workaround is disabling “tribe-events-ajax-calendar[.min].js” as suggested there:
http://ww.wp.xz.cn/support/topic/nextprev-month-buttons-bug?replies=18#post-5164546I would like to ask for an option to disable Ajax month view, pagination etc. so we can avoid this kind of problems.
Forum: Plugins
In reply to: [The Events Calendar] Next/Prev month not loading – ajax bug?Thanks for the nice in-depth answer, Brook.
I’ll do more conflict tests.Forum: Plugins
In reply to: [The Events Calendar] Overlapping content in list viewBasically, the problem is that TEC adds a class “.description” to each event, and it is conflicting with your theme:
.description { position: absolute; content: “”; bottom: 0; left: 0; }
You can fix by removing the absolute position. (Custom CSS, or edit style.css of the theme)
TEC could fix by using less generic style classes in this case.
single-event.php:<div class=”tribe-events-list-event-description tribe-events-content description entry-summary”>
Forum: Plugins
In reply to: [The Events Calendar] Next/Prev month not loading – ajax bug?Hi, has anyone looked at this?