Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Levrini

    (@levrini)

    Input please.

    Thread Starter Levrini

    (@levrini)

    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;
    //			}

    Thread Starter Levrini

    (@levrini)

    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: null

    It passed all checks before reaching the $.post(…) routine. Values for tf.invalid_date(ts.date), ts.filter_cats, tt.pushstate, ts.params are 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 for null values.

    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-90903

    After 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-5164546

    I would like to ask for an option to disable Ajax month view, pagination etc. so we can avoid this kind of problems.

    Thread Starter Levrini

    (@levrini)

    Thanks for the nice in-depth answer, Brook.
    I’ll do more conflict tests.

    Basically, 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”>

    Thread Starter Levrini

    (@levrini)

    Hi, has anyone looked at this?

Viewing 6 replies - 1 through 6 (of 6 total)