Support » Plugin: Dublin Core Metadata Generator » Warning: array_key_exists() expects parameter 2 to be array, boolean given

  • Resolved KTS915

    (@kts915)


    On PHP 7.3, I get the above warning in dublin-core-metadata-generator/dcmg_metadata.php on both line 167 and line 400.

    The solution on line 167 seems to be to change this:
    `
    array_key_exists( ‘dublincore_metadata_generator_image_format’, $options ) ?
    `
    to this:
    `
    is_array( $options ) && array_key_exists( ‘dublincore_metadata_generator_image_format’, $options ) ?
    `
    and, on line 400, change this:
    `
    array_key_exists( ‘dublincore_metadata_generator_cleanyoast’, $options ) ?
    `
    to this:
    `
    is_array( $options ) && array_key_exists( ‘dublincore_metadata_generator_cleanyoast’, $options ) ?
    `

Viewing 1 replies (of 1 total)
  • Plugin Author Darken-x

    (@darken-x)

    Thanks a lot for finding and fixing this warning!

    I’ve updated the plugin to reflect this.

    Cheers!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.