Error – Try Again
-
Thanks for the great plugin.. There are folks like me I am sure that really appreciate it..
Am getting this error on a number of script instances.
Any assistance greatly appreciated.JSMin: Unterminated RegExp at byte 230500: /g,”%2D%2D”)+ Try again
-
@beheard: What are the scripts that are being combined?
varied scripts and style. as per screen here.
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..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..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: [email protected]
sent thanks
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: https://code.google.com/p/minify/issues/detail?id=222
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: http://wordpress.org/support/topic/woocommerce-not-supported?replies=2
I’ve opened two issues on GitHub which you can track:
https://github.com/x-team/wp-dependency-minification/issues/18
https://github.com/x-team/wp-dependency-minification/issues/19Excellent 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 jsOK, 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
Cheers
Aurelio Martuscelli
[Moderator Note: Please ensure that you are embedding links correctly in your posts.]
The topic ‘Error – Try Again’ is closed to new replies.