• Resolved archesis

    (@anchises)


    Hi!
    I am using:
    ? TablePress
    ? TablePress Extension: DataTables Inverted Filter

    The Update to WordPress 4.5 screwed up the look (I want to hide all but one column) and the search field is missing.

    Non-working version using WP 4.5 (pls scroll down):
    https://www.pfarre-mn.at/coupon
    (note: shortcode ultimate seems to have some problems as well, at least the “tabs” function)

    For comparision, here is the working version with WP 4.4.2:
    https://www.strawberrytour.com/coupons

    File customizations:
    https://www.ads-software.com/support/topic/hide-table-after-search?replies=6#post-7478946

    Custom commands:

    "initComplete": function(oSettings, json) { $( '.dataTables_filter input' ).attr( 'type', 'search' ); }, "columnDefs": [ { "searchable": false, "targets": [ 2 ] } ]

    Custom CSS:

    /*zurueck-weiter*/
    .dataTables_paginate.paging_simple {
    	display: none;
    }
    /*Tabellen-Kopf und Fuss*/
    .tablepress thead th,
    .tablepress tfoot th {
    	background-color: #BE002A;
    	color: #EFEFEF;
    }
    /*Tabellen-Kopf bei Mouseover und Sortierung*/
    .tablepress thead .sorting_asc,
    .tablepress thead .sorting_desc,
    .tablepress thead .sorting:hover {
    	background-color: #8B001F;
    }
    /*Filter-Feld links anzeigen*/
    .dataTables_filter {
    	float: left;
    	text-align: left;
    }
    .dataTables_length {
    	float: right;
    }

    https://www.ads-software.com/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The cause for this is in the JS file https://www.pfarre-mn.at/coupon/wp-content/themes/responsive/core/js/responsive-scripts.min.js of your theme. It contains the expression

    $("a[href=#scroll-top]")

    which apparently is no longer supported in the latest version of the jQuery JS library. This then raises a JS error which stops the execution of all JS (including that of TablePress) on the page.

    This issue has to be fixed in the theme, so that I can only suggest that you contact the theme developer about this.

    Regards,
    Tobias

    Thread Starter archesis

    (@anchises)

    Thanks for the answer!

    Yes, it seems that all JavaScript-functions are not working.

    I will contact the Theme-producer about this.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s what I mean. The JS error in that theme JS file stops all JS execution in the browser. You must fix this error in the theme. The behavior that you are experiencing is not caused by TablePress. TablePress just suffers from the theme’s error.

    Regards,
    Tobias

    You can resolve every problem of wordpress 4.5 with a simple solution

    by using this in functions.php

    /**
    * Enqueue script with script.aculo.us as a dependency.
    */
    function my_scripts_method() {
    wp_enqueue_script( ‘jquery-1-11-3’, ‘//code.jquery.com/jquery-1.11.3.min.js’);
    wp_enqueue_script( ‘jquery-migrate-1-2-1’, ‘//code.jquery.com/jquery-migrate-1.2.1.min.js’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_scripts_method’, 1 );

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi mohitchawla29,

    no, please don’t ever do that! ??
    This is a wrong solution! While it might work temporarily, it will cause more problems in the future! It’s never good to workaround a bug by loading an older version of a library!

    Not only will this slow down your site (because jQuery is now loaded twice), but you will also run into issues into the future because of this. (Trust me, I have seen this happen very many times!)

    So, please never apply this code to load a custom version of jQuery, and instead simply fix the bug in the JS code. As in this case, this is usually very simple!

    Regards,
    Tobias

    Hi, I have asked the hosting to down grade to wp442 for now, is that a solution?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    it would be a temporary solution only. The proper solution is to fix the theme or ask the theme developers to release a working update.

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problems after Update to WP 4.5’ is closed to new replies.