donbowman
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] 5.9.1 breaks wp-json interfacegreat! will try.
Forum: Plugins
In reply to: [The Events Calendar] 5.9.1 breaks wp-json interfacehttps://bugs.php.net/bug.php?id=80699
is the underlying reason.
array_map no longer passes by reference.
reset() requires reference.e.g. REST/V1/Post_Repository.php:92
adding:
public static function _reset($arr) { return reset($arr); }and changing to e.g.
$meta = array_map( ‘Tribe__Events__REST__V1__Post_Repository::_reset’, get_post_custom( $event_id ));resolves.
- This reply was modified 4 years, 9 months ago by donbowman.
Forum: Plugins
In reply to: [Lazy Load for Videos] Video’s Don’t Playtried. it works!
the nv-iframe-embed comes from the theme (neve-pro)
This s great!
Forum: Plugins
In reply to: [Lazy Load for Videos] Video’s Don’t PlayDoes anyone else see this and/or have a suggested solution?
https://www.agilicus.com/zero-trust/
shows an example. The thumbnail is there, when i click it, the audio starts, but no video is visible. When i resize window its then showing correctly.
Forum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessSo that indeed resolves the wp-stateless, thanks very much!
It does have an error on startup now:
[09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $href in /app/wp-content/plugins/fast-velocity-minify/inc/frontend.php on line 683" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP Stack trace:" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 1. shutdown_action_hook() /app/wp-includes/load.php:0" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 2. do_action($tag = 'shutdown') /app/wp-includes/load.php:1072" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 3. WP_Hook->do_action($args = [0 => '']) /app/wp-includes/plugin.php:484" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 4. WP_Hook->apply_filters($value = '', $args = [0 => '']) /app/wp-includes/class-wp-hook.php:316" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 5. wp_ob_end_flush_all('') /app/wp-includes/class-wp-hook.php:292" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 6. ob_end_flush() /app/wp-includes/functions.php:4757" [09-May-2021 00:21:56] WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP 7. fvm_process_page($html = '<!DOCTYPE html>\n<html lang="en-CA" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">\n\n<head>\n\t\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">\n\t<link rel="profile" href="http://gmpg.org/xfn/11">\n\t\t<script>\nvar __wpcal_dist_url = "http://localhost/wp-content/plugins/wpcal/dist/";\n</script>\n\t\t<!-- Manifest added by SuperPWA - Progressive Web Apps Plugin For WordPress -->\n<link rel="ma', 9) /app/wp-includes/functions.php:4757"which is here:
if(!isset($fvm_settings['js']['min_disable']) || (isset($fvm_settings['js']['min_disable'])&& $fvm_settings['js']['min_disable'] != true)) {^M ^M # skip third party scripts, unless allowed^M $allowed = array($fvm_urls['wp_domain'], '/ajax.aspnetcdn.com/ajax/', '/ajax.googleapis.com/ajax/libs/', '/cdnjs.cloudflare.com/ajax/libs/');^M if(str_replace($allowed, '', $href) == $href) {^M unset($allscripts[$k]);^M continue;^M }^M ^M # force render blocking^MForum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessyou’re the best!
I will try this shortly.
Forum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessok thanks.
if i can help let me know, i can try some patch or modify some code as needed.cheers!
Forum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessyes, the uploads is now ‘trapped’ by wp-stateless, its not a directory. when something tries to upload to it, wp-stateless intercepts and moves to gcs, when you try to read, it intercepts and fetches.
other directories still exist, they are ephemeral. this is the strategy used by the caching plugins. e.g. i use wp-super-cache. it doesn’t create pretend uploads, so it doesn’t interact w/ wp-stateless.
/app/wp-content/uploads openresty@agilicus-www-nbr6cpjykgz-8f49d865c-6m5j2:/app/wp-content/uploads$ ls openresty@agilicus-www-nbr6cpjykgz-8f49d865c-6m5j2:/app/wp-content/uploads$the directory is empty.
the older version of fvm used cache/fvm, which is just fine (below):
/app/wp-content/cache$ find . . ./supercache ./supercache/www.agilicus.com ./supercache/www.agilicus.com/helm-kubernetes-and-the-immutable-configmap-a-design-pattern ./supercache/www.agilicus.com/helm-kubernetes-and-the-immutable-configmap-a-design-pattern/index-https.html ./supercache/www.agilicus.com/feed ./supercache/www.agilicus.com/feed/podcast ./supercache/www.agilicus.com/feed/podcast/meta-wp-cache-a752d67f7343c266c12abe81712050e3.php ./supercache/www.agilicus.com/feed/podcast/wp-cache-a752d67f7343c266c12abe81712050e3.php ./supercache/www.agilicus.com/about ./supercache/www.agilicus.com/about/index-https.html ./supercache/www.agilicus.com/index-https.html ./supercache/www.agilicus.com/latency-and-load-testing-web-site ./supercache/www.agilicus.com/book-calendar-meeting ./supercache/www.agilicus.com/book-calendar-meeting/don-bowman-agilicus-15-min ./supercache/www.agilicus.com/book-calendar-meeting/don-bowman-agilicus-15-min/index-https.html ./fvm ./fvm/min ./fvm/min/www.agilicus.com ./fvm/min/_ ./fvm/min/_/1619637265-cbc0990829804669908c521bc837b9e1763aad96.min.css ./fvm/min/_/1619637265-0b5383553ea8b9eb574e6deea75e9dc037f5a22b.min.css ./fvm/min/_/1619637265-21d67a5d652b817b44804e1c4e5e8376c38a7ad3.min.css ./fvm/min/_/1619637265-629a80f3d83f2b3df4bdc252defe4607bbb65a0f.footer.min.js ./fvm/min/_/1619637265-e4d4bc81fa10e8f79a82d70dee5fb4aa77f88bd5.min.css ./fvm/min/_/1619637265-718efb94ede6bb7ba2838ea5bafe6d07c7bcf269.min.css ./fvm/min/_/1619637265-cd98d2518ce30332dc7c5cddc1c9e6e3992f2ff4.min.css ./fvm/min/_/1619637265-88e95a738b6cbbd044e4077eef77c75149f5d433.min.css ./fvm/min/_/1619637265-45e41865399113e25dbe3a30b15c5b4c37cb2029.min.css ./fvm/min/_/1619637265-69f365242649b4510e895920d7ccfd853dc3a733.min.css ./fvm/min/_/1619637265-a2cb154bbb8bcf4e60d2104be57449966abf0d35.min.css ./fvm/min/_/1619637265-0aa956ca7079442eb055945a8c3995d95f5e683c.min.css ./fvm/min/_/1619637265-53cb355f8699f6880c4d998c3827167ec5b2a69d.min.css ./fvm/min/_/1619637265-bc1b3dfa3e4ad3719d65f9ca4cfc82a0811e293f.min.css ./fvm/min/_/1619637265-735b239b061422da47b439e72aa7d9dabb7de83c.min.css ./fvm/min/_/1619637265-08d99f8ffd65fbde5fa4f17d7dd7b28d7225e873.min.css ./fvm/min/_/1619637265-075b41ee8663a8dc3df3516756de4ecc15b91f93.footer.min.js ./fvm/min/_/1619637265-0d92c25643f009c825762f1f8b10b32497884362.min.css ./fvm/min/_/1619637265-67fc190960dcbb6d2187a181908938a6a65b42de.min.css ./fvm/min/_/1619637265-5ad52a8f62f49aa1c229489d2f9e102f8830e1ac.footer.min.js ./fvm/min/_/1619637265-43f86cdbd96b869ff8c311b34036fff2ee28b655.min.css ./fvm/min/_/1619637265-6b569f5dedd3c27527606cdb1dc5fb76d6419f78.min.css ./fvm/min/_/1619637265-887cf5768ade1714307845a22cf1b27afe65e64a.min.css ./fvm/min/_/1619637265-273275cbee9183f7ae8f2f247b2fd65359249634.min.css ./fvm/min/_/1619637265-e588b37cb32452303ed3e4e7af0356b33dc47450.min.css ./fvm/min/_/1619637265-f30632bc1a36b08c55222b69f1ddc2629ba88f59.min.css ./fvm/min/_/1619637265-55ec14db0cc7925c3b1ff7ee3b57cb4cd5fef7b1.min.css ./fvm/min/_/1619637265-971042e407af427b3653e1f50d42a8fef471fcc4.min.css ./fvm/min/_/1619637265-fb1be8a911df7f9aa968be0a2975ecb707406667.header.min.js ./fvm/min/_/1619637265-a053c3bc430733bfc0109bf995b555483449bb8e.min.css ./fvm/min/_/1619637265-4358be4a9fc8fded43291592987d846e48d06a10.footer.min.js ./fvm/min/_/1619637265-06295d01cfd1fa60a7f68a811b67874b36e6a53b.min.css ./fvm/min/_/1619637265-7d7ae0a5f6a33182f8a9f182dba90bfa1162161a.min.css ./fvm/min/_/1619637265-7e31c4c4eb414b60d6292c4d895116f0d8083356.min.css ./fvm/min/_/1619637265-4952ab70bce37b204f4aa129830c0dd6728a553c.min.css ./fvm/min/_/1619637265-17f60038fee950491dd9563c251af13d3ec408b2.min.css ./fvm/min/_/1619637265-1c2563afda10ba6e7e5985527762153354767b19.min.css ./fvm/min/_/1619637265-0fbe6ae79c39c2f886f1fffb43703c15b54589d9.min.cssForum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessits not that simple.
there is no uploads dir, it is stored into google cloud storage. its not a local directory.so image uploads etc are stored to gs://agilicus/www,and retrieved on fetch. its not a filesystem.
something in fvm is not interoperating, fvm thinks its a directory to write.
i have 2 concurrent copies of wordpress running, they don’t share a filesystem, so wp-stateless allows this.
until this change, fvm used a directory other than the uploads, so that was fine, each instance made its own cache.
after this change, it is wanting to upload the cached copy to GCS, but, only half doing so.
Forum: Plugins
In reply to: [Fast Velocity Minify] wp-stateless broken by 3.1.5so there’s no need for the FVM to write to wp-stateless. E.g. i don’t need its rewritten output files to be stored in the wp-stateless.
But as of 3.1.5 it now interacts with it.there is no filesystem gs://, this is the internal path in wp-stateless (its a google gcs bucket, not a directory).
I think FVM should work more like e.g. WP Super Cache, which its own dir for its output files.
I can’t use the backup mode. in my environment I run 2 copies of wordpress (active/active for redundancy). So the only local files are either from the container, or, ephemeral. If i turn on backup mode then only one of them has a copy of the upload.
indeed the error is the gs:// path output. Something is writing to the fileystem, but with an internal path of wp-stateless.
Forum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessso i see 3.1.6 is there.
wp plugin list |grep fast fast-velocity-minify active none 3.1.6but, it does not work. Note that it has the bucket name (gs://) rather than the filesystem path.
9. is_dir($filename = 'gs://agilicus/www/fvm-cache/min') /app/wp-content/plugins/fast-velocity-minify/inc/common.php:407" Warning: is_dir(): Unable to find the wrapper "gs" - did you forget to enable it when you configured PHP? in /app/wp-content/plugins/fast-velocity-minify/inc/common.php on line 407" Stack trace:" 1. shutdown_action_hook() /app/wp-includes/load.php:0" 2. do_action($tag = 'shutdown') /app/wp-includes/load.php:1072" 3. WP_Hook->do_action($args = [0 => '']) /app/wp-includes/plugin.php:484" 4. WP_Hook->apply_filters($value = '', $args = [0 => '']) /app/wp-includes/class-wp-hook.php:316" 5. wp_ob_end_flush_all('') /app/wp-includes/class-wp-hook.php:292" 6. ob_end_flush() /app/wp-includes/functions.php:4757" 7. fvm_process_page($html = '<!DOCTYPE html>\n<html lang="en-CA" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">\n\n<head>\n\t\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">\n\t<link rel="profile" href="http://gmpg.org/xfn/11">\n\t\t<script>\nvar __wpcal_dist_url = "http://localhost/wp-content/plugins/wpcal/dist/";\n</script>\n\t\t<!-- Manifest added by SuperPWA - Progressive Web Apps Plugin For WordPress -->\n<link rel="ma', 9) /app/wp-includes/functions.php:4757" 8. fvm_generate_min_url($url = 'http://localhost/wp-content/plugins/simply-gallery-block//plugins/pgc_sgb_lightbox.min.js?ver=2.1.0', $tkey = 'js454ac412348acc9383e7ea30e4dda89d7c62146b0787b6035d6027816134ea', $type = 'js', $code = 'try{\n!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__') /app/wp-content/plugins/fast-velocity-minify/inc/frontend.php:707" 9. is_dir($filename = 'gs://agilicus/www/fvm-cache/min') /app/wp-content/plugins/fast-velocity-minify/inc/common.php:407" Warning: chmod(): Unable to find the wrapper "gs" - did you forget to enable it when you configured PHP? in /app/wp-admin/includes/class-wp-filesystem-direct.php on line 173" Stack trace:" 1. shutdown_action_hook() /app/wp-includes/load.php:0" 2. do_action($tag = 'shutdown') /app/wp-includes/load.php:1072" 3. WP_Hook->do_action($args = [0 => '']) /app/wp-includes/plugin.php:484" 4. WP_Hook->apply_filters($value = '', $args = [0 => '']) /app/wp-includes/class-wp-hook.php:316" 5. wp_ob_end_flush_all('') /app/wp-includes/class-wp-hook.php:292" 6. ob_end_flush() /app/wp-includes/functions.php:4757" 7. fvm_process_page($html = '<!DOCTYPE html>\n<html lang="en-CA" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">\n\n<head>\n\t\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">\n\t<link rel="profile" href="http://gmpg.org/xfn/11">\n\t\t<script>\nvar __wpcal_dist_url = "http://localhost/wp-content/plugins/wpcal/dist/";\n</script>\n\t\t<!-- Manifest added by SuperPWA - Progressive Web Apps Plugin For WordPress -->\n<link rel="ma', 9) /app/wp-includes/functions.php:4757" 8. fvm_generate_min_url($url = 'http://localhost/wp-content/plugins/simply-gallery-block//plugins/pgc_sgb_lightbox.min.js?ver=2.1.0', $tkey = 'js454ac412348acc9383e7ea30e4dda89d7c62146b0787b6035d6027816134ea', $type = 'js', $code = 'try{\n!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__') /app/wp-content/plugins/fast-velocity-minify/inc/frontend.php:707" 9. WP_Filesystem_Direct->put_contents($file = 'gs://agilicus/www/fvm-cache/min/js454ac412348acc9383e7ea30e4dda89d7c62146b0787b6035d6027816134ea.js', $contents = 'try{\n!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__', $mode = *uninitialized*) /app/wp-content/plugins/fast-velocity-minify/inc/common.php:423" 10. WP_Filesystem_Direct->chmod($file = 'gs://agilicus/www/fvm-cache/min/js454ac412348acc9383e7ea30e4dda89d7c62146b0787b6035d6027816134ea.js', $mode = FALSE, $recursive = *uninitialized*) /app/wp-admin/includes/class-wp-filesystem-direct.php:86" 11. chmod($filename = 'gs://agilicus/www/fvm-cache/min/js454ac412348acc9383e7ea30e4dda89d7c62146b0787b6035d6027816134ea.js', $permissions = 420) /app/wp-admin/includes/class-wp-filesystem-direct.php:173" Warning: Undefined variable $check in /app/wp-content/plugins/fast-velocity-minify/inc/common.php on line 782"- This reply was modified 5 years, 2 months ago by donbowman.
Forum: Plugins
In reply to: [Fast Velocity Minify] 3.1.5 breaks with wp-statelessthank you!
will try 3.1.6 later.ps, no, it doesn’t work, it ends up w/ bad paths for all the cached files (e.g. it doesn’t follow my cname in wp-stateless, but i don’t think it should come from there at all).
- This reply was modified 5 years, 2 months ago by donbowman.
Forum: Plugins
In reply to: [Lazy Load for Videos] Video’s Don’t Playi have the same issue. if you resize the page (after hitting play), you can then see the video.
Forum: Plugins
In reply to: [CSS & JavaScript Toolbox] php 8 errorsi was forced to discontinue use of the css & Javascript toolbox.
Instead of i have injected my needs into the theme functions.
Forum: Plugins
In reply to: [Spectra Legacy – Gutenberg Blocks] post masonry failure with php8thank you very much!
looking forward to test it for you.
–don