Venkat Raj
Forum Replies Created
-
@webprom Serving webp image format using redirection checks more than
mod_rewritemodule such asmimeandheaders
Could you please visitwp-admin/options.phpand see what the values are for these options
https://prnt.sc/U6mIk-Vs4zfy@l575 You need to add this to active (storefront) theme’s
functions.phpfile. Remove code fromwp-includesfunctions.php file.Please note that If you copy/pasted the code provided, it may have backticks instead of single quote.
add_action('after_setup_theme', 'ab123_remove_robots_txt_entry'); function ab123_remove_robots_txt_entry() { if (function_exists('WP_Optimize')) { remove_filter('robots_txt', array(WP_Optimize(), 'robots_txt'), 99, 1); } }If the problem persist, please provide screenshot of the code you added.
@oliverraduner I was able to reproduce the first issue. But we don’t add
text/javascriptto minified assets. I agree with double quotes.
I’ve added this to our to do list and look into this. Thanks for pointing out.@magnavision What is the size of your database? It sounds like either the php processes timed out or insufficient server resource because of your database size.
@mdotk You could use this filter
wp_optimize_sub_menu_items<?php add_action('admin_menu', 'wpo_filter_menu', 9); function wpo_filter_menu() { add_filter('wp_optimize_sub_menu_items', 'wpo_remove_images_menu'); } function wpo_remove_images_menu($sub_menu_items) { foreach ($sub_menu_items as $key => $item) { if (isset($item['menu_slug']) && $item['menu_slug'] === 'wpo_images') { unset($sub_menu_items[$key]); break; } } return $sub_menu_items; }- This reply was modified 2 years, 12 months ago by Venkat Raj.
> Is it possible that the https setting is coming from the hosting account?
No. unless you have incorrectly installed SSL certificate.How often does this happen?
Could you please check the source code (URL and protocol [http/https] of static assets) when this happens?@lunarmoth I happen to see your unstyled page. While inspecting the source code, the webpage is looking for assets (CSS, javascript, and image files) using
httpsprotocol where as your site useshttp
Could you please go toDashboard => Settings => Generaland make sureWordPress Address (URL)andSite Address (URL)are usinghttpprotocol rather thanhttps?
Do you happen to usehttpsin the past?@lunarmoth Could you please post screenshots of your settings? or you can export the settings and share it using https://pastebin.com/ ?
Please do a plugin conflict test, i.e. disable all plugins and activate it one by one to find out which one is causing the issue.Which theme are you using?
@nedberto92 You shouldn’t load minified and merged assets. Instead you have to find out which resource is actually render blocking and load it asynchronously. You can disable minify, and use GT metric to find out that.
Also when minify is enabled, you can exclude the render blocking assets from Minify => Advanced tab. Please refer screenshot
https://prnt.sc/lwhVEWy-gN54@ms100 By default uploading a product won’t remove all products, posts, etc. But it will also won’t remove the product alone.
Let me explain, If you update a product, the cached product has to be removed. But the product may also be taken place in Shop’s home page. So the cached home page also removed. The same product may also take place in particular product category page, so it will also be removed. I think you get the point.
It is possible that all cache are moved, **only** when you used the provided filter in this function.
https://plugins.trac.wordpress.org/browser/wp-optimize/tags/3.2.15/cache/class-wpo-cache-rules.php#L155
There is no feature to preload at specific time, but you setup scheduled preload after your work day, it will be loaded at the same time you set it up every day.Yes, preload will skip already cached pages when it is not expired.
@garner2015 Some plugins use random numbers, like timestamp, as version number for stylesheets and scripts. Which was considered as an update by WP-Optmize. This is fixed.
Please update to version 3.2.15, purge the cache and let us know if the problem still exists.@mover I believe you copy/pasted the code.
add_action('after_setup_theme', 'ab123_remove_robots_txt_entry');
It should be eithersingle quoteordouble quotecopy/pasting may result in angled quote or backticks@amhealy8 You could try to exclude the scripts related to lazy loading from being processed by WP-Optimize. See here…
https://prnt.sc/JAJLV3peOmdQ
You may also want to make sure that there is no JS console error in the browser when WP-O is deactivated. If it is fine, then you might want to exclude this script toochunk-PP47MAMX.js@sahadatuk21 Thanks for sharing logs. We will investigate this further
@hvmweb Thanks for reporting the issue.
I have installed this plugin https://wordpress.org/plugins/user-private-files/ and enabled Minify html/css/js It worked fine at my end.
Are you talking about Pro version?
Anyways, the syntax error is
> Cannot use import statement outside a module
If the problem causing plugin uses modern javascript and make use of import statements, then it has to use bundler like webpack, to convert those source files into single file, so there is no need for@import