Whoops \ Exception \ ErrorException (E_WARNING)
Undefined variable $title Whoops\Exception\ErrorException thrown with message "Undefined variable $title" Stacktrace: #9 Whoops\Exception\ErrorException in /var/www/wp-content/themes/hansungflow/includes/template-functions.php:412 #8 Whoops\Run:handleError in /var/www/wp-content/themes/hansungflow/includes/template-functions.php:412 #7 hansungflow_custom_archive_title_page in /var/www/wp-includes/class-wp-hook.php:326 #6 WP_Hook:apply_filters in /var/www/wp-includes/plugin.php:205 #5 apply_filters in /var/www/wp-includes/general-template.php:1789 #4 get_the_archive_title in /var/www/wp-includes/general-template.php:1684 #3 the_archive_title in /var/www/wp-content/themes/hansungflow/archive.php:23 #2 include in /var/www/wp-includes/template-loader.php:106 #1 require_once in /var/www/wp-blog-header.php:19 #0 require in /var/www/index.php:17
Stack frames (10)
9
Whoops
\
Exception
\
ErrorException
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
includes
/
template-functions.php
412
8
Whoops
\
Run
handleError
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
includes
/
template-functions.php
412
7
hansungflow_custom_archive_title_page
/
var
/
www
/
wp-includes
/
class-wp-hook.php
326
6
WP_Hook
apply_filters
/
var
/
www
/
wp-includes
/
plugin.php
205
5
apply_filters
/
var
/
www
/
wp-includes
/
general-template.php
1789
4
get_the_archive_title
/
var
/
www
/
wp-includes
/
general-template.php
1684
3
the_archive_title
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
archive.php
23
2
include
/
var
/
www
/
wp-includes
/
template-loader.php
106
1
require_once
/
var
/
www
/
wp-blog-header.php
19
0
require
/
var
/
www
/
index.php
17
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
includes
/
template-functions.php
            </div>
        </div>
        <?php
    }
}
 
if ( ! function_exists( 'hansungflow_custom_archive_title_page' ) ) {
    function hansungflow_custom_archive_title_page() {
        if ( is_category() ) {
            $title = single_cat_title( '', false );
        } elseif ( is_tag() ) {
            $title = single_tag_title( '', false );
        } elseif ( is_author() ) {
            $title = '<span class="vcard">' . get_the_author() . '</span>' ;
        } elseif ( is_tax() ) { //for custom post types
            $title = sprintf( __( '%1$s' ), single_term_title( '', false ) );
        } elseif (is_post_type_archive()) {
            $title = post_type_archive_title( '', false );
        }
        return $title;
    }
}
 
if ( ! function_exists( 'hansungflow_get_product_in_tax' ) ) {
    function hansungflow_get_product_in_tax( $term_id ) {
        $args = array(
            'post_type' => 'products',
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'ignore_sticky_posts' => 1,
            'tax_query' => array(
                array(
                'taxonomy' => 'product_category',
                'field' => 'id',
                'terms' => $term_id,
                'include_children' => true,
                'operator' => 'IN'
                )
            ),
        );
Arguments
  1. "Undefined variable $title"
    
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
includes
/
template-functions.php
            </div>
        </div>
        <?php
    }
}
 
if ( ! function_exists( 'hansungflow_custom_archive_title_page' ) ) {
    function hansungflow_custom_archive_title_page() {
        if ( is_category() ) {
            $title = single_cat_title( '', false );
        } elseif ( is_tag() ) {
            $title = single_tag_title( '', false );
        } elseif ( is_author() ) {
            $title = '<span class="vcard">' . get_the_author() . '</span>' ;
        } elseif ( is_tax() ) { //for custom post types
            $title = sprintf( __( '%1$s' ), single_term_title( '', false ) );
        } elseif (is_post_type_archive()) {
            $title = post_type_archive_title( '', false );
        }
        return $title;
    }
}
 
