Undefined index error SERVER_NAME
-
Problems with the Awesome Support Plugin.
There seems to be a problem in the functions-general.php file on line 198 where it references the Global variable SERVER_NAME.
if ( empty( $post ) ) {
$protocol = stripos( $_SERVER[‘SERVER_PROTOCOL’], ‘https’ ) === true ? ‘https://’ : ‘https://’;
$post_id = url_to_postid( $protocol . $_SERVER[‘SERVER_NAME’] . ‘:’ . $_SERVER[‘SERVER_PORT’] . $_SERVER[‘REQUEST_URI’] );
$post = get_post( $post_id );
}complete error is:
PHP Notice: Undefined index: SERVER_NAME in /my-webserver.domain/plugins/awesome-support/includes/functions-general.php on line 198******************************************************************************
STEPS TO REPRODUCE
******************************************************************************
Install and activate Awesome Support
cd into your wp installation directory
run wp-cli cache flushRESULT
error stated above
- The topic ‘Undefined index error SERVER_NAME’ is closed to new replies.