Page 1 of 1

[SOLVED] There is an f at the top of my webpage and Admin page I can't remove it

Posted: Fri Mar 06, 2009 9:43 pm
by njmeyer
All,

     I had made some modifications to my website and had saved everything out and it was working fine when I went home yesterday and now when I go to the site there is an f at the top of the webpage and at the top of my admin console.  Any ideas how to remove the f?

the source of the website starts like

Code: Select all

f<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
..........
But when I look at all of my templates there are no f's before the <!DOCTYPE.

I have attached some screen captures to show you all what I am dealing with.

Thanks,
njmeyer

Re: There is an f at the top of my webpage and Admin page I cannot get it to go away

Posted: Sat Mar 07, 2009 5:38 pm
by spcherub
This is a hard one. Since you are having problems with the admin screens as well, it does not seem to be a problem in your template (as you have already determined). If may be that a stray "f" was inserted in any of the various system files that are involved in bringing a page to light. It could even be in the index.php file that is used to load up everything else.

The easiest fix may be to update all the core CMSMS files from the latest distribution (or from the version you are currently using). Backup your current folder structure, then extract the latest files from the right version and replace the original files. Double check you config.php file to make sure it was not replaced.

Hopefully this should solve your problem.

The other option is to a side-by-side comparison of your current core installation and the official distribution, look for differences in files and fix it when you find it, but I think the whole scale replace is probably quicker and easier.

You can also enable debug in config.php - it may tell you at what point the character is being inserted.

What was the last thing that you did before this started to appear? Perhaps you can retrace your steps and check the files you may have modified.

Hope this help.

S

Re: There is an f at the top of my webpage and Admin page I cannot get it to go away

Posted: Sat Mar 07, 2009 5:45 pm
by alby
For specification only.
Common part between frontend and backend is include.php and not index.php.

Re-upload include.php and check if you have modify some files

Use System verification test in Admin part for testing your core-installation

Alby

Re: There is an f at the top of my webpage and Admin page I cannot get it to go away

Posted: Sat Mar 07, 2009 5:56 pm
by spcherub
Alby - Thanks for the clarification.

Re: [SOLVED] There is an f at the top of my webpage and Admin page I can't remove it

Posted: Mon Mar 09, 2009 1:27 pm
by njmeyer
Thanks for the suggestions.  The issue was in the class.module.inc.php file.  I was able to use the check sum to find out which pages were modified from the last known save point.  I was using ctrl+f to find something in the file and I guess I missed the ctrl and put an f before all of the php and that is why there was an f on every page.

Once again thank you to all.

njmeyer