I love this plugin, but I would like to disable it for logged users, because it breaks my page builder. Is it possible?
]]>Hi, updated to latest wordpress (5.2.2), and updated our PHP (7.2.19), and updated plugins, etc.
JS & CSS Script Optimizer is at 0.3.3 (latest).
When I enabled WP_DEBUG to debug another issue I saw this notice:
Notice: Undefined index: enable-plugin in […]/wordpress/wp-content/plugins/js-css-script-optimizer/js-css-script-optimizer.php on line 162
It is a notice, it shouldn’t break thing.
But by looking fast at code, at line 162 I see this:
if (! self::$options['enable-plugin']) {
return false;
}
Unless you are 100% sure that this index is defined, then you should probably always looks if it is also set with isset().
I only saw this index referred on this line in the same file:
if (! isset(self::$options['strict-ordering-beta'])) {
self::$options['enable-plugin'] = true;
self::$options['strict-ordering-beta'] = false;
}
In init(), you do this:
self::$options = array(
...
)
To initialize the array, but you probably forgot to include a line for this there:
self::$options = array(
//...
'enable-plugin' => false,
)
That is probably the clean fix without having analyze all your code and all. In fact, I added it to my installation until you update the plugins to remove the notice.
That will ensure that index always exist inside your class and then later in that class, you can look at the value without verifying if the index has been set with isset().
P.S., In your code, you are mixing TABS and SPACES, which make it completely un-aligned when editing in a random editor that probably doesn’t have your config, I would suggest to fix this. It might be one reason I favor to use spaces always (and usually set my editors to convert tab as space). But I don’t hold a strong opinion (read: I have nothing against tabs, as long as they are used consistently in all your code). There are other advantage to use space-only, just as there is advantages to use tabs too.
]]>I have updated Visual Composer and PHP version , This plugin didn’t work.
]]>Hi,
Is this plugin php 7.2 compatible?
]]>Hello,
I’m having problems with the plugin and Woocommerce single product page (on all products).
The main image (with default zoom&slider) won’t display.
The problem disappears after disabling the plugin.
Probably I should exclude some js or css but with?
The problem could have appeared after an update, but I have no way of verifying that.
Thanks for the help!
]]>Hi,
With this plugin CSS and js file are creating using random characters. I need to write the following code how can I identify the name of CSS file and Js file on the go.
<link rel=”preload” href=”CURRENT JS FILE NAME” as=”script”>
<link rel=”preload” href=”CURRENT CSS FILE NAME” as=”style”>
Thanks and regards,
]]>Hi,
Minify CSS files (remove comments, tabs, spaces, newlines) is gray. How to enable this option I mean gray to normal so that I can disable it.
]]>Hello,
nothing serious.
I just updated to 0.3.3 and I have got “again” the following PHP Notice :
Undefined index: enable-plugin in C:\wamp\www\***\wp-content\plugins\js-css-script-optimizer\js-css-script-optimizer.php on line <i>162</i>.
Take care,
Fredde
]]>Hi supporter,
When I enabled plugin, the Slider Revolution stop working and have error at head top page.
Supporter can run my site at
https://phucgiacons.com
How can I fix this ?
Please confirm me sooner.
Thanks a lots !
]]>I have to deactivate it, since it had a conflict with another plugin. Will you please help.
]]>Hi. Thank for the plugin. The plugin ready did a great job compared with most popular minify. But i found small issue.
css/fonts/fontawesome-webfont.woff2
1) This external css is not optimize yet
2) When i use <i class=”fa fa-map-marker” aria-hidden=”true”></i>
==> Most of them, and special this is example, it is only appear as square in menu, not actual
Title has the question:)
]]>Hi there, I grabbed the latest version of this plugin and ran it against https://sitecheck.sucuri.net which showed a malware in one of the cache files. Figured maybe it was old so I removed the plugin and did an rm -r to the cache folder (rescanned it and it was fine) than went ahead and reinstalled the plugin then did another can and found the malware once more.
Here is the page on what it found. This a false positive or something I should be concerned about?
https://blog.sucuri.net/2015/11/jquery-min-php-malware-affects-thousands-of-websites.html
Here is the imgur upload of the security violation: https://imgur.com/JHifuDM
]]>Great plugin! But I think it need some extra features:
After installing your plugin I check that the images do not appear. As they are allocated in nginx, what would be the way to not impact. Another issue, the menu of my The7 theme does not show the sub-menu. I have already made some attempts to inhibit some js and css files.
Thank you.
I get the following error message:
[30-Jul-2017 13:21:13 UTC] PHP Warning: A non-numeric value encountered in /home/…/public_html/…/wp-content/plugins/js-css-script-optimizer/js-css-script-optimizer.php on line 506
What could cause this error message?
]]>Hello, it seems that the plugin conflicts with UX builder impossible to modify the pages.
]]>Hello:
I’ll like to start thanking you for this plugin, it really works well and do the job. However I’m having an issue that is flooding my debug.log file with PHP Notices, specifically: “PHP Notice: Undefined variable: group in ~\wp-content\plugins\js-css-script-optimizer\js-css-script-optimizer.php on line 388” it also happen on line 379. Honestly with a quick review and fix to the code I can fix it but I’ll like to keep updates from this plugin if it’s possible.
Thank you again.
I installed your plugin to try it out on our website and simply broke it. Now, we cannot even access as it doesn’t recognize our password!
Need help to solve this issue ASAP.
When i activate this plugin, I recognize that relative URLS in CSS (for Background-Images) are messed up.
Here’s an excerpt of the original CSS (The -webkit one uses absolute URL for comparison)
background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("https://blog.kaibrockelt.de/wp-content/uploads/2016/02/lappi.jpg");
background-image: -moz-linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/wp-content/uploads/2016/02/lappi.jpg");
background-image: -ms-linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/wp-content/uploads/2016/02/lappi.jpg");
background-image: linear-gradient(top, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/wp-content/uploads/2016/02/lappi.jpg");
And here’s what i get when I enable the module:
background-image: -webkit-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url(https://blog.kaibrockelt.de/wp-content/uploads/2016/02/lappi.jpg);
background-image: -moz-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url(https://blog.kaibrockelt.de/wp-content/themes/bootstrapwp-87/custom//wp-content/uploads/2016/02/lappi.jpg);
background-image: -ms-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url(https://blog.kaibrockelt.de/wp-content/themes/bootstrapwp-87/custom//wp-content/uploads/2016/02/lappi.jpg);
background-image: linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3)),url(https://blog.kaibrockelt.de/wp-content/themes/bootstrapwp-87/custom//wp-content/uploads/2016/02/lappi.jpg);
As you can see the Path to the Cache directory is prepended automatically which leads to a 404.
The workaround is to rewrite the relative URLS into absolute ones, but i guess this is not the way the plugin is meant to work.
]]>After enabling the plugin my website is not functional anymore how can I do a rollback?
]]>This is the best ever plugin for combine CSS files. It really rocks!
But when I enable it, my Smart Sidebar (driven by JavaScript) stops workin. And I have completelly disabled JS in the plugin.
How can I fix this?
]]>Im very happy for this plugin, thanks.
I have only one issue with the template Colormag – when plugin is enabled, nav#site-navigation menu doesnt work on narrow screen – navigation.js doesnt change class .main-navigation to .main-small-navigation – onclick on menu icon h4.menu-toggle).
I’ve tried all possible setting and excludes, only when plugin is enabled, menu is out. And console without errors.
Any suggestions?
Thanks.
Hello guys,
Installed the plugin “JS Script CSS Optimizer &” to you, but to activate it, it breaks all the CSS of my site.
Here’s how my site after you activated the plugin:
https://drive.google.com/file/d/0B-3bBaQBNJ0mS0FNUmNmaE1CcWc/view?usp=sharing
My site (https://proddigital.com.br) is now normal as deactivated the plugin. But I would like to know what’s going wrong?
And by the way, I tried to activate the plugin to better the performance of my site, because it is very slow and, according to the Google Page Speed, you need to compress CSS, JS, HTML and
See the analysis of the Google Page Speed:
https://developers.google.com/speed/pagespeed/insights/?url=proddigital.com.br
]]>Hi, I have minified Both Js and Css file as two files, I am checking my website in PageSpeed Insights Show the both Css and Js files under Eliminate render-blocking JavaScript and CSS in above-the-fold content. how can i resolve it please advice.
Thanks.
]]>Please, see the main page – https://russiantranslator.pro/ and you can see that there are no text and background colors also menu items and other elements are distorted!!!
After I installed this plugin all CSS colors and formating was removed and I can get everything back as it was before I installed and activated the plugin.
How can I revert the changes???
HI,
I am testing my site speeds in different sites which are saying to combine few css and scripts. but your plugin is saying to ignore?
]]>Hi, i just found a problem with Woocommerce. When this plugin is set to combine javascript https://screencast.com/t/SJxIHZyxin8K then localized strings are not present. After hours of searching for solution, i have found it. In js-css-script-optimiser.php on line 98 is
add_action('wp_print_scripts',array(__CLASS__, 'wp_print_scripts_action'), 0);
array(__CLASS__, 'wp_print_scripts_action'), 0);
But in woocommerce is hooked like this
add_action( 'wp_print_scripts', array( __CLASS__, 'localize_printed_scripts' ), 5 );
So this localized strings are printed after all scripts are combined, resp. they are not visible at all.
Could you just change priority of that to 200? Thank you.
add_action('wp_print_scripts',array(__CLASS__, 'wp_print_scripts_action'), 200);
array(__CLASS__, 'wp_print_scripts_action'), 200);
]]>
Hello do I just activate your plugin for faster speeds on my site in relation to Js,css?
Best regards
Blair Urquhart
]]>if I enable the plugin to handle CSS on my Twenty Fifteen Child Theme, the background color of the sidebar is removed.
]]>