Warning: array_key_exists() expects parameter 2 to be array, null given in /path
-
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 475i already remove blank space before and after <?php and ?>
below is code471. ‘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.
The topic ‘Warning: array_key_exists() expects parameter 2 to be array, null given in /path’ is closed to new replies.