• Resolved sgeithman1ecos

    (@sgeithman1ecos)


    We are receiving the following warnings (over and over) in our PHP logs, that could easily be fixed by just checking to see if the array key exists and the array key has data. This would solve both warnings caused by line 573 of the /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-frontend.php file.

    This will fix the following warnings ( some images don’t have “extra_params”)!

    // change (currently no checks):
    $image['extra_params']

    // to something similar (if key exists and has value):
    ( ( isset( $image['extra_params'] ) && !empty( $image['extra_params'] ) ) ? $image['extra_params'] : [] )
    PHP Warning:  Undefined array key "extra_params" in /~~~~~~~~~~/wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-frontend.php on line 573

    PHP Warning: Trying to access array offset on value of type bool in /~~~~~~~~~~/wp-content/plugins/woo-variation-swatches-pro/includes/class-woo-variation-swatches-pro-product-page.php on line 573
Viewing 1 replies (of 1 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Thanks for reaching out to us.

    I have forwarded this to our development team.

    Our development team will look into it and will decide.

    Thank You

Viewing 1 replies (of 1 total)

The topic ‘Undefined array key “extra_params” and access array of type bool’ is closed to new replies.