if ( ! function_exists( 'hansungflow_get_product_in_tax' ) ) {
    function hansungflow_get_product_in_tax( $term_id ) {
        $args = array(
            'post_type' => 'products',
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'ignore_sticky_posts' => 1,
            'tax_query' => array(
                array(
                'taxonomy' => 'product_category',
                'field' => 'id',
                'terms' => $term_id,
                'include_children' => true,
                'operator' => 'IN'
                )
            ),
        );
Arguments
  1. 2
    
  2. "Undefined variable $title"
    
  3. "/var/www/wp-content/themes/hansungflow/includes/template-functions.php"
    
  4. 412
    
/
var
/
www
/
wp-includes
/
class-wp-hook.php
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
Arguments
  1. "Month: <span>December 2020</span>"
    
/
var
/
www
/
wp-includes
/
plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
Arguments
  1. "Month: <span>December 2020</span>"
    
  2. array:3 [
      0 => "Month: <span>December 2020</span>"
      1 => "December 2020"
      2 => "Month:"
    ]
    
/
var
/
www
/
wp-includes
/
general-template.php
    if ( $prefix ) {
        $title = sprintf(
            /* translators: 1: Title prefix. 2: Title. */
            _x( '%1$s %2$s', 'archive title' ),
            $prefix,
            '<span>' . $title . '</span>'
        );
    }
 
    /**
     * Filters the archive title.
     *
     * @since 4.1.0
     * @since 5.5.0 Added the `$prefix` and `$original_title` parameters.
     *
     * @param string $title          Archive title to be displayed.
     * @param string $original_title Archive title without prefix.
     * @param string $prefix         Archive title prefix.
     */
    return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );
}
 
/**
 * Displays category, tag, term, or author description.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_description()
 *
 * @param string $before Optional. Content to prepend to the description. Default empty.
 * @param string $after  Optional. Content to append to the description. Default empty.
 */
function the_archive_description( $before = '', $after = '' ) {
    $description = get_the_archive_description();
    if ( $description ) {
        echo $before . $description . $after;
    }
}
 
/**
Arguments
  1. "get_the_archive_title"
    
  2. "Month: <span>December 2020</span>"
    
  3. "December 2020"
    
  4. "Month:"
    
/
var
/
www
/
wp-includes
/
general-template.php
    $result = $prefix . $my_month . $prefix . $my_year;
 
    if ( ! $display ) {
        return $result;
    }
    echo $result;
}
 
/**
 * Displays the archive title based on the queried object.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_title()
 *
 * @param string $before Optional. Content to prepend to the title. Default empty.
 * @param string $after  Optional. Content to append to the title. Default empty.
 */
function the_archive_title( $before = '', $after = '' ) {
    $title = get_the_archive_title();
 
    if ( ! empty( $title ) ) {
        echo $before . $title . $after;
    }
}
 
/**
 * Retrieves the archive title based on the queried object.
 *
 * @since 4.1.0
 * @since 5.5.0 The title part is wrapped in a `<span>` element.
 *
 * @return string Archive title.
 */
