Hi there,
there is a PHP deprecated message that is spamming my logfile since a long time. Could you please have a look on how to fix this. The message is:
PHP Deprecated: ?str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in [ROOT_PATH_HERE]/wp-content/plugins/fast-velocity-minify/inc/frontend.php on line 1075
In the mentioned line I found this code:
add fvm_footer scripts, if enabled
if(fvm_can_minify_js()) {
$fm = fvm_add_footer_function($fm);
}
$hm = str_replace(array(”, ”), ”, $hm);
$hm_late = str_replace(array(”, ”), ”, $hm_late);
$fm = str_replace(”, ”, $fm); // this is line 1075
The function fvm_add_footer_function (defined in line 2193 in \wp-content\plugins\fast-velocity-minify\inc\common.php) returns nothing (void), so I am pretty sure this is the cause of the deprecated message.
Best regards,
Henning
Hi.
On our site we use the Fast Velocity Minify 3.2.6 plugin.
We recently discovered that accessing some pages of the site causes 301 redirects to other sites. The origin of these redirects is unknown to us.
Investigation showed that the cause of the redirects was this JS code
try{
window.location=’https://ww88.domain.com/’
}catch(e){console.error(“An error has occurred. [ File: https://www.domain.COM/wp-content/plugins/wp-lozad/js/lozad.js?ver=5.8 ] [ “+e.stack+” ]”);}
This JS code was embedded in some optimized JS files created by the Fast Velocity Minify plugin and located in the cache folder /wp-content/cache/fvm/min
Question:
Has a vulnerability been discovered and fixed in the Velocity Minify plugin in versions older than 3.2.6 that allows an attacker to modify files on the server?
]]>Hi,
I want to defer all Javascript which is executed from plugins folder but one plugin! I did not find a way to exclude just this plugin-folder from defering …
Is there any way to sa: please defer all Javascript files from Pluginsfolder but not a specific plugin?
Best
]]>Hi there, I’ve generally loved this plugin but need to report a serious recent issue on one site, hosted on WPEngine. For some reason the plugin went nuts, and every 7 days would dump a huge amount of data to the database and cache/fvm/min folder. The database alone, which I just cleaned out, had 7.5 GB of stuff in it for FVM’s two tables. I’m in the process of deleting the cache folder.
I plan to try reinstalling the plugin again afterwards and I’ll reply here if it keeps happening, since maybe it was a one-off weird issue. But I wanted to let you know about it.
]]>My host suggested I try your plugin as I am having performance issues on my mobile site as measured by pagespeed insights. Your plugin seems to have gotten my homepage up into the 80’s (used to be upper 90’s..no clue what happened), but the page I need help with is staying in the 50’s and 60’s. Other inner pages are a bit higher, but not where they ought to be.
I am not particularly tech savvy in spite of building and maintaining everything myself (with tech and support folks help), so please be patient with my ignorance. When I look at psi, there seem to be issues with js items, and some image load issues that I’m not sure are related to js.
]]>Hello,
If i disable FVM, then all twitter shared pictures are visible @ my twitter page, https://twitter.com/hingetee , if i enable FVM then some shared pictures are missing and some are still there and visible and not visible shared post pictures are changeing time to time @ https://twitter.com/hingetee page.
Also when i share blog post, sometimes picture does not show up at twitter share preview, facebook share works all the times, when Fast Velocity Minify plugin is enabled or disabled, i would like to get Twitter also 100% working condition.
I have also Yoast plugin: https://www.ads-software.com/support/topic/twitter-share-fix-needed-2/
Thank you, MarxVeix
]]>We have a problem with the wp-cron.php since the last update Version .3.4.1. Fix attached see:
./htdocs/wp-content/plugins/fast-velocity-minify/inc/common.php
@@ -1737,6 +1737,7 @@
if( defined(‘WP_ADMIN’) && WP_ADMIN ){ return false; }
if( defined(‘SHORTINIT’) && SHORTINIT ){ return false; }
if( defined(‘IFRAME_REQUEST’) && IFRAME_REQUEST ){ return false; }
+ if( defined(‘DOING_CRON’) && DOING_CRON ){ return false; }
# detect api requests (only defined after parse_request hook)
if( defined(‘REST_REQUEST’) && REST_REQUEST ){ return false; }
fyi.
Hi
Please could you help me with how to uninstall this plugin safely. I shouldn’t have installed it. I am not a developer. I have uninstalled it twice and twice i have had to restore my site. I would like to know how to uninstall it completely and safely without it breaking my site please.
]]>We noticed sudden increase of the disk size of wp_options table when fast-velocity-minify is enabled. Unfortunately it was in the ranks of gigabytes in a minute. Our table ended up being 558GB in size.
We tried to optimize it and it was dropping normally to megabytes in size but then it would constatly increase again.
It seems that innodb tables won’t release the disk space when entries are deleted / inserted on a table, until the table is optimized which will lead to this situation.
We found that one of the culprits is fast-velocity-minify. By completely uninstalling it, it mitigated the issue which stopped increasing on every single request. We still see increase but not on every request.
Could you let us know if the plugin actually exhibits this behavior to insert / delete records in the wp_options table constantly?
]]>I’m getting the error in the subject twice for two css files. Is this normal?
]]>Are there settings which are recommended? I am not sure which to check/not check or should i leave the intial settings as is?
]]>Hey, I’m sure I’ve solved this problem in the past, so I’m probably just doing something silly, but even though I’ve checked the Administrator role under “Force optimization for the following user roles”, the plugin is not minifying CSS when I’m logged in. (It works when logged out.) Is there some common mistake I might be making?
]]>Is it possible to enhance the plugin in a way that editors can clear the cache too. This is sometimes necessary. Thanks in advance.
]]>
Which is the Last version Of Velocity that works on the WP4.9, and thus the ClassicPress fork? Classicpress is a FORK of wp 4.9. It is up to date, but has better editing and runs faster than wp because no gutenburg. so if you can reveal which is your last version on wp 5.9, then our community can use it.
Hi there! How can we get rid of this data after your plugin uninstall in our multisite https://tppr.me/OqzFe We need to remove it.
]]>I have a number of websites based on The 7 theme which recommends using this plugin for speed/caching etc. On sites using Elementor and Ninja Forms plugn (and the latest version of WP & theme) the contact form won’t load on the contact page. I have about 10 sites experiencing the same issue. If I ‘clear everything’ then the contact form appears for a temporary amount of time. I am using the settings as provided here: https://support.dream-theme.com/knowledgebase/fast-velocity-minify-settings/ Please can you help
]]>Hi, I installed Bookly plugin in this website. Bookly needs no cache in the pages it appears. How can excludes one or two pages from caching?
Thank you.
]]>The css minification doesn’t work correctly with special selectors
input[type="radio"]:checked + img {
border: 5px solid #0083ca;
}
The previous code will minify to
input[type="radio"]:checked img{
border: 5px solid #0083ca
}
As you can see the +
has been dropped making this a completely different selector
Obviously checking “Disable CSS Files Minification” is a way to avoid it, but then the plugin has little purpose
Hi, I receive the following Google PageSpeed result for mobile:
Reduce unused CSS
All the files shown are all from FVM.
Any advice on how I can fix?
Thx for pointing me in the right direction. Much appreciate it!
Hey, I’m sure I’m just misunderstanding how to do this, but I’ve set up a test case for a problem I’m having. I’ve added the string “rs” as the content of the Allowed Query Strings setting, but when I go to the homepage with that query string set, my files are all unminified. What am I doing wrong? How do I make this work?
Thanks!
]]>Problem description:
Pages can not be loaded for non admin users (normal frontend visitors) after upgrading to the latest version. Content output is doubling somewhere else (in Chrome, Edge is just showing a white page).
Debugging found the following issues:
– ob_end_flush(): failed to send buffer of fvm_process_page in /wp-content/plugins/fast-velocity-minify/inc/frontend.php on line 45
– iconv(): Detected an illegal character in input string in /wp-content/plugins/fast-velocity-minify/libs/simplehtmldom/simple_html_dom.php on line 1057
Best regards
Oliver
V 3.3.3 causes white page for not logged in users (yes, I purged fvm cache). There is still some code in the white page and when inspecting it, I see some syntax errors in line 93 (couple of lines after body starts), that causes everything from that point on to not get rendered.
Error happens in the line bellow. Maybe you can figure it out form here.
<style id='woocommerce-in.;am-16182" class="menu-it0m menu-item-type-taxonomy menu-item-object-category menu-item-has-children menuu-it0m/www.student.si/lajf-je/">Lajf jet"td;<it"td"menu-item-16182" class="men40m menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu40m/www.student.si/lajf-je/">Lajf je …fitatilo;<izdravje"menu-item-16182" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u-item/www.student.si/lajf-je/">Lajf je …h60drierh60dr"menu-item-16182" class="men37m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-337m/www.student.si/lajf-je/">Lajf je …s<diviera?<div"menu-item-16182" class="men31m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-331m/www.student.si/lajf-je/">Lajf je …lepotrierlepotr"menu-item-16182" class="men29m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-329m/www.student.si/lajf-je/">Lajf je …seksierljspazen"menu-item-16182" class="men35m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-335m/www.student.si/lajf-je/">Lajf je …tech;<itech"menu-item-16182" class="menu-240m menu-item-type-taxonomy menu-item-object-category menu-item-has-children menuu-240m/www.student.si/lajf-je/">Lajf jeuspesd-moladi;<iuspeh"menu-item-16182" class="menu-327m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u-327m/www.student.si/lajf-je/">Lajf jeizce_favljeno/> <zbrier> </db="menu-item-16182" class="menu33237m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u33237m/www.student.si/lajf-je/">Lajf jeizce_favljeno/pov cikrierpov cikr"menu-item-16182" class="menu59187m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u59187m/www.student.si/lajf-je/">Lajf jeizce_favljeno/kodia=arierkodia=ar"menu-item-16182" class="menu33239m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u33239m/www.student.si/lajf-je/">Lajf jeizce_favljeno/okol30;<iokol30"menu-item-16182" class="menu08551m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3u08551m/www.student.si/lajf-je/">Lajf jeizce_favljeno/znane_f;<iznane_f"menu-item-16182" class="men2' texm menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-32'texm www.student.si lajf-je ">Lajf jeizce_favljeno/trajnId":1-prihodne_f;<itrajnId":1 prihodne_f"menu-item-16182" class="men47m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-347m/www.student.si/lajf-je/">Lajf jeizce_favljeno/svetovalnrLV;<isvetovalnrLV"menu-item-/ulem-/item-16182" class="men39m menu-item-type-taxonomy menu-item-object-category menu-item-first menu-item-3-item-16182"><a href="h39m/www.student.si/lajf-je/">Lajf jezabpan;<iZabpan-menu-right here(.wp-bl"varps:/itemdia='all' />
From what I can see, when logged in, the first line should be
<style id='woocommerce-inline-inline-css' type='text/css'>.woocommerce form .form-row .required{visibility:visible}</style>
so maybe this is where the breakage happens.
//edit: rolling fvm back to 3.3.1 fixes it (couldn’t find 3.3.2 in track, but assume it also works)
]]>For last update 3.3.3 in days, my site have duplicate pages showing and getting this erros:
[12-Dec-2022 11:00:02 UTC] PHP Warning: Undefined array key “REQUEST_METHOD” in /home/user/public_html/wp-content/plugins/fast-velocity-minify/inc/common.php on line 1720
Thank you
]]>Hi Raul,
First of all, awesome plugin you have here but it seems overriding the cache location to the common dynamic writable path of WordPress in wp-content/uploads via FVM_DIR
is not working. That override is useful especially on a version-controlled codebase but the documented override by the plugin does not work when using the FVM_DIR
constant as suggested by the doc https://github.com/peixotorms/fast-velocity-minify/blob/f2dc31229eac0f68f7ce49a6a2927d9fc656b59d/readme.txt#L35 because FVM_DIR
is used in the plugin
to also reference the plugin path https://github.com/peixotorms/fast-velocity-minify/blob/f2dc31229eac0f68f7ce49a6a2927d9fc656b59d/fvm.php#L38-L44 resulting to a fatal error when enabling the plugin:
example when using define( 'FVM_DIR', 'wp-content/uploads/' );
Fatal error: require_once(): Failed opening required 'wp-content/uploads/inc/common.php' (include_path='.:/usr/share/pear:/usr/share/php') in wp-content/plugins/fast-velocity-minify/fvm.php on line 47
Steps to reproduce:
1. Add in the wp-config.php
define( 'FVM_DIR', '/code/wp-content/uploads/' );
define( 'FVM_URL', WP_SITEURL . '/wp-content/uploads/' );
2. By enabling the plugin, you will get the error above
Proposal:
Add in the function fvm_get_cache_location()
a specific CONSTANT that references the specific cache path but is also not used to reference the plugin path https://github.com/peixotorms/fast-velocity-minify/blob/f2dc31229eac0f68f7ce49a6a2927d9fc656b59d/fvm.php#L38-L44 example using FVM_CACHE_DIR
& FVM_CACHE_URL
if (defined('FVM_CACHE_DIR') && defined('FVM_CACHE_URL')){
# define paths and url
$sep = DIRECTORY_SEPARATOR;
$dir = trim(rtrim(FVM_CACHE_DIR, '/\\')). $sep . 'cache' . $sep . 'fvm'. $sep . 'min';
$durl = trim(rtrim(FVM_CACHE_URL, '/')). '/cache/fvm/min';
# create and return
if(!is_dir($dir) && function_exists('wp_mkdir_p')) { wp_mkdir_p($dir); }
return array('ch_dir'=>$dir,'ch_url'=>$durl);
}
]]>
Hi there,
each time I want to edit my page, I have to deactivate Fast Velocity Minify plugin, as the admin bar at the top will vanish each time I’m trying to edit a page and it is active.
Do you know how to fix it?
Best
]]>Hello,
I noticed that FVM puts the viewport meta tag AFTER the link rel=”preload” tags. In my case I am preloading the image supposed to be the LCP responsively, that is, using a imagesrcset attribute. However the browser isn’t able to determine the image correctly due to the fact that the meta viewport tag comes AFTER in markup (it loads two images instead of just one)
Reference: https://medium.com/@francis.john/viewport-and-media-query-based-preloading-87db30ff6d5f
Proposed fix: move the viewport meta tag on top of all other link rel=”preload” tags.
Please let me know. Thanks
Mario
]]>Right now newer CSS functions like clamp, min, max and such will break due to the use of a rather old version of the minification library. Please update to the newest one. Thanks!
]]>W3 Conflict. Plug-in stop working for Mobile with W3total plugin for different cache on mobile and desktop. After manual purge it work some time until its start showing unoptimized page for Mobile.
]]>Hi, wondering if there’s a way to exclude pages. I am, for example, delaying scripts until user interaction however on some pages I don’t want to delay. Any help would be appreciated. thanks
]]>Todays update has a problem
site broken ….had to backup to yesterdays
Please check out
Thanks