header('Pragma: public');
ob_clean();
flush();
readfile($File);
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
ErrorException
|
---|
ErrorException: Warning: readfile(): Filename cannot be empty at /home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php:27 at include('/home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php') (/home/master/wp/wp-includes/template-loader.php:106) at require_once('/home/master/wp/wp-includes/template-loader.php') (/home/master/wp/wp-blog-header.php:19) at require('/home/master/wp/wp-blog-header.php') (/home/master/wp/index.php:17) |