• Resolved sbehere

    (@sbehere)


    i am getting this warning message at the top of page.
    Warning: array_key_exists() expects parameter 2 to be array, null given in /path/wp-content/plugins/weglot/src/services/class-option-service-weglot.php on line 475

    i already remove blank space before and after <?php and ?>
    below is code

    471. ‘public function get_option_button( $key ) {
    472. $options = $this->get_options();
    473. if (array_key_exists( ‘custom_settings’, $options ) &&
    474. is_array( $options[‘custom_settings’] ) &&
    475. array_key_exists( $key, $options[‘custom_settings’]
    [‘button_style’] )
    476. ) {
    477. return $options[‘custom_settings’][‘button_style’][ $key ];
    478. }`

    Please help to solve.

    • This topic was modified 4 years, 5 months ago by sbehere.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Warning: array_key_exists() expects parameter 2 to be array, null given in /path’ is closed to new replies.