Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

class "boxes" not closing table tag correctly


jon2

Recommended Posts

Posted

Hi,

 

I am having a very strange problem. I have been creating an OSC shop for a client, and all was going well until I uploaded the site to the remote server (a 1&1 manged server). The final

<table>

tag on the categories box doesn't get outut properly, instead I get a

</

and nothing else. See below:

 

bad output: from 1&1 server:

 

  <tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

 </tr>

</table>

</td>

 </tr>

[b]</            [/b]</td>

         </tr>

<!-- categories_eof //-->

 

 

 

good output (on my local server):

 

 

<tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

 </tr>

</table>

</td>

 </tr>

</table>

           </td>

         </tr>

<!-- categories_eof //-->

 

 

The categories box is the only infobox I am using on this site. The puzzling thing is, if I activate another box, for example manufacturers, the output is fine:

 

  <tr>

   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

 </tr>

</table>

</td>

 </tr>

</table>

           </td>

         </tr>

<!-- categories_eof //-->

 

 

My first thought was that for some strange reason the /t of the final table tag was being interpreted as a tab (which of course would be t anyway so I was wrong there), but to test this I tried changing the

/

for a

-

. The puzzling thing is that the closing tags for the other parts of the categories box (the header and errr the other one) came out as

<-table>

as expected, but the final one still came out

<-

and nothing else.

 

This is very odd to me, especially as there is no problem on my local server (Apache 1.3.27, PHP 4.3.3 RC1 running as cgi on Windows) but there is on the 1&1 server (Apache/1.3.27 (Unix), PHP 4.2.3).

 

Anyone got any ideas?

 

 

thanks for listening

 

 

jw

Posted

Thanks, I thought it must be but couldn't find any reference to it. Upgrading won't be possible as it's a managed server but I can work around it in the code.

 

Thanks again

 

 

jw

Archived

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

×
×
  • Create New...