• Resolved reignofcomputer

    (@reignofcomputer)


    Hi, does this work with PHP8? When I shift my site to PHP8 I get:

    Stack trace:
    #0 /var/www/html/wp-content/plugins/woo-store-vacation/woo-store-vacation.php(881): sprintf()
    #1 /var/www/html/wp-includes/class-wp-hook.php(287): Woo_Store_Vacation->inline_css()
    #2 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #4 /var/www/html/wp-includes/functions.wp-styles.php(57): do_action()
    #5 /var/www/html/wp-includes/class-wp-hook.php(287): wp_print_styles()
    #6 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #7 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #8 /var/www/html/wp-includes/general-template.php(3005): do_action()
    #9 /var/www/html/wp-content/themes/theme/header.php(13): wp_head()
    #10 /var/www/html/wp-includes/template.php(730): require_once('...')
    #11 /var/www/html" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "localhost", referrer: ""
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Saji

    (@gookaani)

    We will be updating soon to be compatible with PHP 8.

    Thread Starter reignofcomputer

    (@reignofcomputer)

    Any ETA?

    Fix for all installations >= PHP 8.0:

    Change Line 842 in wp-content/plugins/woo-store-vacation/woo-store-vacation.php:

    From this:

    height:100%;

    to this:

    height:100%%;

    Patch file:

    --- woo-store-vacation.php      2021-06-15 19:05:31.858243036 +0200
    +++ woo-store-vacation.php     2021-06-15 18:59:55.876935292 +0200
    @@ -839,7 +839,7 @@
                                            background-color:%2$s !important;
                                            color:%3$s !important;
                                            z-index:2;
    -                                       height:100%;
    +                                       height:100%%;
                                            text-align:left;
                                            list-style:none;
                                            border-top:0;
    
    • This reply was modified 3 years, 5 months ago by shedros.
    • This reply was modified 3 years, 5 months ago by shedros.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP8 Support’ is closed to new replies.