Loader::element('footer_required'); showing up as text on my web site

Permalink
For some reason, this line of code is actually showing up as text on my web site at the very bottom!

Loader::element('footer_required');

(image attached for reference)

This is the code currently in my footer.php:

<?php  defined('C5_EXECUTE') or die("Access Denied."); ?>
   <div id="footer">
   </div>
</div>
<?php  Loader::element('footer_required'); ?>
</body>
</html>


Any ideas as to why this is showing up? Thanks for the help!

1 Attachment

 
planist1 replied on at Permalink Reply
planist1
What about the bottom of your page type? Example if you were using default.php in this instance... what code is at the bottom of that page?
nrh replied on at Permalink Reply
Using a full page, and the full.php is set to

<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
   <div id="central" class="no-sidebar">
      <div id="body">   
         <?php 
         $a = new Area('Main');
         $a->display($c);
         ?>
      </div>
      <div class="spacer"> </div>      
   </div>
<?php  $this->inc('elements/footer.php'); ?>
keeasti replied on at Permalink Reply
keeasti
Our posts crossed in the ether ... seems all present and correct
keeasti replied on at Permalink Reply
keeasti
Can you attach header.php, full.php and footer.php so one can take a look?
keeasti replied on at Permalink Reply
keeasti
Do you have the below in default.php?
<?php  $this->inc('elements/footer.php'); ?>
nrh replied on at Permalink Reply
I do...

<?php  $this->inc('elements/footer.php'); ?>


is in default.php

Could this have something to do with another error I'm facing? I have to update my main.css, footer.php, etc. in the folder updates/concrete5.5.2/themes, not in concrete/themes
keeasti replied on at Permalink Best Answer Reply
keeasti
Possibly but it looks like the php is not being parsed in footer.php

Where are you getting the code that you have been pasting here from?

As a long shot, I don't suppose the line Loader::element('footer_required'); has crept in somewhere else as well eg. where you pasted the google tracking code?
nrh replied on at Permalink Reply
YESSS!!!! Your longshot paid off! You were right!!!! That line slipped into the Google analytics code!!!!! THANK YOU!!!!!!
keeasti replied on at Permalink Reply
keeasti
Yes - I just saw that the error was gone :)
Wanna mark my answer as the 'one' so I can get some more Karma?