• Resolved donbowman

    (@donbowman)


    so i see 3.1.6 is there and you marked issue as resolved, but it remains.

    wp plugin list |grep fast
    fast-velocity-minify active none 3.1.6
    but, 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="https://opengraphprotocol.org/schema/" xmlns:fb="https://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="https://gmpg.org/xfn/11">\n\t\t<script>\nvar __wpcal_dist_url = "https://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 = 'https://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 &quot;gs&quot; - 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="https://opengraphprotocol.org/schema/" xmlns:fb="https://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="https://gmpg.org/xfn/11">\n\t\t<script>\nvar __wpcal_dist_url = "https://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 = 'https://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
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raul P.

    (@alignak)

    All that I can see there, is

    a) that PHP cannot recognize the file path, Unable to find the wrapper "gs" - did you forget to enable it when you configured PHP?

    b) one of the plugins has an invalid path with 2 forward slashes https://localhost/wp-content/plugins/simply-gallery-block//plugins/pgc_sgb_lightbox.min.js

    FVM now uses WP_Filesystem_Direct which is a native wordpress function, but your PHP cannot find the gs://agilicus/www/ path to write the files.
    https://developer.www.ads-software.com/reference/classes/wp_filesystem_direct/

    FVM never intentionally supported wp-stateless.
    Apparently, wp-stateless is rewriting the paths from wp_upload_dir so WordPress cannot write files to that path with WP_Filesystem_Direct.
    https://developer.www.ads-software.com/reference/functions/wp_upload_dir/

    I may add support sometime in the future, but not at the moment.
    Meanwhile, you can try the “Backup” Mode on wp stateless, since that should let you use the local uploads directory for the cache files.

    Thread Starter donbowman

    (@donbowman)

    so 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.

    Plugin Author Raul P.

    (@alignak)

    This because as I explained, we now use the information reported by wordpress on wp_upload_dir. wp stateless must be replacing the uploads directory location for some reason, likely your settings.

    I’ll take a look at this in the near future. Maybe like you said, I can add an alternative cache location like before.

    You can downgrade and hold the update until I add this feature to the changelog.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-stateless broken by 3.1.5’ is closed to new replies.