Error Log – Undefined Array Key “action” in class-ajax.php
-
We are seeing recurring PHP warnings in the error log related to the AJAX handler in Jeg Elementor Kit when running on PHP 8.3.
PHP Warning: Undefined array key “action” in /wp-content/plugins/jeg-elementor-kit/class/ajax/class-ajax.php on line 110
PHP Warning: Undefined array key “action” in /wp-content/plugins/jeg-elementor-kit/class/ajax/class-ajax.php on line 131This appears to occur when the plugin endpoint query variable exists but the
actionquery var is missing.We added a simple patch but maybe this can be fixed in the next release?
$action = $wp->query_vars[‘action’] ?? ”;
if ( ” === $action ) {
return;
}
You must be logged in to reply to this topic.