• Resolved screamson

    (@screamson)


    Hello! This error occurs after the last update:

    Notice: Trying to access array offset on value of type bool in /var/www/miningmoon.ru/data/www/miningmoon.ru/wp-content/plugins/webp-converter-for-media/app/Media/Upload.php on line 40
    

    This happens inside product cards.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @screamson,

    Thank you for your message.

    Please replace these two lines:

    
    foreach ($data['sizes'] as $key => $size) {
        $path = $directory . $size['file'];
    

    …with following lines:

    
    foreach ($data['sizes'] as $key => $size) {
        if ( ! isset( $size['file'] ) ) {
            echo '<pre>';
            print_r( $data );
            echo '</pre>';
            exit;
        }
        $path = $directory . $size['file'];
    

    And try to repeat the situation where the error occurs. In the Dev Tools console you should get a debug message. Please send it to me.

Viewing 1 replies (of 1 total)

The topic ‘Woocommerce Error’ is closed to new replies.