• Resolved xmatter

    (@xmatter)


    I am running WP 4 and BuddyPress Version 2.1 and TablePress 1.4. I just noticed that the TP Search Box no longer appears above any table, like it did in the past. I have read the Documentation, but there does not appear to be anything out of the ordinary.

    <script type='text/javascript' src='https://sample/wp-includes/js/jquery/jquery.js?ver=1.11.1'></script>
    <script type='text/javascript' src='https://sample/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var BP_Confirm = {"are_you_sure":"Are you sure?"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://sample/wp-content/plugins/buddypress/bp-core/js/confirm.min.js?ver=2.1'></script>

    I only have 3 other plugins, but have deactivated ALL plugins accept BuddyPress. Still not seeing the Search Box.

    This obviously occurred after updating to WP 4 and then a BuddyPress update. Has anyone else experienced this, or could help with a fix of what I need to do?

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The relevant script calls would be near the bottom of the page, near the </body> element. Also, can you please check if there are any script errors being reported in the JavaScript console in the browser?

    If that doesn’t help, please post a link to the page with the table where this problem happens, so that I can take a direct look. Thanks!

    Regards,
    Tobias

    Thread Starter xmatter

    (@xmatter)

    This is what came out, I suspect global.js is the issue?

    Failed to load resource: the server responded with a status of 404 (Not Found) https://sample/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css
    Uncaught TypeError: undefined is not a function global.js:1327
    Failed to load resource: the server responded with a status of 404 (Not Found) https://sample/wp-content/themes/images/background.gif
    Failed to load resource: the server responded with a status of 404 (Not Found) https://sample/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css

    I appreciate your quick response!

    This is a local WP install within a company, so you would not be able to view.

    Script Calls Within HTML Markup:

    <script type='text/javascript' src='https://sample/wp-includes/js/admin-bar.min.js?ver=4.0'></script>
    <script type='text/javascript' src='https://sample/wp-includes/js/comment-reply.min.js?ver=4.0'></script>
    <script type='text/javascript' src='https://sample/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.4'></script>
    <script type="text/javascript">
    jQuery(document).ready(function($){
    $('#tablepress-4').dataTable({"aaSorting":[],"bSortClasses":false,"asStripeClasses":['even','odd']});
    });
    </script>	<script type="text/javascript">
    		(function() {
    			var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)');
    
    			request = true;
    
    			b[c] = b[c].replace( rcs, ' ' );
    			b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
    		}());
    	</script>

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, looks like an issue in global.js, line 1327. A common reason is that a JS function is called there which is not defined, because the file that contains it was not loaded.
    As there are some “404 Not found” errors for CSS files as well, I could imagine that the same happened with a JS file.

    When such a script error happens, the browser stops executing the other JS on the page, which is why the TablePress JS is never run.

    Regards,
    Tobias

    Thread Starter xmatter

    (@xmatter)

    I added an HTML output to my previous reply as you were replying, but thank you!

    I will post this at the BP forum to see how to fix the global.js issue, because I have no clue. I appreciate your help greatly!

    Thread Starter xmatter

    (@xmatter)

    I renamed the global.js file and search box is back, even though I am getting errors through the Output Console. Site is working like it use to, so this is definitely related to the BP update.

    You are a great developer with great support!!!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the update! Good to hear that you good pin-point this closer to the common.js. This is indeed a bug in that file then, as it appears.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search Function Not Appearing’ is closed to new replies.