error when adding header.php and footer.php

Permalink
Hi all. First, I am totally new to concrete5 and fairly new to web design (only doing a couple of simple websites for myself).

I am watching the 4 part tutorial online and am on part 3: Basic Themes Development part three.

Everything has gone so far. I found my html theme (http://www.os-templates.com/free-website-templates/school-education) and have been working on making it a theme.

When I add the header.php and footer.php to the elements folder and reduce my default.php file to just the "main" content section, I keep getting the error on the photo below.

When I include all the header and footer info in the default.php file, everything works fine.

My site is LoomLibrary.org

Thank you so much for your assistance.

1 Attachment

 
bbeng89 replied on at Permalink Reply
bbeng89
In your default.php file are you including the header and footer using the inc function?

$this->inc('elements/header.php');
bbeng89 replied on at Permalink Reply
bbeng89
Also it looks like you may have a typo in your footer file. It looks like it's trying to include 'footetr.php'
charity671 replied on at Permalink Reply
Thanks so much for your quick reply. I have fixed the typo - but unfortunately, I am still getting the same error message. Here is the coding on my default.php file. It works great when the footer and header files are included in the default -but I can't get it functioning by separating them.

<? 
$this->inc('elements/header.php'); 
?>
<div class="wrapper col3">
  <div id="container">
<? 
  $a= new Area("Main");
  $a->display($c);
?>
</div>
</div>
<? 
$this->inc('elements/footer.php'); 
?>
bbeng89 replied on at Permalink Reply
bbeng89
Hm, I wonder if maybe using short tags has something to do with it. Instead of <? ?> try doing <?php ?> like:

<?php 
$this->inc('elements/header.php'); 
?>
DAkers replied on at Permalink Reply
The first thing you should check is if the directory that your errors are giving is where your header and footer files are, since the errors are stating that no file is being found.

Could be a case-sensitive issue.
charity671 replied on at Permalink Reply
Thanks again for the quick reply. I added the "php" section and it didn't change the error :(

Warning: include(/home/content/37/10874437/html/concrete/themes/school/elements/header.php)


I have a folder in my themes folder titled elements. Inside of the elements folder i have header.php and footer.php

[function.include]: failed to open stream: No such file or directory in /home/content/37/10874437/html/concrete/core/libraries/view.php on line 447


it could be just me - but I don't think I should have to be doing anything with the core view.php file... so I am really stumped.
DAkers replied on at Permalink Reply
I'm looking at your website now and I'm not seeing the error. Were you able to fix this?