Closed nigrosimone closed 8 years ago
I was also unable to duplicate this bug. I performed a test using the plugin: Youtube Embed Plus. I even switched from "Automatic" (Minify) to Manual and used the Wizard to retrieve the .js/.css dependent files of YT Embed Plus. I then reloaded the site to ensure these dependent files were made apart of the minify files. I then disabled and removed the plugin and i did not see the aforementioned error message. Although, the .js/css YT Embed Plus files were still listed in the Manual section after the plugin was removed (which was expected since it is manual mode) but it too did not show any errors (in error_log, debug.log, nor on-screen) that the files did not exist.
Any ideas what i might be doing wrong?
Hi, i have this issue! Five months ago i have uninstalled and deleted this plugin https://it.wordpress.org/plugins/bj-lazy-load/ and each day in wp-admin i see this error (also clicking on "Hide this message"):
Recently an error occurred while creating the CSS / JS minify cache: File "/htdocs/wp-content/plugins/bj-lazy-load/js/bj-lazy-load.min.js" doesn't exist.
I have tried to flush cache but error each day reappears.
I use memcache for db, object cache and disk enhanced por caching page, and disk for minify (all set on auto). All features works, but this notice annoying me.
Hi @cesco69 ...was hoping i could recreate that same problem on my end using the same plugin. No luck :(
Firstly, your existing w3tc configuration settings are stored in 2 files within the directory: /wp-content/w3tc-config. Those files are: master.php
and master-admin.php
. Go make a backup of those.
Now, questions:
- Deactivate w3tc within Wordpress but DON'T click the Delete button.
- Jump into ftp and delete the
w3tc-cache
plugin directory by hand (doing it this way will preserve your config settings)- Download the latest master of fix-w3tc and unzip it into your /wp-content/plugins/
- Rename the extracted directory from
fix-w3tc-master
tow3-total-cache
- Activate w3tc within Wordpress (your original settings should still be there). If not then just copy your
master.php
andmaster-admin.php
back into the /wp-content/w3tc-config directory.
Now, check and see if your error message is still nagging you. What confuses me about your issue is that you see it when Minify is in "Auto". At least in "Manual" mode i can work out that if a non-existing file was present in the minify js group (under Performance > Minify) then each time someone visited a page that was waiting to be cached it would trigger an error message visible in the admin page,
2 Have you tried setting Minify > Minify error notification to "Disabled" and the problem persists?
3 Can you go into your master.php file (located under /wp-content/w3tc-config and search for "bj-lazy-load.min.js
". If you find it, is it found only within an array of the minify.js.groups key or are there other locations where the file is repeated?
Kimberly
Hi @amiga-500, i'm use the wp.org version 0.9.4.1 on Wordpress 4.6.1. I can't put w3tc-fix on my live server without a long test before...
This is my w3tc-config
:
master-admin.php
return array(
'version' => '0.9.4.1',
'browsercache.configuration_sealed' => false,
'cdn.configuration_sealed' => false,
'common.install' => 1459937809,
'common.visible_by_master_only' => true,
'dbcache.configuration_sealed' => false,
'minify.configuration_sealed' => false,
'objectcache.configuration_sealed' => false,
'pgcache.configuration_sealed' => false,
'previewmode.enabled' => false,
'varnish.configuration_sealed' => false,
'fragmentcache.configuration_sealed' => false,
'newrelic.configuration_sealed' => false,
'extensions.configuration_sealed' => array(
),
'notes.minify_error' => false,
'minify.error.last' => 'File "/htdocs/wp-content/plugins/wf-cookie-consent/js/cookiechoices.js" doesn\'t exist',
'minify.error.notification' => 'admin',
'minify.error.notification.last' => 0,
'minify.error.file' => '000006/bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js',
'track.maxcdn_signup' => 0,
'track.maxcdn_authorize' => 0,
'track.maxcdn_validation' => 0,
'notes.maxcdn_whitelist_ip' => true,
'notes.remove_w3tc' => false,
'notes.hide_extensions' => array(
),
'evaluation.reminder' => 0,
);
master.php
<?php
return array(
'version' => '0.9.4.1',
'cluster.messagebus.debug' => false,
'cluster.messagebus.enabled' => false,
'cluster.messagebus.sns.region' => '',
'cluster.messagebus.sns.api_key' => '',
'cluster.messagebus.sns.api_secret' => '',
'cluster.messagebus.sns.topic_arn' => '',
'dbcache.debug' => false,
'dbcache.enabled' => true,
'dbcache.engine' => 'memcached',
'dbcache.file.gc' => 3600,
'dbcache.file.locking' => false,
'dbcache.lifetime' => 180,
'dbcache.memcached.persistant' => true,
'dbcache.memcached.servers' => array(
0 => '127.0.0.1:11211',
),
'dbcache.reject.cookie' => array(
),
'dbcache.reject.logged' => true,
'dbcache.reject.sql' => array(
0 => 'gdsr_',
1 => 'wp_rg_',
2 => '_wp_session_',
),
'dbcache.reject.uri' => array(
),
'dbcache.reject.words' => array(
0 => '^\\s*insert\\b',
1 => '^\\s*delete\\b',
2 => '^\\s*update\\b',
3 => '^\\s*replace\\b',
4 => '^\\s*create\\b',
5 => '^\\s*alter\\b',
6 => '^\\s*show\\b',
7 => '^\\s*set\\b',
8 => '\\bautoload\\s+=\\s+\'yes\'',
9 => '\\bsql_calc_found_rows\\b',
10 => '\\bfound_rows\\(\\)',
11 => '\\bw3tc_request_data\\b',
),
'objectcache.enabled' => true,
'objectcache.debug' => false,
'objectcache.engine' => 'memcached',
'objectcache.file.gc' => 3600,
'objectcache.file.locking' => false,
'objectcache.memcached.servers' => array(
0 => '127.0.0.1:11211',
),
'objectcache.memcached.persistant' => true,
'objectcache.groups.global' => array(
0 => 'users',
1 => 'userlogins',
2 => 'usermeta',
3 => 'user_meta',
4 => 'site-transient',
5 => 'site-options',
6 => 'site-lookup',
7 => 'blog-lookup',
8 => 'blog-details',
9 => 'rss',
10 => 'global-posts',
),
'objectcache.groups.nonpersistent' => array(
0 => 'comment',
1 => 'counts',
2 => 'plugins',
),
'objectcache.lifetime' => 180,
'objectcache.purge.all' => false,
'fragmentcache.enabled' => false,
'fragmentcache.debug' => false,
'fragmentcache.engine' => 'file',
'fragmentcache.file.gc' => 3600,
'fragmentcache.file.locking' => false,
'fragmentcache.memcached.servers' => array(
0 => '127.0.0.1:11211',
),
'fragmentcache.memcached.persistant' => true,
'fragmentcache.lifetime' => 180,
'fragmentcache.groups' => array(
),
'pgcache.enabled' => true,
'pgcache.comment_cookie_ttl' => 1800,
'pgcache.debug' => false,
'pgcache.engine' => 'file_generic',
'pgcache.file.gc' => 3600,
'pgcache.file.nfs' => false,
'pgcache.file.locking' => false,
'pgcache.lifetime' => 3600,
'pgcache.memcached.servers' => array(
0 => '127.0.0.1:11211',
),
'pgcache.memcached.persistant' => true,
'pgcache.check.domain' => false,
'pgcache.cache.query' => true,
'pgcache.cache.home' => true,
'pgcache.cache.feed' => false,
'pgcache.cache.nginx_handle_xml' => false,
'pgcache.cache.ssl' => false,
'pgcache.cache.404' => false,
'pgcache.cache.flush' => false,
'pgcache.cache.headers' => array(
0 => 'Last-Modified',
1 => 'Content-Type',
2 => 'X-Pingback',
3 => 'P3P',
),
'pgcache.compatibility' => false,
'pgcache.remove_charset' => false,
'pgcache.accept.uri' => array(
0 => 'sitemap(_index)?\\.xml(\\.gz)?',
1 => '([a-z0-9_\\-]+)?sitemap\\.xsl',
2 => '[a-z0-9_\\-]+-sitemap([0-9]+)?\\.xml(\\.gz)?',
),
'pgcache.accept.files' => array(
0 => 'wp-comments-popup.php',
1 => 'wp-links-opml.php',
2 => 'wp-locations.php',
),
'pgcache.accept.qs' => array(
0 => 'stato',
1 => 'utm_source',
2 => 'utm_medium',
3 => 'utm_term',
4 => 'utm_content',
5 => 'utm_campaign',
6 => 'gclid',
),
'pgcache.reject.front_page' => false,
'pgcache.reject.logged' => true,
'pgcache.reject.logged_roles' => false,
'pgcache.reject.roles' => array(
0 => '',
),
'pgcache.reject.uri' => array(
0 => 'wp-.*\\.php',
1 => 'index\\.php',
),
'pgcache.reject.ua' => array(
0 => '',
),
'pgcache.reject.cookie' => array(
0 => 'wptouch_switch_toggle',
1 => 'idprovider',
),
'pgcache.reject.request_head' => false,
'pgcache.purge.front_page' => false,
'pgcache.purge.home' => true,
'pgcache.purge.post' => true,
'pgcache.purge.comments' => false,
'pgcache.purge.author' => false,
'pgcache.purge.terms' => false,
'pgcache.purge.archive.daily' => false,
'pgcache.purge.archive.monthly' => false,
'pgcache.purge.archive.yearly' => false,
'pgcache.purge.feed.blog' => true,
'pgcache.purge.feed.comments' => false,
'pgcache.purge.feed.author' => false,
'pgcache.purge.feed.terms' => false,
'pgcache.purge.feed.types' => array(
0 => 'rss2',
),
'pgcache.purge.postpages_limit' => 10,
'pgcache.purge.pages' => array(
0 => '',
),
'pgcache.purge.sitemap_regex' => '([a-z0-9_\\-]*?)sitemap([a-z0-9_\\-]*)?\\.xml',
'pgcache.prime.enabled' => false,
'pgcache.prime.interval' => 900,
'pgcache.prime.limit' => 10,
'pgcache.prime.sitemap' => '/sitemap_index.xml',
'pgcache.prime.post.enabled' => false,
'minify.enabled' => true,
'minify.auto' => true,
'minify.debug' => false,
'minify.engine' => 'file',
'minify.file.gc' => 86400,
'minify.file.nfs' => false,
'minify.file.locking' => false,
'minify.memcached.servers' => array(
0 => '127.0.0.1:11211',
),
'minify.memcached.persistant' => true,
'minify.rewrite' => true,
'minify.options' => array(
),
'minify.symlinks' => array(
),
'minify.lifetime' => 86400,
'minify.upload' => true,
'minify.html.enable' => false,
'minify.html.engine' => 'html',
'minify.html.reject.feed' => false,
'minify.html.inline.css' => false,
'minify.html.inline.js' => false,
'minify.html.strip.crlf' => false,
'minify.html.comments.ignore' => array(
0 => 'google_ad_',
1 => 'RSPEAK_',
),
'minify.css.enable' => true,
'minify.css.engine' => 'css',
'minify.css.combine' => false,
'minify.css.strip.comments' => false,
'minify.css.strip.crlf' => false,
'minify.css.imports' => '',
'minify.css.groups' => array(
),
'minify.js.enable' => true,
'minify.js.engine' => 'js',
'minify.js.combine.header' => false,
'minify.js.header.embed_type' => 'blocking',
'minify.js.combine.body' => false,
'minify.js.body.embed_type' => 'blocking',
'minify.js.combine.footer' => false,
'minify.js.footer.embed_type' => 'blocking',
'minify.js.strip.comments' => false,
'minify.js.strip.crlf' => false,
'minify.js.groups' => array(
),
'minify.yuijs.path.java' => 'java',
'minify.yuijs.path.jar' => 'yuicompressor.jar',
'minify.yuijs.options.line-break' => 5000,
'minify.yuijs.options.nomunge' => false,
'minify.yuijs.options.preserve-semi' => false,
'minify.yuijs.options.disable-optimizations' => false,
'minify.yuicss.path.java' => 'java',
'minify.yuicss.path.jar' => 'yuicompressor.jar',
'minify.yuicss.options.line-break' => 5000,
'minify.ccjs.path.java' => 'java',
'minify.ccjs.path.jar' => 'compiler.jar',
'minify.ccjs.options.compilation_level' => 'SIMPLE_OPTIMIZATIONS',
'minify.ccjs.options.formatting' => '',
'minify.csstidy.options.remove_bslash' => true,
'minify.csstidy.options.compress_colors' => true,
'minify.csstidy.options.compress_font-weight' => true,
'minify.csstidy.options.lowercase_s' => false,
'minify.csstidy.options.optimise_shorthands' => 1,
'minify.csstidy.options.remove_last_;' => false,
'minify.csstidy.options.case_properties' => 1,
'minify.csstidy.options.sort_properties' => false,
'minify.csstidy.options.sort_selectors' => false,
'minify.csstidy.options.merge_selectors' => 2,
'minify.csstidy.options.discard_invalid_properties' => false,
'minify.csstidy.options.css_level' => 'CSS2.1',
'minify.csstidy.options.preserve_css' => false,
'minify.csstidy.options.timestamp' => false,
'minify.csstidy.options.template' => 'default',
'minify.htmltidy.options.clean' => false,
'minify.htmltidy.options.hide-comments' => true,
'minify.htmltidy.options.wrap' => 0,
'minify.reject.logged' => false,
'minify.reject.ua' => array(
0 => 'MSIE 9',
1 => 'MSIE 8',
2 => 'MSIE 7',
),
'minify.reject.uri' => array(
0 => '',
),
'minify.reject.files.js' => array(
0 => '',
),
'minify.reject.files.css' => array(
0 => '/wp-includes/css/dashicons.min.css',
1 => '/wp-includes/css/admin-bar.min.css',
2 => '/wp-content/plugins/wordpress-seo-premium/css/adminbar-320.min.css',
3 => '/wp-content/themes/Avada/assets/fonts/fontawesome/font-awesome.css',
4 => '/wp-content/themes/Avada/ilightbox.css',
),
'minify.cache.files' => array(
0 => 'https://ajax.googleapis.com',
),
'cdn.enabled' => false,
'cdn.debug' => false,
'cdn.engine' => 'maxcdn',
'cdn.uploads.enable' => true,
'cdn.includes.enable' => true,
'cdn.includes.files' => '*.css;*.js;*.gif;*.png;*.jpg;*.xml',
'cdn.theme.enable' => true,
'cdn.theme.files' => '*.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less',
'cdn.minify.enable' => true,
'cdn.custom.enable' => true,
'cdn.custom.files' => array(
0 => 'favicon.ico',
1 => '{wp_content_dir}/gallery/*',
2 => '{wp_content_dir}/uploads/avatars/*',
3 => '{plugins_dir}/wordpress-seo/css/xml-sitemap.xsl',
4 => '{plugins_dir}/wp-minify/min*',
5 => '{plugins_dir}/*.js',
6 => '{plugins_dir}/*.css',
7 => '{plugins_dir}/*.gif',
8 => '{plugins_dir}/*.jpg',
9 => '{plugins_dir}/*.png',
),
'cdn.import.external' => false,
'cdn.import.files' => '',
'cdn.queue.interval' => 900,
'cdn.queue.limit' => 25,
'cdn.force.rewrite' => false,
'cdn.autoupload.enabled' => false,
'cdn.autoupload.interval' => 3600,
'cdn.canonical_header' => false,
'cdn.ftp.host' => '',
'cdn.ftp.user' => '',
'cdn.ftp.pass' => '',
'cdn.ftp.path' => '',
'cdn.ftp.pasv' => false,
'cdn.ftp.domain' => array(
),
'cdn.ftp.ssl' => 'auto',
'cdn.s3.key' => '',
'cdn.s3.secret' => '',
'cdn.s3.bucket' => '',
'cdn.s3.cname' => array(
),
'cdn.s3.ssl' => 'auto',
'cdn.cf.key' => '',
'cdn.cf.secret' => '',
'cdn.cf.bucket' => '',
'cdn.cf.id' => '',
'cdn.cf.cname' => array(
),
'cdn.cf.ssl' => 'auto',
'cdn.cf2.key' => '',
'cdn.cf2.secret' => '',
'cdn.cf2.id' => '',
'cdn.cf2.cname' => array(
),
'cdn.cf2.ssl' => '',
'cdn.rscf.user' => '',
'cdn.rscf.key' => '',
'cdn.rscf.location' => 'us',
'cdn.rscf.container' => '',
'cdn.rscf.cname' => array(
),
'cdn.rscf.ssl' => 'auto',
'cdn.azure.user' => '',
'cdn.azure.key' => '',
'cdn.azure.container' => '',
'cdn.azure.cname' => array(
),
'cdn.azure.ssl' => 'auto',
'cdn.mirror.domain' => array(
),
'cdn.mirror.ssl' => 'auto',
'cdn.netdna.alias' => '',
'cdn.netdna.consumerkey' => '',
'cdn.netdna.consumersecret' => '',
'cdn.netdna.authorization_key' => '',
'cdn.netdna.domain' => array(
),
'cdn.netdna.ssl' => 'auto',
'cdn.netdna.zone_id' => 0,
'cdn.maxcdn.authorization_key' => '',
'cdn.maxcdn.domain' => array(
),
'cdn.maxcdn.ssl' => 'auto',
'cdn.maxcdn.zone_id' => 0,
'cdn.cotendo.username' => '',
'cdn.cotendo.password' => '',
'cdn.cotendo.zones' => array(
),
'cdn.cotendo.domain' => array(
),
'cdn.cotendo.ssl' => 'auto',
'cdn.akamai.username' => '',
'cdn.akamai.password' => '',
'cdn.akamai.email_notification' => array(
),
'cdn.akamai.action' => 'invalidate',
'cdn.akamai.zone' => 'production',
'cdn.akamai.domain' => array(
),
'cdn.akamai.ssl' => 'auto',
'cdn.edgecast.account' => '',
'cdn.edgecast.token' => '',
'cdn.edgecast.domain' => array(
),
'cdn.edgecast.ssl' => 'auto',
'cdn.att.account' => '',
'cdn.att.token' => '',
'cdn.att.domain' => array(
),
'cdn.att.ssl' => 'auto',
'cdn.reject.admins' => false,
'cdn.reject.logged_roles' => false,
'cdn.reject.roles' => array(
),
'cdn.reject.ua' => array(
),
'cdn.reject.uri' => array(
),
'cdn.reject.files' => array(
0 => '{uploads_dir}/wpcf7_captcha/*',
1 => '{uploads_dir}/imagerotator.swf',
2 => '{plugins_dir}/wp-fb-autoconnect/facebook-platform/channel.html',
),
'cdn.reject.ssl' => false,
'cdncache.enabled' => false,
'varnish.enabled' => false,
'varnish.debug' => false,
'varnish.servers' => array(
0 => '',
),
'browsercache.enabled' => true,
'browsercache.no404wp' => false,
'browsercache.no404wp.exceptions' => array(
0 => 'robots\\.txt',
1 => '[a-z0-9_\\-]*sitemap[a-z0-9_\\-]*\\.(xml|xsl|html)(\\.gz)?',
),
'browsercache.cssjs.last_modified' => true,
'browsercache.cssjs.compression' => true,
'browsercache.cssjs.expires' => true,
'browsercache.cssjs.lifetime' => 2592000,
'browsercache.cssjs.nocookies' => false,
'browsercache.cssjs.cache.control' => true,
'browsercache.cssjs.cache.policy' => 'cache_public_maxage',
'browsercache.cssjs.etag' => false,
'browsercache.cssjs.w3tc' => false,
'browsercache.cssjs.replace' => false,
'browsercache.html.compression' => true,
'browsercache.html.last_modified' => true,
'browsercache.html.expires' => true,
'browsercache.html.lifetime' => 43200,
'browsercache.html.cache.control' => true,
'browsercache.html.cache.policy' => 'cache_public_maxage',
'browsercache.html.etag' => false,
'browsercache.html.w3tc' => false,
'browsercache.html.replace' => false,
'browsercache.other.last_modified' => true,
'browsercache.other.compression' => true,
'browsercache.other.expires' => true,
'browsercache.other.lifetime' => 31536000,
'browsercache.other.nocookies' => false,
'browsercache.other.cache.control' => true,
'browsercache.other.cache.policy' => 'cache_public_maxage',
'browsercache.other.etag' => false,
'browsercache.other.w3tc' => false,
'browsercache.other.replace' => false,
'browsercache.timestamp' => '1466527520',
'browsercache.replace.exceptions' => array(
0 => '',
),
'mobile.enabled' => true,
'mobile.rgroups' => array(
'high' => array(
'theme' => '',
'enabled' => false,
'redirect' => '',
'agents' => array(
0 => 'acer\\ s100',
1 => 'android',
2 => 'archos5',
3 => 'bada',
4 => 'bb10',
5 => 'blackberry9500',
6 => 'blackberry9530',
7 => 'blackberry9550',
8 => 'blackberry\\ 9800',
9 => 'cupcake',
10 => 'docomo\\ ht\\-03a',
11 => 'dream',
12 => 'froyo',
13 => 'googlebot-mobile',
14 => 'htc\\ hero',
15 => 'htc\\ magic',
16 => 'htc_dream',
17 => 'htc_magic',
18 => 'iemobile/7.0',
19 => 'incognito',
20 => 'ipad',
21 => 'iphone',
22 => 'ipod',
23 => 'kindle',
24 => 'lg\\-gw620',
25 => 'liquid\\ build',
26 => 'maemo',
27 => 'mot\\-mb200',
28 => 'mot\\-mb300',
29 => 'nexus\\ 7',
30 => 'nexus\\ one',
31 => 'opera\\ mini',
32 => 's8000',
33 => 'samsung\\-s8000',
34 => 'series60.*webkit',
35 => 'series60/5\\.0',
36 => 'sonyericssone10',
37 => 'sonyericssonu20',
38 => 'sonyericssonx10',
39 => 't\\-mobile\\ mytouch\\ 3g',
40 => 't\\-mobile\\ opal',
41 => 'tattoo',
42 => 'touch',
43 => 'webmate',
44 => 'webos',
),
),
'low' => array(
'theme' => '',
'enabled' => false,
'redirect' => '',
'agents' => array(
0 => '240x320',
1 => '2\\.0\\ mmp',
2 => '\\bppc\\b',
3 => 'alcatel',
4 => 'amoi',
5 => 'asus',
6 => 'au\\-mic',
7 => 'audiovox',
8 => 'avantgo',
9 => 'benq',
10 => 'bird',
11 => 'blackberry',
12 => 'blazer',
13 => 'cdm',
14 => 'cellphone',
15 => 'danger',
16 => 'ddipocket',
17 => 'docomo',
18 => 'dopod',
19 => 'elaine/3\\.0',
20 => 'ericsson',
21 => 'eudoraweb',
22 => 'fly',
23 => 'haier',
24 => 'hiptop',
25 => 'hp\\.ipaq',
26 => 'htc',
27 => 'huawei',
28 => 'i\\-mobile',
29 => 'iemobile',
30 => 'iemobile/7',
31 => 'iemobile/9',
32 => 'j\\-phone',
33 => 'kddi',
34 => 'konka',
35 => 'kwc',
36 => 'kyocera/wx310k',
37 => 'lenovo',
38 => 'lg',
39 => 'lg/u990',
40 => 'lge\\ vx',
41 => 'midp',
42 => 'midp\\-2\\.0',
43 => 'mmef20',
44 => 'mmp',
45 => 'mobilephone',
46 => 'mot\\-v',
47 => 'motorola',
48 => 'msie\\ 10\\.0',
49 => 'netfront',
50 => 'newgen',
51 => 'newt',
52 => 'nintendo\\ ds',
53 => 'nintendo\\ wii',
54 => 'nitro',
55 => 'nokia',
56 => 'novarra',
57 => 'o2',
58 => 'openweb',
59 => 'opera\\ mobi',
60 => 'opera\\.mobi',
61 => 'p160u',
62 => 'palm',
63 => 'panasonic',
64 => 'pantech',
65 => 'pdxgw',
66 => 'pg',
67 => 'philips',
68 => 'phone',
69 => 'playbook',
70 => 'playstation\\ portable',
71 => 'portalmmm',
72 => 'proxinet',
73 => 'psp',
74 => 'qtek',
75 => 'sagem',
76 => 'samsung',
77 => 'sanyo',
78 => 'sch',
79 => 'sch\\-i800',
80 => 'sec',
81 => 'sendo',
82 => 'sgh',
83 => 'sharp',
84 => 'sharp\\-tq\\-gx10',
85 => 'small',
86 => 'smartphone',
87 => 'softbank',
88 => 'sonyericsson',
89 => 'sph',
90 => 'symbian',
91 => 'symbian\\ os',
92 => 'symbianos',
93 => 'toshiba',
94 => 'treo',
95 => 'ts21i\\-10',
96 => 'up\\.browser',
97 => 'up\\.link',
98 => 'uts',
99 => 'vertu',
100 => 'vodafone',
101 => 'wap',
102 => 'willcome',
103 => 'windows\\ ce',
104 => 'windows\\.ce',
105 => 'winwap',
106 => 'xda',
107 => 'xoom',
108 => 'zte',
),
),
'msie' => array(
'theme' => 'Avada/Avada-Child-Theme',
'enabled' => true,
'redirect' => '',
'agents' => array(
0 => 'msie\\s[789]',
),
),
),
'referrer.enabled' => false,
'referrer.rgroups' => array(
'search_engines' => array(
'theme' => '',
'enabled' => false,
'redirect' => '',
'referrers' => array(
0 => 'google\\.com',
1 => 'yahoo\\.com',
2 => 'bing\\.com',
3 => 'ask\\.com',
4 => 'msn\\.com',
),
),
),
'common.support' => '',
'common.install' => 0,
'common.tweeted' => false,
'config.check' => true,
'config.path' => '',
'widget.latest.items' => 3,
'widget.latest_news.items' => 5,
'widget.pagespeed.enabled' => false,
'widget.pagespeed.key' => '',
'notes.wp_content_changed_perms' => true,
'notes.wp_content_perms' => false,
'notes.theme_changed' => false,
'notes.wp_upgraded' => false,
'notes.plugins_updated' => false,
'notes.cdn_upload' => false,
'notes.cdn_reupload' => false,
'notes.need_empty_pgcache' => true,
'notes.need_empty_minify' => false,
'notes.need_empty_objectcache' => false,
'notes.root_rules' => true,
'notes.rules' => true,
'notes.pgcache_rules_wpsc' => true,
'notes.support_us' => false,
'notes.no_curl' => true,
'notes.no_zlib' => true,
'notes.zlib_output_compression' => true,
'notes.no_permalink_rules' => true,
'notes.browsercache_rules_no404wp' => true,
'timelimit.email_send' => 180,
'timelimit.varnish_purge' => 300,
'timelimit.cache_flush' => 600,
'timelimit.cache_gc' => 600,
'timelimit.cdn_upload' => 600,
'timelimit.cdn_delete' => 300,
'timelimit.cdn_purge' => 300,
'timelimit.cdn_import' => 600,
'timelimit.cdn_test' => 300,
'timelimit.cdn_container_create' => 300,
'timelimit.domain_rename' => 120,
'timelimit.minify_recommendations' => 600,
'minify.auto.filename_length' => 150,
'minify.auto.disable_filename_length_test' => false,
'common.instance_id' => 1417011537,
'common.force_master' => true,
'newrelic.enabled' => false,
'newrelic.api_key' => '',
'newrelic.account_id' => '',
'newrelic.application_id' => 0,
'newrelic.appname' => '',
'newrelic.accept.logged_roles' => true,
'newrelic.accept.roles' => array(
0 => 'contributor',
),
'newrelic.use_php_function' => true,
'notes.new_relic_page_load_notification' => true,
'newrelic.appname_prefix' => 'Child Site - ',
'newrelic.merge_with_network' => true,
'newrelic.cache_time' => 5,
'newrelic.enable_xmit' => false,
'newrelic.use_network_wide_id' => false,
'pgcache.late_init' => false,
'newrelic.include_rum' => true,
'extensions.settings' => array(
'genesis.theme' => array(
'wp_head' => '0',
'genesis_header' => '1',
'genesis_do_nav' => '0',
'genesis_do_subnav' => '0',
'loop_front_page' => '1',
'loop_terms' => '1',
'flush_terms' => '1',
'loop_single' => '1',
'loop_single_excluded' => '',
'loop_single_genesis_comments' => '0',
'loop_single_genesis_pings' => '0',
'sidebar' => '0',
'sidebar_excluded' => '',
'genesis_footer' => '1',
'wp_footer' => '0',
'reject_logged_roles' => '1',
'reject_logged_roles_on_actions' => array(
0 => 'genesis_loop',
1 => 'wp_head',
2 => 'wp_footer',
),
'reject_roles' => array(
0 => 'administrator',
),
),
'feedburner' => array(
'urls' => '',
),
),
'extensions.active' => array(
'wordpress-seo' => 'w3-total-cache/extensions/WordPressSEO.php',
),
'plugin.license_key' => '',
'plugin.type' => '',
);
thank you!
Thanks for the details. Hmmm...i don't see bj-lazy-load.min.js
in your config files which is very surprising and enlightening. At least that's out of the way.
If you end up being able to recreate the same problem on your local machine i am curious if you can temporarily disable Minify (you'll also have to clear your page cache) and with the use of an in-browser debugger like Firebug, i'd like you verify that a request for bj-lazy-load.min.js
isn't being done by your html page. Alternatively, you can just view the source on the page and do a search for bj-lazy-load.min.js
. This should help narrow things down s'more.
I view the source of the pages and bj-lazy-load.min.js
not exists. I have also searched in the db, but nothing.
I have tried to replicate on my local machine without success.
This is my live environment
Wordpress 4.6.1 Multisite (4 site path based, eg /es, /en, /fr, /de, /pt)
Server: Apache 2.4 PHP: 5.6.18 MySQL: 5.6.28
After click on "Hide this message" the error appear in less or more 24 hours. Yesterday i have restarted memcache for flush all cache, but today the error always appear.
Thanks very much for all the details (including the links to people experiencing the same). I will do some more digging and hopefully i can recreate it eventually on my side.
I will keep you updated and ask you more questions as i learn more...
As of right now you've given me some good hints.
When set to "auto" w3tc starts by buffering the page into a variable before parsing out each external js and css file to process. Because it is still finding bj-lazy-load.min.js it seems to think it is part of your original page before it begins the whole caching and minifying. It's as if its being pulled in or added to your page late by someone from somewhere like a database or another plugin. Anyway, i will go do some more researching and get back to you.
If you learn anything more just let me know.
Kimberly
Thanks for your time Kimberly! i'm here for responding your questions. I'm not an expert, but it seem a problem with the page in the browser cache (or crawler's cache like google) that call old scripts... but it is very strange.
Hey @cesco69, thanks for sharing this info with us.
Looking at the following lines:
'minify.error.last' => 'File "/htdocs/wp-content/plugins/wf-cookie-consent/js/cookiechoices.js" doesn\'t exist',
...
'minify.error.file' => '000006/bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js',
Are you getting any error in the backed about a missing "cookiechoices.js" too?
The minify.error.file
resolves to:
1/framework/js/menu-in-post/script.min,1/framework/js/abbonamenti/script.min,1/wf-cookie-consent/js/cookiechoices
Any idea if the above file /htdocs/wp-content/plugins/wf-cookie-consent/js/cookiechoices.js
exists on your server, or if the plugin is installed?
I'm not an expert, but it seem a problem with the page in the browser cache (or crawler's cache like google) that call old scripts... but it is very strange.
This could very much be the case. You can probably trigger the error by visiting:
[your-site]/wp-content/plugins/w3-total-cache/pub/minify.php?file=bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js
Thanks, Charles
This could very much be the case. You can probably trigger the error by visiting: [your-site]/wp-content/plugins/w3-total-cache/pub/minify.php?file=bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js
YES!!! it cause the error!!!!
the same happens if i call:
Any idea if the above file /htdocs/wp-content/plugins/wf-cookie-consent/js/cookiechoices.js exists on your server, or if the plugin is installed?
I have uninstalled and deleted wf-cookie-consent
plugin, 5 months ago! now, it not exists anymore on my server but each day i see the error.
ok, i think the problem is client cache or crawler/bot cache.
@charlesLF @amiga-500, for reproduce the issue:
Ran some more tests using generated fake encoded minify file names that include non-existent js files and finally i was able to recreate the same notification messages at will.
So what's happening is this:
When a direct call like:
http://my-site.com/de/wp-content/cache/minify/000006/bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js
is made and this minify file doesn't exist w3tc tries to regenerate it by decoding its name (for this example that would be: bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G
) into its .js (or .css) constituent file names. It then attempts to buffer and cache each of those constituent files. If one of these files in that list no longer exists it generates an admin side notification error message (e.g., Recently an error occurred while creating the CSS / JS minify cache: File "XXX" doesn't exist
) but continues to regenerate the encoded minify file and write it to disk (in its minify folder).
Because that minify file now exists it will no longer generate that notification message. But if that file gets removed (i.e., the cache is cleared) then the same notification message will appear again if someone attempts to retrieve that missing minified file.
So, this all comes down to someone is attempting to retrieve a missing minified file. And the only one who would be doing that is exactly what you said @cesco69 : bots, external links (ie, in google search result or other website), or stale client-side browser caches.
It seems this is not a w3tc bug, and the solution may require a site to use one or more RewriteRule
rules in their .htaccess file to block out these older (missing) minify encoded files (i.e., bcpRCoAwDAPQCznLTiRd6bDK2rFOdn0nfgl-hSQvAhLhlhsWHtZOOBwK6xVEQzXv4NSk9rWILvHHYkqms2uXLx05kNkpPEN9_o9-F9pNiP0G.js
would be blocked if it doesnt exist via RewriteCond !-f
with RewriteRule
)
Regards, Kimberly
Wow! Good work guys!
I have a question, why only few people have this issue?
Delete a plugin with a minify option enabled is a very common scenario.
I have a question, why only few people have this issue?
I believe its because the Performance > Minify > General > Minify Error Notification drop down box is set to "Disabled
" by default when people install w3tc. So one would have to manually set this to Admin Notification
(or one of the other options) to ever know there was a problem with say a missing .js file at all. And so i doubt most people have bothered to change this from its disabled default -- hence, only a few people with this issue.
@amiga-500 true!
Maybe we should add a line of text to explain this error so that people don't get confused about it in the future.
Something like:
File "XXX" doesn't exist. Make sure that this file is not being enqueued on your website by a plugin or theme. Otherwise, you can safely ignore this message.
... or some variation of that.
Maybe we should add a line of text to explain this error so that people don't get confused about it in the future.
That's true. But, if a popup saying they can safely ignore the message were to happen, I wonder if seeing the "File doesn't exist" notification message endlessly (and stacked with potentially many files) forever will annoy them and might make them second guess (ie, wonder if there really is a serious problem). I believe @cesco69 mentioned this was his main peeve (he hated seeing this message for the last 5 months despite it not causing any problems). But he still wants to keep the notification system active for other issues.
What about this alternate proposal...
Firstly, here are the things that seem to be true about this notification message:
Admin Notification
That being said, it would be possible to set it so that this missing file notification message will not show, if and only if, both of these conditions are true:
notes.plugins_updated == false
and notes.need_empty_pgcache == false
The notes.plugins_updated
and notes.need_empty_pgcache
indicate that something about the site has changed..e.g. a plugin has updated or deleted. If this happens it's important that the site owner clear their page cache because their is a potential chance that a minify file (within a cached page) may be missing something. And so if either boolean is true then the notification should be allowed to be shown. But if they are both false this indicates the site should be in solid working order and so a missing file would seem to indicate an old cache request done externally, and so no notification should be shown. Of course, this assumes that the site owner (or another plugin) didn't accidentally delete a necessary js/css file in the first pace. But in that case, even if minify were turned off the site would still be whining about a missing file. So that's not relevant.
One thing i should note though. When minify is in Manual
mode an extra check will need to be done to verify that the missing file(s) is not part of the JS/CSS File Management group list (an area located in the Minify section). If it is then the notification message should still show since the error is the result of the user forgetting to remove it from the group.
Am i overthinking this and it should instead simply be a basic message telling users to ignore the missing file(s)?
Cheers, Kimberly
Another idea is improve error message with some information like url requested, user agent and referral.
I'll write something up in the coming days.
Ok, how about this: We can borrow the "key_version" logic from the DB/Object cache.
Here's what we can do:
I'm just thinking out loud in here, so comments are welcome...
@charlesLF good idea...! i think storing the key in master-admin.php is the best option.
@charlesLF yea i like that approach too! Very clean and efficient.
Hi guys. I went ahead and wrote the code that implemented what @charlesLF was talking about.
I ran several tests (in auto and manual mode) and it seems to work very well.
This is great! Thanks for the implementation, @amiga-500
After deletion a plugin/theme, w3tc going in error:
Recently an error occurred while creating the CSS / JS minify cache: File "XXX" doesn't exist.
where XXX is the path of an assets of old plugin/theme.
the error persists after flushing all cache (object, db, minify, page).
I've seen a few old thread about this but no solution. In on thread Frederick said it would be fixed in a future version. That was a year ago, and obviously it's not fixed.