PHP Notice: Undefined index: host_url
-
Since installing the Freshdesk plugin, we are getting the following notice on our logs:
( [type] => 8 [message] => Undefined index: host_url [file] => /home/gruum/public_html/wp-content/plugins/freshdesk-support/fresh-desk.php [line] => 431 )
On that specific line, the code is
if ( empty(esc_url_raw($_REQUEST['host_url'])) || empty(sanitize_text_field( $_GET['action'] ))) {
and it should be updated to
if ( !isset($_REQUEST['host_url']) || empty(esc_url_raw($_REQUEST['host_url'])) || empty(sanitize_text_field( $_GET['action'] ))) {
- The topic ‘PHP Notice: Undefined index: host_url’ is closed to new replies.