• Resolved Eusebiu Oprinoiu

    (@eusebiuoprinoiu)


    Hello!

    I use iThemes Security and in the logs page there is a jquery.floatThread.js 404 error generated for every page load. It looks like the file that should be here: wp-content/plugins/codepress-admin-columns/external/floatThead/jquery.floatThead.js can not be retreived.
    The concern is that iThemes Security might lock me out due to a high number of 404 errors.

    Best regards,
    Eusebiu Oprinoiu

    https://ww.wp.xz.cn/plugins/codepress-admin-columns/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I was just going to post this.

    I’m not sure why this is being enqueued in the first place. It doesn’t appear that float the head script is being used anywhere on the table screens as far as I can tell.

    Anyway, here’s the problem:

    if ( $this->is_columns_screen() ) {
    		wp_register_script( 'jquery-floatthead', CPAC_URL . 'external/floatThead/jquery.floatThead.js', array( 'jquery' ), CPAC_VERSION );
    }

    And the script:

    codepress-admin-columns/external/<strong>floatthead</strong>/jquery.floatThead.js

    floatThead vs. floatthead

    On a side note float the head does not work with wordpress tables. I posted a ticket about it a few weeks ago. Ironically I was in the process of building an extension that sticks the admin table headers using it but it breaks wordpress. Not sure if that’s what codepress was using it for, but just a warning if it was…

    https://core.trac.ww.wp.xz.cn/ticket/29030

    Thread Starter Eusebiu Oprinoiu

    (@eusebiuoprinoiu)

    Let’s hope the plugin author is going to addrress this issue. There is no point in modifying the plugin ourselves since the changes will be lost with the next update.

    Eusebiu deregister it until the next update:

    wp_deregister_script( 'jquery-floatthead' );

    I use code-snippets for things like this. Really useful for short simple functions that you don’t want to put in your functions.php or another plugin.

    Thread Starter Eusebiu Oprinoiu

    (@eusebiuoprinoiu)

    I use the plugin on many websites, most of them for clients, so manually modifying the files is not really an option, since for some I don’t have FTP access anymore.
    But I will do that for my own websites.. 🙂

    <?php
    if ( is_plugin_active('codepress-admin-columns/codepress-admin-columns.php') )  {
    function remove_cpac_floatthead() {
        wp_dequeue_script( 'jquery-floatthead' );
        wp_deregister_script( 'jquery-floatthead' );
            }
    add_action( 'admin_print_scripts', 'remove_cpac_floatthead', 100 );
    }
    }
    Thread Starter Eusebiu Oprinoiu

    (@eusebiuoprinoiu)

    That will do! Thanks!
    You are resourceful! 🙂

    Plugin Author Jesper van Engelen

    (@engelen)

    We’re very sorry for the inconvenience, we’ve fixed the error in the just-released version 2.2.5.1.

    Best,
    Jesper

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

The topic ‘jquery.floatThread.js 404 error’ is closed to new replies.