Kses.php error

Hello, we have an issue on : http://agestatransport.se/jobba-hos-oss/

We get the error thrown as follows: Notice: Undefined index: input in /www/webvol9/1x/xqqaglj3mw6qwv4/agestatransport.se/public_html/wp-includes/kses.php on line 867

86i know it´s an issue with WPForms, but i what o dont understand is why, since the lines look as they should in the kses.php file. please see blow, starting on line 866.

function wp_kses_attr_check( &$name, &$value, &$whole, $vless, $element, $allowed_html ) {
$allowed_attr = $allowed_html[strtolower( $element )];

$name_low = strtolower( $name );
if ( ! isset( $allowed_attr[$name_low] ) || '' == $allowed_attr[$name_low] ) {
	$name = $value = $whole = '';
	return false;
}

if ( 'style' == $name_low ) {
	$new_value = safecss_filter_attr( $value );

	if ( empty( $new_value ) ) {
		$name = $value = $whole = '';
		return false;
	}

	$whole = str_replace( $value, $new_value, $whole );
	$value = $new_value;
}

if ( is_array( $allowed_attr[$name_low] ) ) {
	// there are some checks
	foreach ( $allowed_attr[$name_low] as $currkey => $currval ) {
		if ( ! wp_kses_check_attr_val( $value, $vless, $currkey, $currval ) ) {
			$name = $value = $whole = '';
			return false;
		}
	}
}

return true;

}

Id love to get some help with this, i have the exact same plugin with the exact same form on their other company page, budcompaniett.se and it works there without any issues.
best regards

Hi There @DCcomm

Thanks for writing in! Glad you were able to narrow it down to WPForms. Generally PHP notices can be ignored by disabling your WP_DEBUG mode on WordPress (https://codex.wordpress.org/WP_DEBUG).

Also check your PHP version running on your server and make sure to use PHP v5.6.x or later to avoid incompatibility issues. If you’re already using the latest version which is PHP v7.2.x, I would suggest you to switch back one version behind (v7.1.x).

Make sure that you’re using the latest version of WordPress (https://codex.wordpress.org/Upgrading_WordPress), X theme and Cornerstone plugin as well (https://theme.co/changelog/). You can see our update guide from here (https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62).

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.