• Hello,
    I tried to update php to version 8.0 but wordpress fails with these reasons:

    Warning: Trying to access array offset on value of type bool in /web/htdocs/www.site.it/home/wp-content/plugins/wc-gallery/includes/functions.php on line 758

    Warning: Trying to access array offset on value of type bool in /web/htdocs/www.site.it/home/wp-content/plugins/wc-gallery/includes/functions.php on line 759

    Warning: Trying to access array offset on value of type bool in /web/htdocs/www.site.it/home/wp-content/plugins/wc-gallery/includes/functions.php on line 760

    Warning: Trying to access array offset on value of type bool in /web/htdocs/www.site.it/home/wp-content/plugins/wc-gallery/includes/functions.php on line 761

    any suggestions will be appreciated.

    thanks,
    Nicola

Viewing 1 replies (of 1 total)
  • the error appears because in wc_gallery_after_setup_theme() in wc_gallery_theme_support, the first value – “theme_reset” is not an array.
    So far, I’ve put in foreach ( $wc_gallery_theme_support as $size => $value ) an extra check that the value is a set. This stopped the error output.

    If ( in_array( 'wc' . $size, $defined_sizes ) ) {
    continue;
    } elseif(! is_array($value) ) {
    continue;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘error with php 8.x’ is closed to new replies.