Support » Plugin: Dependency Minification » Error – Try Again

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Weston Ruter


    @beheard: What are the scripts that are being combined?

    varied scripts and style. as per screen here.

    Plugin Author Weston Ruter


    Well, it seems one of your JS files has an error in it. Turn off dependency minification, and check to see if any of the scripts throws an error in the console.

    Thanks Weston.
    Turn of minification.
    But cannot see js errors, and not sure where they would show..

    Plugin Author Weston Ruter


    In the JavaScript console in your browser. In Chrome, this is accessed under Tools > JavaScript Console. If there are JS errors, they will appear here.

    Thanks for the heads up.

    No errors in chrome JS console for any of the pages that give the “try again” error.

    It has minified a number of page scripts successfully (some give a – percentage of compression so not sure if that is correct) but on certain pages it gives that error.

    Is there a way to tell from minify what is causing it?
    Unterminated RegExp at byte 241813: /g,”%2D%2D”)+
    Is this a code for something..

    Plugin Author Weston Ruter


    Please share the URL for the site that has the problem. No need for WP Admin access. If you don’t want to post it here, you can email me:

    sent thanks

    Plugin Author Weston Ruter


    OK, I ran through each of the scripts individually through JSMin, and this is the problematic script: ckeditor.js bundled with the visual-form-builder-pro plugin.

    It looks like a bug/limitation in JSMin:

    The problem is that these plugins are using minified sources. If they were using unminified ones, then JSMin probably would do fine.

    So in the immediate term, I recommend you exclude this ckeditor script from getting included among the minified dependencies via the solution outlined here:

    I’ve opened two issues on GitHub which you can track:

    Excellent thanks for tracking it down.. Will keep updated

    Apologies am not using the right exclude function as shows the function in the theme.
    What should it be please to exclude the js

    Plugin Author Weston Ruter


    OK, so it should be something like this:

    function _exclude_ckeditor_from_depmin( $is_excluded, $handle, $src ) {
        if ( 'vfb-ckeditor' === $handle ) {
            $is_excluded = true;
        return $is_excluded;
    add_filter( 'dependency_minification_excluded', '_exclude_ckeditor_from_depmin' , 10, 3);

    Code gives error.
    Apart from that the VFB plugin had an update and we now appear to have no further “try again” errors showing.. which is great.
    “•Update CSS and JS to use cache busting version numbers”

    However I wonder if you could check as when doing page load tests, using pingdom or any others, it shows that JS are not being combined and affecting load times.
    “There are 19 JavaScript files served from .. They should be combined into as few files as possible.”

    Thanks so much.

    OK – Updated minify to Version 0.9.4 now same pages give the same “try again” error.



    Dependency Minification

    Today appears this:

    Warning: Invalid argument supplied for foreach() in /home/podermag/public_html/wp-content/plugins/dependency-minification/dependency-minification.php on line 253

    Warning: Cannot modify header information – headers already sent by (output started at /home/podermag/public_html/wp-content/plugins/dependency-minification/dependency-minification.php:253) in /home/podermag/public_html/wp-includes/pluggable.php on line 899

    Please, can you help me?

    Thanks a lot


    Aurelio Martuscelli

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Error – Try Again’ is closed to new replies.