function get_the_archive_title() {
    $title  = __( 'Archives' );
    $prefix = '';
 
    if ( is_category() ) {
        $title  = single_cat_title( '', false );
/
var
/
www
/
wp-content
/
themes
/
hansungflow
/
archive.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package hansungflow
 */
 
get_header();
?>
<div class="site-content">
 
    <div id="content" class="content-page">
        <div class="container">
            <div id="primary" class="content-area">
                <main id="main" class="site-main">
 
                <?php if ( have_posts() ) : ?>
 
                    <header class="page-header">
                        <?php
                        the_archive_title( '<h1 class="page-title">', '</h1>' );
                        the_archive_description( '<div class="archive-description">', '</div>' );
                        ?>
                    </header><!-- .page-header -->
 
                    <?php
                    /* Start the Loop */
                    while ( have_posts() ) :
                        the_post();
 
                        /*
                         * Include the Post-Type-specific template for the content.
                         * If you want to override this in a child theme, then include a file
                         * called content-___.php (where ___ is the Post Type name) and that will be used instead.
                         */
                        get_template_part( 'template-parts/content/content', get_post_type() );
 
                    endwhile;
 
                    the_posts_navigation();
 
Arguments
  1. "<h1 class="page-title">"
    
  2. "</h1>"
    
/
var
/
www
/
wp-includes
/
template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/var/www/wp-content/themes/hansungflow/archive.php"
    
/
var
/
www
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/var/www/wp-includes/template-loader.php"
    
/
var
/
www
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/var/www/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/2020/12/"
WPAAS_SITE_CPU_SHARES
"1024"
WPAAS_SITE_CHILD_CPU_CFS_PERIOD
"100000"
WPAAS_SITE_CPU_CFS_QUOTA
"400000"
WPAAS_STORAGE
"p3cephmah005pod11_data20"
WPAAS_PHP_VERSION
"8.0"
WPAAS_WP_VERSION
"6.5.2_4.122.0"
WPAAS_SITE_CHILD_MEMORY_LIMIT
"9223372036854771712"
WPAAS_POD
"P3NLWPPOD11"
WPAAS_COMPAT_STORAGE_NAME
"p3cephmah005pod11_data20"
WPAAS_SITE_CPU_CFS_PERIOD
"100000"
WPAAS_SITE_SWAP_MEMORY_LIMIT
"9223372036854771712"
WPAAS_SITE_CHILD_SWAP_MEMORY_LIMIT
"9223372036854771712"
WPAAS_SITE_CHILD_CPU_SHARES
"1024"
WPAAS_SITE_CHILD_CPU_CFS_QUOTA
"-1"
WPAAS_SITE_MEMORY_LIMIT
"9223372036854771712"
HOME
"/var/www"
REQUEST_ID
"0241dd7f15a38187879cbe4e4341eb19"
WPAAS_SITE_ID
"45356110"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2020/12/"
REMOTE_PORT
"37706"
SCRIPT_FILENAME
"/var/www/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/var/www"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www"
REMOTE_ADDR
"3.146.255.127"
SERVER_PORT
"443"
SERVER_ADDR
"172.17.0.3"
SERVER_NAME
"hansungflowmeter.com"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_VARNISH
"43223531"
HTTP_X_UA_DEVICE
"bot"
HTTP_X_REQUEST_ID
"0241dd7f15a38187879cbe4e4341eb19"
HTTP_X_REAL_IP
"3.146.255.127"
HTTP_X_OBSERVER_IP
"172.70.130.121"
HTTP_X_MWP_WP_VERSION
"6.5.2_4.122.0"
HTTP_X_MWP_SITEID
"45356110"
HTTP_X_MWP_SITE_SWAP_MEMORY_LIMIT
"9223372036854771712"
HTTP_X_MWP_SITE_MEMORY_LIMIT
"9223372036854771712"
HTTP_X_MWP_SITE_CPU_SHARES
"1024"
HTTP_X_MWP_SITE_CPU_CFS_QUOTA
"400000"
HTTP_X_MWP_SITE_CPU_CFS_PERIOD
"100000"
HTTP_X_MWP_SITE_CHILD_SWAP_MEMORY_LIMIT
"9223372036854771712"
HTTP_X_MWP_SITE_CHILD_MEMORY_LIMIT
"9223372036854771712"
HTTP_X_MWP_SITE_CHILD_CPU_SHARES
"1024"
HTTP_X_MWP_SITE_CHILD_CPU_CFS_QUOTA
"-1"
HTTP_X_MWP_SITE_CHILD_CPU_CFS_PERIOD
"100000"
HTTP_X_MWP_POD
"p3cephmah005pod11_data20"
HTTP_X_MWP_PHP_VERSION
"8.0"
HTTP_X_IP
"3.146.255.127"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"3.146.255.127, 3.146.255.127, 132.148.110.3, 0.0.0.0, 3.146.255.127"
HTTP_X_EPOCH_TIME
"1714862579"
HTTP_X_CLIENT_IP
"3.146.255.127"
HTTP_VIA
"1.1 p3plwpwc015.prod.phx3.secureserver.net (Varnish/7.2)"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_RAY
"87ec01cf8dd0609a-ORD"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_CONNECTING_IP
"3.146.255.127"
HTTP_CDN_LOOP
"cloudflare"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_HOST
"hansungflowmeter.com"
HOSTNAME
"36d608d5-aa0c-4acd-9990-4da7e0a7fbd4"
HTTPS
"on"
HTTP_AUTHORIZATION
""
XID
"45356110"
UNIQUE_ID
"Zja58_nTfRt2ElyuEMXs2gAABBY"
PhpVer
"8.0"
REDIRECT_STATUS
"200"
REDIRECT_HOSTNAME
"36d608d5-aa0c-4acd-9990-4da7e0a7fbd4"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_XID
"45356110"
REDIRECT_UNIQUE_ID
"Zja58_nTfRt2ElyuEMXs2gAABBY"
REDIRECT_PhpVer
"8.0"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1714862579.1991
REQUEST_TIME
1714862579
empty
0. Whoops\Handler\PrettyPageHandler