EXTRA SPACES IN PHP ALL OF THE SUDDEN

Permalink
Hi

Does extra spaces in the php coding make a difference in the operation of my site?

For example:

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


and

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


Why I'm asking is because my site is acting all weird since last week and after checking everything, the only thing I could think off is this extra spaces in the php codes. My Header and Footer elements has extra spaces in these php codes:

<?php    defined('C5_EXECUTE') or die(_("Access Denied.")); ?>

<?php  Loader::element('footer_required'); ?>


Even the script has extra white spaces:
<?php     defined('C5_EXECUTE') or die("Access Denied."); ?>

<script src="<?php     echo $this->getThemePath()?>/js/cobalt.js"></script>


Im getting errors all the time since last week:

Uncaught ReferenceError: ccm_showDashboardNewsflowWelcome is not defined

I also get a error that say:
Google Analytics tracking was not correctly setup.

Could all these weird errors & difficulty to access my site to edit the pages be because of these white spaces in the PHP codes...

If yes, How did these white spaces get there all of the sudden?

ANY ASSISTANCE OR HELP WOULD REALLY BE APPRECIATED

Thank you in Advance

searchsa
 
JohntheFish replied on at Permalink Reply
JohntheFish
if you have run any kind of code prettifier that has inserted the spaces in the php, it may also have changed some parts of the html by mistake or broken the closing of a php section.

The errors you describe are typical of broken html - mismatched tags or quoutes about attributes.