ParseError
syntax error, unexpected '<', expecting end of file ParseError thrown with message "syntax error, unexpected '<', expecting end of file" Stacktrace: #6 ParseError in /home/aefi0819/public_html/wp-content/themes/gp_aefi/header.php:30 #5 load_template in /home/aefi0819/public_html/wp-includes/template.php:671 #4 locate_template in /home/aefi0819/public_html/wp-includes/general-template.php:41 #3 get_header in /home/aefi0819/public_html/wp-content/plugins/woocommerce/templates/archive-product.php:20 #2 include in /home/aefi0819/public_html/wp-includes/template-loader.php:98 #1 require_once in /home/aefi0819/public_html/wp-blog-header.php:19 #0 require in /home/aefi0819/public_html/index.php:17
Stack frames (7)
6
ParseError
/home/aefi0819/public_html/wp-content/themes/gp_aefi/header.php30
5
load_template
/home/aefi0819/public_html/wp-includes/template.php671
4
locate_template
/home/aefi0819/public_html/wp-includes/general-template.php41
3
get_header
/home/aefi0819/public_html/wp-content/plugins/woocommerce/templates/archive-product.php20
2
include
/home/aefi0819/public_html/wp-includes/template-loader.php98
1
require_once
/home/aefi0819/public_html/wp-blog-header.php19
0
require
/home/aefi0819/public_html/index.php17
defined('ABSPATH') or die;
 
/*
 * Third party plugins that hijack the theme will call wp_head() to get the header template.
 * We use this to start our output buffer and render into the views/page-plugin.html.twig template in footer.php
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$GLOBALS['timberContext'] = $context;
 
ob_start();
 
 
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-67530248-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
 
  gtag('config', 'UA-67530248-1');
</script>
 
 
 
 
function locate_template( $template_names, $load = false, $require_once = true ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' != $located ) {
        load_template( $located, $require_once );
    }
 
    return $located;
}
 
/**
 * Require the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
 * @global wpdb       $wpdb          WordPress database abstraction object.
function get_header( $name = null ) {
    /**
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 $name parameter added.
     *
     * @param string|null $name Name of the specific header file to use. null for the default header.
     */
    do_action( 'get_header', $name );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    locate_template( $templates, true );
}
 
/**
 * Load footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialised footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 *
 * @param string $name The name of the specialised footer.
 */
function get_footer( $name = null ) {
    /**
     * Fires before the footer template file is loaded.
     *
     * @since 2.1.0
<?php
/**
 * The Template for displaying product archives, including the main shop page which is a post type archive
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates
 * @version 3.4.0
 */
 
defined( 'ABSPATH' ) || exit;
 
get_header( 'shop' );
 
/**
 * Hook: woocommerce_before_main_content.
 *
 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
 * @hooked woocommerce_breadcrumb - 20
 * @hooked WC_Structured_Data::generate_website_data() - 30
 */
do_action( 'woocommerce_before_main_content' );
 
?>
<header class="woocommerce-products-header">
    <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
        <h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
    <?php endif; ?>
 
    <?php
    /**
     * Hook: woocommerce_archive_description.
     *
            }
 
            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;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /shop/
PATH /usr/local/bin:/usr/bin:/bin
REDIRECT_STATUS 200
UNIQUE_ID XiWLsgVZlFRB@eLkFayGiwAAAAI
HTTPS on
PHPHANDLER /usr/local/php71/bin/php
HTTP_HOST aefi.asia
HTTP_X_REAL_IP 18.206.12.79
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING br,gzip
HTTP_CONNECTION close
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
SERVER_NAME aefi.asia
SERVER_ADDR 109.199.126.95
SERVER_PORT 443
REMOTE_ADDR 18.206.12.79
DOCUMENT_ROOT /home/aefi0819/public_html
SERVER_ADMIN webmaster@aefi.asia
SCRIPT_FILENAME /home/aefi0819/public_html/index.php
REMOTE_PORT 59688
REDIRECT_URL /shop/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1579518898.3912
REQUEST_TIME 1579518898
argv Array ( )
argc 0
Key Value
PATH /usr/local/bin:/usr/bin:/bin
REDIRECT_STATUS 200
UNIQUE_ID XiWLsgVZlFRB@eLkFayGiwAAAAI
HTTPS on
PHPHANDLER /usr/local/php71/bin/php
HTTP_HOST aefi.asia
HTTP_X_REAL_IP 18.206.12.79
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING br,gzip
HTTP_CONNECTION close
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
SERVER_SOFTWARE Apache
SERVER_NAME aefi.asia
SERVER_ADDR 109.199.126.95
SERVER_PORT 443
REMOTE_ADDR 18.206.12.79
DOCUMENT_ROOT /home/aefi0819/public_html
SERVER_ADMIN webmaster@aefi.asia
SCRIPT_FILENAME /home/aefi0819/public_html/index.php
REMOTE_PORT 59688
REDIRECT_URL /shop/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /shop/
SCRIPT_NAME /index.php
0. Whoops\Handler\PrettyPageHandler