Need Help! Added tracking code. Messed up site.
Permalink
Hello, my site went live and looked fine. But after I added the google analytics tracking code and go to the site I get this message:
Warning: include() [function.include]: Failed opening '/home6/sfmuniha/public_html/jennysgiantburger/packages/theme_natural_essence/themes/natural_essence/elements/header.php' for inclusion (include_path='/home6/sfmuniha/public_html/jennysgiantburger/libraries/3rdparty:/home6/sfmuniha/public_html/jennysgiantburger/concrete/config/../libraries/3rdparty:.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home6/sfmuniha/public_html/jennysgiantburger/concrete/libraries/view.php on line 345
When I logged into concrete5 it brought me straight to the page with the error, which looks like a broken version of the home page. I used index.php/dashboard/ to get to the dashboard, but I when I click 'return to website' in the dashboard it brings me back to the page with the message and it cannot be put in edit mode.
I went back to my header.php where I put the google code and removed it, but that didn't fix the problem. I don't know what else to do.
Any help would be greatly appreciated. Thank you.
Warning: include() [function.include]: Failed opening '/home6/sfmuniha/public_html/jennysgiantburger/packages/theme_natural_essence/themes/natural_essence/elements/header.php' for inclusion (include_path='/home6/sfmuniha/public_html/jennysgiantburger/libraries/3rdparty:/home6/sfmuniha/public_html/jennysgiantburger/concrete/config/../libraries/3rdparty:.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home6/sfmuniha/public_html/jennysgiantburger/concrete/libraries/view.php on line 345
When I logged into concrete5 it brought me straight to the page with the error, which looks like a broken version of the home page. I used index.php/dashboard/ to get to the dashboard, but I when I click 'return to website' in the dashboard it brings me back to the page with the message and it cannot be put in edit mode.
I went back to my header.php where I put the google code and removed it, but that didn't fix the problem. I don't know what else to do.
Any help would be greatly appreciated. Thank you.
Where did you add the tracking code and did you verify that the elements/header.php file does exist?
Hello ideaspnge, thank you for the response. I added the tracking code from my host site in public_html> site name> packages> theme_natural_essence> themes> natural_essence> elements> header.php
I placed it immediately before </head>.
I don't technically know how to verify that it exists, but I have successfully made changes to it before. So I think that means that it exists.
I placed it immediately before </head>.
I don't technically know how to verify that it exists, but I have successfully made changes to it before. So I think that means that it exists.
UPDATE:
So, I learned that this problem was caused by me putting the tracking code into the header.php and couldn't be fixed by simply removing it. The tracking code is supposed to be placed in: Dashboard> systems & settings> SEO & Statistics> Tracking Codes.
WHAT I DID TO FIX IT:
After breaking my site's theme by placing the code in the wrong place, I switched my entire site to a different theme, which made it work again, then uninstalled the theme that I had broke. I then went to the concrete5 marketplace and re-installed the theme that I had broke.
I had saved versions of my footer.php and header.php from before I broke the theme where I could get to it after uninstalling the broken theme. After re-installing the theme, I pasted my saved footer.php and header.php over the newly installed footer and header.php ( I did this because I had successfully made changes to the footer and header.php prior to breaking the theme and wanted to have a simple way to add those changes to the newly installed versions ).
After pasting my saved footer and header.php I switched the theme back over to the theme I had broke and my site worked again.
Huge thanks to forum member Ekko for helping me trouble shoot the problem and for the advice.
So, I learned that this problem was caused by me putting the tracking code into the header.php and couldn't be fixed by simply removing it. The tracking code is supposed to be placed in: Dashboard> systems & settings> SEO & Statistics> Tracking Codes.
WHAT I DID TO FIX IT:
After breaking my site's theme by placing the code in the wrong place, I switched my entire site to a different theme, which made it work again, then uninstalled the theme that I had broke. I then went to the concrete5 marketplace and re-installed the theme that I had broke.
I had saved versions of my footer.php and header.php from before I broke the theme where I could get to it after uninstalling the broken theme. After re-installing the theme, I pasted my saved footer.php and header.php over the newly installed footer and header.php ( I did this because I had successfully made changes to the footer and header.php prior to breaking the theme and wanted to have a simple way to add those changes to the newly installed versions ).
After pasting my saved footer and header.php I switched the theme back over to the theme I had broke and my site worked again.
Huge thanks to forum member Ekko for helping me trouble shoot the problem and for the advice.