Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mystery text on home page


zenfire

Recommended Posts

Posted

I'ld start looking in index.php arounf line 60.

 

Page source shows this

 

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<!-- body_text //-->

 

 

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td>

 

 

 <table cellspacing=0 cellpadding=0>

<tr><td height=13></td></tr>

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
I'ld start looking in index.php arounf line 60.

 

Page source shows this

 

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<!-- body_text //-->

 

 

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td>

 

 

 <table cellspacing=0 cellpadding=0>

<tr><td height=13></td></tr>

 

I looked in index.php in the root directory and couldnt find that code anywere... If i view the source of my home page through IE I dont see that part of the source code.

Thanks, Mike

Posted
I looked in index.php in the root directory and couldnt find that code anywere... If i view the source of my home page through IE I dont see that part of the source code.

Thanks, Mike

If you have something like Dreamweaver, you can have it search the code in all of your files for those characters.

Posted
If you have something like Dreamweaver, you can have it search the code in all of your files for those characters.

 

I allready searched using Front Page for those characters and came up with nothing. That is why I am stumped...

Posted
I allready searched using Front Page for those characters and came up with nothing. That is why I am stumped...

 

It's because you are saving the file as a coding other than UTF8. Those odd characters are a UTF8 header signature so displaying it from a webserver that doesn't use UTF8 will show them up.

 

Use something like Notepad++ to edit the file with and save it as the same code page as your webserver uses.

Posted
It's because you are saving the file as a coding other than UTF8. Those odd characters are a UTF8 header signature so displaying it from a webserver that doesn't use UTF8 will show them up.

 

Use something like Notepad++ to edit the file with and save it as the same code page as your webserver uses.

 

Do you know how I can find out what my web server uses for the code page?

And when I save it as a UTF-8 file the mystrery text goes away but I get these errors at the top of the page.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/z/e/n/zenfire2/html/index.php:1) in /home/content/z/e/n/zenfire2/html/includes/functions/general.php on line 1174

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/z/e/n/zenfire2/html/index.php:1) in /home/content/z/e/n/zenfire2/html/includes/functions/sessions.php on line 67

Posted
Do you know how I can find out what my web server uses for the code page?

And when I save it as a UTF-8 file the mystrery text goes away but I get these errors at the top of the page.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/z/e/n/zenfire2/html/index.php:1) in /home/content/z/e/n/zenfire2/html/includes/functions/general.php on line 1174

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/z/e/n/zenfire2/html/index.php:1) in /home/content/z/e/n/zenfire2/html/includes/functions/sessions.php on line 67

 

 

I got it... I had to save the file /includes/text_blocks/welcome.htm as ANSI Encoding instead of UTF-8.

 

Thank You for everyone's quick replies and help!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...