header.php generate error
Permalink
Dear all, how do i fix the following error? I got it after i created a empty header.php and included it in default.php. I was trying to convert static HTML to concrete5 theme.
Default.php code:
<?php
defined('C5_EXECUTE') or die ('Access Denied.');
$this->inc('elements/header.php');
?>
Warning: include(C:\xampp\htdocs\bj\concrete/themes/bj/elements/header.php): failed to open stream: No such file or directory in C:\xampp\htdocs\bj\concrete\core\libraries\view.php on line 484
Warning: include(): Failed opening 'C:\xampp\htdocs\bj\concrete/themes/bj/elements/header.php' for inclusion (include_path='C:/xampp/htdocs/bj/libraries/3rdparty;C:\xampp\htdocs\bj\concrete/libraries/3rdparty;.;\xampp\php\PEAR') in C:\xampp\htdocs\bj\concrete\core\libraries\view.php on line 484
Default.php code:
<?php
defined('C5_EXECUTE') or die ('Access Denied.');
$this->inc('elements/header.php');
?>
Warning: include(C:\xampp\htdocs\bj\concrete/themes/bj/elements/header.php): failed to open stream: No such file or directory in C:\xampp\htdocs\bj\concrete\core\libraries\view.php on line 484
Warning: include(): Failed opening 'C:\xampp\htdocs\bj\concrete/themes/bj/elements/header.php' for inclusion (include_path='C:/xampp/htdocs/bj/libraries/3rdparty;C:\xampp\htdocs\bj\concrete/libraries/3rdparty;.;\xampp\php\PEAR') in C:\xampp\htdocs\bj\concrete\core\libraries\view.php on line 484
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
and
<?php Loader::element('header_required'); ?>